//menu
function open_nv01() {  
cate_nv01.style.display=""; }



//print
var initBody;
function beforePrint()
{ 
   initBody = document.body.innerHTML; 
   document.body.innerHTML = print_area.innerHTML;
} 

function afterPrint()
{ 
  document.body.innerHTML = initBody; 
} 

function pageprint()
{
     window.onbeforeprint = beforePrint; 
     window.onafterprint = afterPrint; 
     window.print(); 
}


//flash

function writeSwfVars(url, width, height, allowDomain, vars) {
		if (allowDomain == "") {
			allowDomain = false;
		}
		try {
			document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + width + '" height="' + height + '">');
			document.write('<param name="movie" value="' + url + '">');
			if (allowDomain == true) {
				document.write('<param name="allowScriptAccess" value="sameDomain"/>');
			} else {
				document.write('<param name="allowScriptAccess" value="always"/>');
			}
			document.write('<param name="FlashVars" value="' + vars+ '">');
			document.write('<param name="quality" value="high"><param name="wmode" value="transparent">');
			document.write('<embed src="' + url + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" allowScriptAccess="always" wmode="transparent"></embed>');
			document.write('</object>');
		} catch(E){}
	}

	function writeSwf(url, width, height, allowDomain, swfid) {
		if (allowDomain == "") {
			allowDomain = false;
		}
		if( (typeof swfid)=='undefined') {
			swfid = '';
		}

		try {
			document.write('<object id="'+swfid+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + width + '" height="' + height + '">');
			document.write('<param name="movie" value="' + url + '">');
			if (allowDomain == true) {
				document.write('<param name="allowScriptAccess" value="sameDomain"/>');
			} else {
				document.write('<param name="allowScriptAccess" value="always"/>');
			}
			document.write('<param name="quality" value="high"><param name="wmode" value="transparent">');
			document.write('<embed src="' + url + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" allowScriptAccess="always" wmode="transparent"></embed>');
			document.write('</object>');
		} catch(E){}
	}
	
//opacity
	function writeSwfOpa(url, width, height, allowDomain) {
		if (allowDomain == "") {
			allowDomain = false;
		}
		try {
			document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + width + '" height="' + height + '">');
			document.write('<param name="movie" value="' + url + '">');
			if (allowDomain == true) {
				document.write('<param name="allowScriptAccess" value="sameDomain"/>');
			} else {
				document.write('<param name="allowScriptAccess" value="always"/>');
			}
			document.write('<param name="quality" value="high">');
			document.write('<embed src="' + url + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" allowScriptAccess="always" wmode="transparent"></embed>');
			document.write('</object>');
		} catch(E){}
	}

	// scriptlet
	function fWriteScriptlet(strUrl, intWidth, intHeight)
	{
		document.writeln("<object type=text/x-scriptlet width="+intWidth+" height="+intHeight+" data="+strUrl+"></object>");
	}