//FLASH
function flash(w,h,u,t) {
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+w+"' height='"+h+"'><param name='movie' value='"+u+"'><param name='quality' value='high'>");
	if(t=="y"){
		document.write("<param name='wmode' value='transparent'>");
		//document.write("<Param name='wmode' value='opaque'>");		
	}
	document.write("<embed src='"+u+"' quality='high' pluginspage='https://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode='transparent' width='"+w+"' height='"+h+"'></embed></object>");	
}
function flash_add(w,h,u,t,nm,vr) {
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' id='"+nm+"' name='"+nm+"' codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+w+"' height='"+h+"'><param name='movie' value='"+u+"'><param name='quality' value='high'>");
	if(t=="y"){
		document.write("<param name='wmode' value='transparent'>");
		//document.write("<Param name='wmode' value='opaque'>");	
	}
	if(vr) {
		document.write("<param name='FlashVars' value='"+vr+"'>");
	}
	document.write("<embed src='"+u+"' id='"+nm+"' name='"+nm+"' quality='high' pluginspage='https://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'  wmode='transparent' width='"+w+"' height='"+h+"'></embed></object>");	
}


/* FAQ */

function toggleMenu(currNum) {
	if (document.all) {
		thisMenu = eval("document.all.menu" + currNum);
		if(!thisMenu || thisMenu==null) return false;

		if (thisMenu.style.display != "none") {
			thisMenu.style.display = "none";
		}
		else thisMenu.style.display = "";

		for(i=1; i<9; i++ ){
			otherMenu = eval("document.all.menu" + i);
			if(!otherMenu || otherMenu==null) continue;
			
			//if(currNum != i) otherMenu.style.display = "none";
		}
		return false;
	}
	else {
		return false;
	}
}


function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHidePages() { //v6.0
  var i,p,v,obj,args=MM_showHidePages.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'block':(v=='hide')?'none':v; }
    obj.display=v; }
}
//-- ÆÄºñÄÜ Àû¿ë ½ÃÀÛ
document.write("<link rel='shortcut icon' href='../images/Icon/favicon.ico'>")
document.write("<link rel='icon' type='image/gif' href='../images/Icon/animated_favicon1.gif'>")
//-- ÆÄºñÄÜ Àû¿ë ³¡


/*
<!--[if lte IE 6]>
    var isDOM = (document.getElementById ? true : false); 
    var isIE4 = ((document.all && !isDOM) ? true : false); 
    var isNS4 = (document.layers ? true : false); 
     
    function getRef(id) { 
            if (isDOM) return document.getElementById(id); 
            if (isIE4) return document.all[id]; 
            if (isNS4) return document.layers[id]; 
    } 
     
    var isNS = navigator.appName == "Netscape"; 
    function moveRightEdge() { 
            var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck; 
            if (isNS4) { 
                    yMenuFrom  = floater.top; 
                    yMenuTo     = windows.pageYOffset +10 ;  //À§ÂÊ À§Ä¡ 
            } else if (isDOM) { 
                    yMenuFrom   = parseInt (floater.style.top, 10); 
                    yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) +10; // À§ÂÊ À§Ä¡ 
            } 
            timeoutNextCheck = 500; 
            if (yMenuFrom != yMenuTo) { 
                    yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 5); 
                    if (yMenuTo < yMenuFrom) 
                            yOffset = -yOffset; 
                    if (isNS4) 
                            floater.top += yOffset; 
                    else if (isDOM) 
                            floater.style.top = parseInt (floater.style.top, 10) + yOffset; 
                            timeoutNextCheck = 10; 
            } 
            setTimeout ("moveRightEdge()", timeoutNextCheck); 
    } 
     
    if (isNS4) { 
            var floater = document["floater"]; 
            floater.top = top.pageYOffset +10; 
            floater.visibility = "visible"; 
            moveRightEdge(); 
    } else if (isDOM) { 
            var floater = getRef('floater'); 
            floater.style.top = (isNS ? window.pageYOffset : document.body.scrollTop) +10; 
            floater.style.visibility = "visible"; 
            moveRightEdge(); 
    }
<![endif]-->
*/

/*
<!--
var wrap_div = document.getElementById('container');
var content_div = document.getElementById('aaa');
var fixed_layer = document.getElementById('floater');
var chk_ie6 = navigator.appVersion.substring(25,22);

window.onload=fixed_delayout;
window.onresize=fixed_delayout;scroll_fix;
if (chk_ie6=="6.0"){
	document.getElementById('container').onscroll=scroll_fix;
}else{
	window.onscroll=scroll_fix;
}



function fixed_delayout(){
	if (chk_ie6=="6.0"){
		fixed_layer.style.width = wrap_div.clientWidth +'px';
		if (document.documentElement.clientWidth < content_div.clientWidth){
			fixed_layer.style.bottom=15+'px';
		}else{
			fixed_layer.style.bottom=-1+'px';
		}
	}else{
		fixed_layer.style.width=wrap_div.clientWidth + 'px';
	}
}

function scrollX(){
	var de = document.documentElement;
	return self.pageXOffset || 
		(de && de.scrollLeft) ||
		document.body.scrollLeft;
}

function scroll6X(){
	return wrap_div.scrollLeft;
}
function scroll_fix(){
	if (chk_ie6=="6.0"){
		var scrollx_bar = scroll6X();
	}else{
		var scrollx_bar = scrollX();
	}
	fixed_layer.style.marginLeft= -scrollx_bar + 'px';
	fixed_layer.style.width=wrap_div.clientWidth +scrollx_bar + 'px';
}

//-->
*/
