var fpath='../';  /*·çÆ®°¡µÇ´Â °æ·Î*/

function popup_close(){
	if (/MSIE/.test(navigator.userAgent)) {

    if(navigator.appVersion.indexOf("MSIE 7.0")>=0) {

        window.open('about:blank','_self').close();

    } else {

       window.opener = self;

       self.close();

    }                      

}
}

function return_html(){		
        a=String(window.location);

		if(a.indexOf('file://')!=-1){
		 s='/'; 
		} else
		 s='\\'; 

		b=String(a).split("/");
                
		c=b[b.length-1];

        d=String(c).split(".");

        e=d[d.length-2];

        return e;
}

function faqView(num,Maxnum){
	for(i=0; i < Maxnum; i++){
		document.getElementById("faq_view" + i).style.display = 'none';
	}
	document.getElementById("faq_view" + num).style.display = 'block';

}

function flash_write( flashUri, id, width, height, wmode ) {
   var _obj_ = "";
   _obj_ = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + width + '" height="' + height + '" id="' + id + '" align="middle">';
	_obj_ += '<param name="movie" value="' + flashUri + '" />';
   _obj_ += '<param name="quality" value="high" />';
   _obj_ += '<param name="wmode" value="'+wmode+'" />    ';
	_obj_ += '<param name="menu" value="false" />    ';
   _obj_ += '<param name="bgcolor" value="#ffffff" />        ';
   _obj_ += '<embed src="' + flashUri + '" quality="high" wmode='+wmode+' bgcolor="#ffffff" width="' + width +'" height="' + height + '" id="' + id + '" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>    ';
   _obj_ += '</object>';
   document.writeln( _obj_ );
}


function navigation(d1Num,d2Num){

var width = "765";
var height = "47";
var path = fpath+"flash/";
var name = "navigation";

var val=return_html();

if(val!="index" && val!="default"){

         var name = "../flash/navigation";

	     }else {

         var name = "flash/navigation";
}

if (!d1Num) d1Num= '0';
if (!d2Num) d2Num= '0';
d1Num = d1Num - 0;
d2Num = d2Num - 0;
document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+width+"' height='"+height+"' id='"+name+"' valign='middle'>");
document.write("<param name='allowScriptAccess' value='sameDomain' />");
document.write("<param name='allowFullScreen' value='false' />");
document.write("<param name='movie' value='"+path+name+".swf?' />");
document.write("<param name='quality' value='high' />");
document.write("<param name='wmode' value='transparent' />");
document.write("<param name='bgcolor' value='#ffffff' />");
document.write("<embed src='"+path+name+".swf?quality='high' wmode='transparent' bgcolor='#ffffff' width='"+width+"' height='"+height+"' name='"+name+"' id='"+name+"' valign='middle' allowScriptAccess='sameDomain' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
document.write("</object>");
}



function left_menu_bar(d1Num,d2Num,d3Num){
	var width = "220";
	var height = "400";
	var path = fpath+"flash/lmb/";
	var name = "lmb_"+d1Num; 

    if(d1Num=="03"){
		height="672";
	}

	d2Num = d2Num - 0;
	d3Num = d3Num - 0;

	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+width+"' height='"+height+"' id='"+name+"' align='middle'>");
		document.write("<param name='allowScriptAccess' value='sameDomain' />");
		document.write("<param name='allowFullScreen' value='false' />");
		document.write("<param name='movie' value='"+path+name+".swf?pageNum="+d2Num+"&subNum="+d3Num+"' />");
		document.write("<param name='quality' value='high' />");
		document.write("<param name='wmode' value='transparent' />");
		document.write("<param name='bgcolor' value='#ffffff' />");
		document.write("<embed src='"+path+name+".swf?pageNum="+d2Num+"&subNum="+d3Num+"' quality='high' wmode='transparent' bgcolor='#ffffff' width='"+width+"' height='"+height+"' name='"+name+"' id='"+name+"' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
		document.write("</object>");
}


function top_visual_flash(d1Num){
	var width = "1000";
	var height = "186";
	var path = fpath+"flash/sub_top_visual/";
	var name = "sub_flash_"+d1Num; 

	flash_write(path+name+".swf",name,width,height,"transparent");


}

function footer_bar(){
	var width = '1000';
	var height = '128';
	var path = fpath+"flash/";
	var name = "footer"; 

	flash_write(path+name+".swf",'foot',width,height,"transparent"); 
}

// »õÃ¢ ¶ç¿ì±â
function openwindow(name, url, width, height, scrollbar) {
	scrollbar_str = scrollbar ? 'yes' : 'no';
	window.open(url, name, 'width='+width+',height='+height+',scrollbars='+scrollbar_str);
}
