
 function mapView(goX,goY,code){
	var url = "/include/cyber_map.asp?goX="+goX+"&goY="+goY+"&code="+code;
	window.open(url,'mapView','left=0,top=0,toolbar=no,menubar=no,location=no,directions=no, scrollbars=no,status=no,width=950,height=700');
 }

  function vrView(code){
	var url = "/common/vr/index.asp?code="+code;
	window.open(url,'vrView','left=0,top=0,toolbar=no,menubar=no,location=no,directions=no, scrollbars=no,status=no,width=850,height=490');
 }

 function movieView(code){
	var url = "/common/movie/index.asp?code="+code;
	window.open(url,'movieView','left=0,top=0,toolbar=no,menubar=no,location=no,directions=no, scrollbars=no,status=no,width=700,height=460');
 }


// ÇÃ·¡½¬ ÆÄÀÏÀ» Ãâ·Â
function viewFlash(filename,width,height,query){
	flashStr = '<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" WIDTH=\"'+width+'\" HEIGHT=\"'+height+'\" id=\"'+filename+'\" ALIGN=\"\">';
	flashStr += '<PARAM NAME=movie VALUE=\"'+filename+'\">';
	flashStr += '<PARAM NAME=quality VALUE=high>';
	flashStr += '<PARAM NAME=wmode VALUE=transparent>';
	flashStr += '<PARAM NAME=menu VALUE=false>';
	flashStr += '<PARAM NAME=bgcolor VALUE=#FFFFFF>';
	flashStr += '<EMBED src=\"'+filename+'\" quality=high wmode=transparent menu=false bgcolor=#FFFFFF  WIDTH=\"'+width+'\" HEIGHT=\"'+height+'\" NAME=\"'+filename+'\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\">';
	flashStr += '</EMBED>';
	flashStr += '</OBJECT>';
	document.write(flashStr);
}

 function imgChg(imgname,imgurl){
	 imgname.src = imgurl;
 }

 function menuReset(style,last_pg){
   var menuName = eval("menu_"+style+"_"+last_pg);
   menuName.src = "/img/sub/left_menu_"+style+"_"+last_pg+".gif";
 }

 function menuRecovery(style,last_pg){
   var menuName = eval("menu_"+style+"_"+last_pg);
   menuName.src = "/img/sub/left_menu_"+style+"_"+last_pg+"r.gif";
 }

// Browse Type
// IE Script
var global_dragging=false;
var global_debugmode=false;
var Browser=new browserCheck();
function browserCheck(){
	var agt=navigator.userAgent.toLowerCase();
	var is_major=parseInt(navigator.appVersion);
	var is_minor=parseFloat(navigator.appVersion);
	var is_ie=((agt.indexOf("msie")!=-1)&&(agt.indexOf("opera")==-1));
	var is_ie3=(is_ie&&(is_major<4));
	var is_ie4=(is_ie&&(is_major==4)&&(agt.indexOf("msie 4")!=-1));
	var is_ie4up=(is_ie&&(is_major>=4));
	var is_ie5=(is_ie&&(is_major==4)&&(agt.indexOf("msie 5.0")!=-1));
	var is_ie5_5=(is_ie&&(is_major==4)&&(agt.indexOf("msie 5.5")!=-1));
	var is_ie5up=(is_ie&&!is_ie3&&!is_ie4);
	var is_ie5_5up=(is_ie&&!is_ie3&&!is_ie4&&!is_ie5);
	var is_ie6=(is_ie&&(is_major==4)&&(agt.indexOf("msie 6.")!=-1));
	var is_ie6up=(is_ie&&!is_ie3&&!is_ie4&&!is_ie5&&!is_ie5_5);
	var is_xp=((agt.indexOf("windows")!=-1)&&(agt.indexOf("5.1")!=-1));
	var is_xp_sp2=(is_xp&&(agt.indexOf("sv1")!=-1));
	this.is_ie=is_ie;
	this.is_ie5up=is_ie5up;
	this.is_ue5_5up=is_ie5_5up;
	this.is_ie6up=is_ie6up;
	this.is_xp=is_xp;
	this.is_xp_sp2=is_xp_sp2;
}
var NS4;
var IE4;
if (document.all){
    IE4 = true;
    NS4 = false;
}else{
    IE4 = false;
    NS4 = true;
}

isWin = (navigator.appVersion.indexOf("Win") != -1)

/* ÆË¾÷ °ü·Ã ÇÔ¼ö */
function open_window(url, name, width, height,option){
        var windowX = Math.ceil( (window.screen.width  - width) / 2 );
        var windowY = Math.ceil( (window.screen.height - height) / 2 );
        window.open(url, name, ",width=" + width +",height=" + height+",left="+windowX+",top="+windowY + ",resizable=no,"+option);
}
