// document.domain = "daum.net";

//START: Fix IE 6 Text Selection Bug
if (window.createPopup && document.compatMode && document.compatMode=="CSS1Compat")
{
	document.onreadystatechange = function fixIE6AbsPos() {
		if( !document.body ) { return; }
		document.body.style.height = document.documentElement.scrollHeight + 'px';
	}
}
//END: Fix IE 6 Text Selection Bug

function pop(url,name,w,h) { window.open(url,name,'width='+w+',height='+h+',scrollbars=auto') } // Popup(???????=)
function pops(url,name,w,h) { window.open(url,name,'width='+w+',height='+h+',scrollbars=yes') } // Popup(????????=)

function autoBlur(){ // link image auto blur
	try{
		if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
	}catch(e) {}
}
document.onfocusin=autoBlur;

function tab_mnu(no,total,lname) {
	if(no == "01"){
		document.getElementById("date01").style.display = "block";
		document.getElementById("date02").style.display = "none";
	}else {
		document.getElementById("date01").style.display = "none";
		document.getElementById("date02").style.display = "block";
	}
}
/*
function tab_mnu(no,total,lname) {
	if (no == "") no = "01";

	for(var i=1;i <= total;i++){
	var tlayer = eval("document.all."+lname+"0"+i);
	tlayer.style.display = 'none';
	}
	
	eval("document.all."+lname+no+".style.display = 'block';");
}
*/
// open popup : User Click
function openPopup(url, winW, winH, scroll, winName)
{
	var setup = "width="+ winW +",height="+winH+",toolbar=no,location=no,status=no,menubar=no,top=10,left=50,scrollbars=" + scroll +",resizable=no";
	if (!winName) winName = "";
	window.open(url, winName, setup);
}

function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring;



//Flash init() 

function flashCM(URL,width,height,vars,bgColor,winmode, id) {

	var id=URL.split("/")[URL.split("/").length-1].split(".")[0];
	if(vars==null) vars='';
	if(bgColor==null) bgColor='transparent';
	if(winmode==null) winmode='opaque';

	document.write("	<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' "); 
	document.write("		width='"+width+"' height='"+height+"' id='"+id+"' align='middle'> ");
	document.write("	<param name='allowScriptAccess' value='always' /> ");
	document.write("	<param name='movie' 						value='"+URL+"' /> ");
	document.write("	<param name='FlashVars' 				value='"+vars+"' /> ");
	document.write("	<param name='wmode' 						value='"+winmode+"' /> ");
	document.write("	<param name='menu' 							value='false' /> ");
	document.write("	<param name='quality'						value='high' /> ");
	document.write("	<param name='bgcolor'						value='"+bgColor+"' /> ");
	document.write("	<embed src='"+URL+"' flashVars='"+vars+"' wmode='"+winmode+"' menu='false' quality='high' ");
	document.write("		bgcolor='"+bgColor+"' width='"+width+"' height='"+height+"' name='"+id+"' align='middle' ");
	document.write("		allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /> ");
	document.write("	</object> ");
}


/* 오시는길 url 복사 */	
function btn1(){
	alert("한남 오피스 URL이 복사 되었습니다");
}
function btn2(){
	alert("제주 오피스 URL이 복사 되었습니다");
}
function btn3(){
	alert("한남 오피스 URL이 복사 되었습니다");
}
