//navigator.appName 
//navigator.userAgent 

//alert(navigator.userAgent);
var ie=document.all?1:0; 
var ns=document.layers?1:0; 
var dom=document.getElementById?1:0; 
var l=(ie||dom)?navigator.browserLanguage:navigator.language; 
var agent = navigator.userAgent; 
var bver; 

bver = agent.substr(agent.indexOf('MSIE'),8);

var clickAreaCheck;
//·Î±×ÀÎ
function OpenPOP1(){ 
	//alert("OpenPOP2()") ;
	if (bver=='MSIE 7.0')
	{
		window.open('/login.asp', 'extreme1', 'width=386' + ',height=226' + ',top=0,left=0');
	} else {
		window.open('/login.asp', 'extreme1', 'width=386' + ',height=126' + ',top=0,left=0');
	}
}
	
//È¸¿ø°¡ÀÔ
function OpenPOP2(){ 
	//alert("OpenPOP3()") ;
	if (bver=='MSIE 7.0') {
		window.open('/join.asp', 'extreme2', 'width=794' + ',height=528'+ ',top=0,left=0');
	} else {
		window.open('/join.asp', 'extreme2', 'width=794' + ',height=508'+ ',top=0,left=0');
	}
}
//¾ÆÀÌµð,ÆÐ½º¿öµå Ã£±â 
function OpenPOP3(){ 
		if (bver=='MSIE 7.0') {
			window.open('/idpw_find.asp', 'extreme3', 'width=477' + ',height=259' + ',top=0,left=0');
		} else {
			window.open('/idpw_find.asp', 'extreme3', 'width=477' + ',height=219' + ',top=0,left=0');
		}
}

//mypage
function OpenPOP4(){ 
	if (bver=='MSIE 7.0') {
		window.open('/mypage.asp', 'extreme4', 'width=510' + ',height=443' + ',top=0,left=0');
	} else {
		window.open('/mypage.asp', 'extreme4', 'width=510' + ',height=423' + ',top=0,left=0');
	}
	
}

//contact us
function OpenPOP5(){ 
	if (bver=='MSIE 7.0') {
		window.open('/contact_email.asp', 'extreme5', 'width=530' + ',height=417' + ',top=0,left=0');
	} else {
		window.open('/contact_email.asp', 'extreme5', 'width=510' + ',height=417' + ',top=0,left=0');
	}
	
}

//·Î±×ÀÎ°æ°íÃ¢
function OpenPOP6(){ 
	if (bver=='MSIE 7.0') {
		window.open('/login_ppo.asp?refer_page=A&NvCh=4&NvSb=2', 'extreme6', 'width=320' + ',height=136' + ',top=0,left=0');
	} else {
		window.open('/login_ppo.asp?refer_page=A&NvCh=4&NvSb=2', 'extreme6', 'width=320' + ',height=116' + ',top=0,left=0');
	}
}

function OpenPOP7(){
	if (bver=='MSIE 7.0') {
		 window.open('/join.asp', 'extreme2', 'width=794' + ',height=508'+ ',top=0,left=0');
	} else {
		 window.open('/join.asp', 'extreme2', 'width=794' + ',height=508'+ ',top=0,left=0');
	}
   
    window.close();
}

function year_emotshow(){
	clickAreaCheck = true;
	var open = document.all["year"].style.display;
	var pos = document.body.clientHeight;

	if (open == "none"){
		 document.all["year"].style.display = "";

		 if(document.all["cafe"]) {
			 document.all["cafe"].style.display = 'none';
		 }
		 return;
	}
	else{
		document.all["year"].style.display = "none";
	}

}

function closelayer(layerid){
	if(layerid != '') {
		var open = eval("document.all."+layerid+".style.display");

		if (open == ""){
			eval("document.all."+layerid+".style.display = 'none'");
		}
	}
}

function cafe_emotshow(){
	clickAreaCheck = true;
	var open = document.all["cafe"].style.display;
	var pos = document.body.clientHeight;
	if (open == "none"){
		 document.all["cafe"].style.display = "";
		 
		 if(document.all["year"]) {
			 document.all["year"].style.display = 'none';
		 }
	}
	else{
		document.all["cafe"].style.display = "none";
	}
}

function flashf(s,d,w,h,t) {
        return "<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="+w+" height="+h+" id="+d+"><param name=wmode value="+t+" /><param name=movie value="+s+" /><param name=quality value=high /><embed src="+s+" quality=high wmode="+t+" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+w+" height="+h+"></embed></object>";
}

// write document contents
function documentwrite(src){
        document.write(src);
}


