
/**************************************************************/
/*       ÇÃ·¡½Ã È°¼ºÈ­                                        */
/**************************************************************/
function insertFlash( id, flashUri, vWidth, vHeight, wmode, access, flashVars ) {
	var _obj_ = "";

	_obj_ = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + vWidth + '" height="' + vHeight + '" id="' + id + '" align="middle">';
	_obj_ += '<param name="allowScriptAccess" value="' + access + '" />';
	_obj_ += '<param name="movie" value="' + flashUri + '" />';
	_obj_ += '<param name="FlashVars" value="' + flashVars + '" />';
	_obj_ += '<param name="quality" value="high" />';
	_obj_ += '<param name="wmode" value="' + wmode + '" />    ';
	_obj_ += '<param name="bgcolor" value="#ffffff" />        ';
	_obj_ += '<param name="scale" value="exactfit" />        ';	
	_obj_ += '<embed src="' + flashUri + '" FlashVars="' + flashVars + '" quality="high" wmode="' + wmode + '" bgcolor="#ffffff" width="' + vWidth +'" height="' + vHeight + '" id="' + id + '" align="middle" allowScriptAccess="' + access + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>    ';
	_obj_ += '</object>';
	document.writeln( _obj_ );
}

/**************************************************************/
/*      print ¹× ´Ý±â¹öÆ°                                        */
/**************************************************************/
   
   var initBody;
   
   function beforePrint(){ 
		initBody = document.body.innerHTML; 
		document.body.innerHTML = printContent.innerHTML;
   } 

   function afterPrint(){ 
	  document.body.innerHTML = initBody; 
   } 

   function printArea() { 
      window.print(); 
   }
   
   window.onbeforeprint = beforePrint; 
   window.onafterprint = afterPrint; 

   function initPrint(){
       
       getCssParser();

	   var s_str = opener.document.getElementById("print_area");
	   var t_str = document.getElementById("printContent");
	  
	   if(s_str == null || t_str == null) self.close();
	   
	   t_str.innerHTML = doStripLinktag(s_str.innerHTML);

   }

   
    function doStripLinktag(str) {
        str = str.replace(/onclick=\"(.*?)\"/gi,"");
  	    str = str.replace(/<a(.*?)\>/gi,"");
		str = str.replace(/<\/>/gi,"");
	    return str;
    }

    function getCssParser(){
      

	}
	
	
/**************************************************************/
/*   ÆË¾÷                                       */
/**************************************************************/
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
    
  
function openLayer(idx) {
	for (i = 0 ; i< 12 ; i++) {
		document.all['f_row_' + i].style.display = 'none' ;
		document.all['s_row_' + i].style.display = 'none' ;
	}
	
	document.all['f_row_' + idx].style.display = 'block' ;
	document.all['s_row_' + idx].style.display = 'block' ;
}


/**************************************************************/
/*       ¸µÅ© ºí·¯¸µ                                          */
/**************************************************************/
function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 

/**************************************************************/
/*       ±×¸²Å©±âÁ¶Á¤                                          */
/**************************************************************/
function a(name,maxWidth){
w = eval("document."+name+".width");
h = eval("document."+name+".height");

if(w > maxWidth){
	nw = maxWidth;
	nh = Math.round((h*nw)/w);
}else{
nw = w;
nh = h;
}


eval("document."+name+".height="+nh);
eval("document."+name+".width="+nw);
}
