
//document.domain = "cokeplay.com";

//기본 - 이름, 플래시파일명, 가로, 세로, 정렬
function FlashInc(f_name,f_value,f_width,f_height,f_align){
	document.write('<object id="'+f_name+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+f_width+'" height="'+f_height+'">') ;
	document.write('<param name="movie" value="'+f_value+'.swf" />') ;
	document.write('<param name="quality" value="high" />') ;
	document.write('<param name="menu" value="false" />') ;
	document.write('<param name="wmode" value="transparent" />') ;
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<PARAM NAME=scale VALUE=noscale> ');
	document.write('<PARAM NAME="SAlign" VALUE="'+f_align+'">') ;
	document.write('<embed src="'+f_value+'.swf" quality="high" name="'+f_name+'" SAlign="'+f_align+'" scale=noscale width="'+f_width+'" height="'+f_height+'" allowScriptAccess="always"  type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />') ;
	document.write('</object>') ;
}

//기본 + 파라미터
function topNavi(f_name,f_value,f_width,f_height,f_align,f_param){
	document.write('<object id="'+f_name+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+f_width+'" height="'+f_height+'">') ;
	document.write('<param name="FlashVars" value="'+f_param+'" />') ;
	document.write('<param name="movie" value="'+f_value+'.swf" />') ;
	document.write('<param name="quality" value="high" />') ;
	document.write('<param name="menu" value="false" />') ;
	document.write('<param name="wmode" value="transparent" />') ;
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<PARAM NAME=scale VALUE=noscale> ');
	document.write('<PARAM NAME="SAlign" VALUE="'+f_align+'">') ;
	document.write('<embed src="'+f_value+'.swf" quality="high" name="'+f_name+'" SAlign="'+f_align+'" scale=noscale width="'+f_width+'" height="'+f_height+'" allowScriptAccess="always"  type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />') ;
	document.write('</object>') ;
}

//기본 + 파라미터
function FlashIncParam(f_name,f_value,f_width,f_height,f_align,f_param){
	document.write('<object id="'+f_name+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+f_width+'" height="'+f_height+'">') ;
	document.write('<param name="movie" value="'+f_value+'.swf?return_url=/Default.aspx" />') ;
	document.write('<param name="quality" value="high" />') ;
	document.write('<param name="menu" value="false" />') ;
	//document.write('<param name="wmode" value="transparent" />') ;
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<PARAM NAME=scale VALUE=noscale> ');
	document.write('<PARAM NAME="SAlign" VALUE="'+f_align+'">') ;
	document.write('<param name="FlashVars" value="'+f_param+'">');
	document.write('<embed src="'+f_value+'.swf?return_url=/Default.aspx" quality="high" name="'+f_name+'" SAlign="'+f_align+'" scale=noscale width="'+f_width+'" height="'+f_height+'" allowScriptAccess="always"  type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />') ;
	document.write('</object>') ;
}

function FlashIncParamGet(f_name,f_value,f_width,f_height,f_align,f_param){
	document.write('<object id="'+f_name+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+f_width+'" height="'+f_height+'">') ;
	document.write('<param name="movie" value="'+f_value+'.swf?'+f_param+'" />') ;
	document.write('<param name="quality" value="high" />') ;
	document.write('<param name="menu" value="false" />') ;
	document.write('<param name="wmode" value="window" />') ;
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<PARAM NAME=scale VALUE=noscale> ');
	document.write('<PARAM NAME="SAlign" VALUE="'+f_align+'">') ;
	document.write('<embed wmode="window" src="'+f_value+'.swf?'+f_param+'" quality="high" name="'+f_name+'" SAlign="'+f_align+'" scale=noscale width="'+f_width+'" height="'+f_height+'" allowScriptAccess="always"  type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />') ;
	document.write('</object>') ;
}

//기본 + 파라미터 + 레이어
function Flashf(f_name,f_value,f_width,f_height,f_align,f_param){
	document.write('<object id="'+f_name+'" style="position:absolute; top:0px;z-index:1000;visibility: hidden; width:100%; height:580px;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+f_width+'" height="'+f_height+'">') ;
	document.write('<param name="movie" value="'+f_value+'.swf?return_url=/Default.aspx" />') ;
	document.write('<param name="quality" value="high" />') ;
	document.write('<param name="menu" value="false" />') ;
	document.write('<param name="wmode" value="transparent" />') ;
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<PARAM NAME=scale VALUE=noscale> ');
	document.write('<PARAM NAME="SAlign" VALUE="'+f_align+'">') ;
	document.write('<param name="FlashVars" value="'+f_param+'">');
	document.write('<embed src="'+f_value+'.swf?return_url=/Default.aspx" quality="high" name="'+f_name+'" SAlign="'+f_align+'" scale=noscale width="'+f_width+'" height="'+f_height+'" allowScriptAccess="always"  type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />') ;
	document.write('</object>') ;
}

//미디어
function PlayerInc(f_name,f_value,f_width,f_height){
	document.write('<object classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 id=mp name=mp standby="Loading Windows Media Player components..." type="application/x-oleobject" width="'+f_width+'" height="'+f_height+'">');
	document.write('<param NAME="'+f_name+'" VALUE="'+f_value+'">');
	document.write('<param NAME=ShowControls VALUE=0>');
	document.write('<param NAME=ShowGotoBar VALUE=0>');
	document.write('<param NAME=ShowStatusBar VALUE=0>');
	document.write('<param NAME=ControlType VALUE=2>');
	document.write('<param NAME=AutoStart value=-1>');
	document.write('<param NAME=ShowDisplay value=0>');
	document.write('<param NAME=AutoStart value=-1>');
	document.write('<param NAME=DisplayBackColor VALUE=&HF4F3EB>');
	document.write('<param NAME=DisplayForeColor VALUE=&H999988>');
	document.write('<param NAME=Enabled VALUE=ture>');
	document.write('<param NAME=EnableContextMenu Value=0>');
	document.write('<param NAME=Volume value=0>');
	document.write('<param NAME=BufferingTime value=8>');
	document.write('<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows/mediaplayer/download/default.asp" FileName="" Name=mpwidth="'+f_width+'" height="'+f_height+'" SHOWSTATUSBAR=-1 SHOWCONTROLS=0 SHOWGOTOBAR=0 SHOWDISPLAY=0 INVOKEURLS=-1 AUTOSTART=1 CLICKTOPLAY=0 DisplayForeColor=2334678></embed>');
	document.write(' </object>');
}

//미디어사운드
function SoundInc(){
document.write('<OBJECT classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" id="MMPlayer1" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" width="1" height="1" viewastext>');
document.write('<PARAM NAME="filename" VALUE="">');
document.write('<PARAM name="AudioStream" value="1">');
document.write('<PARAM name="captioningid" value="caption">');
document.write('<PARAM name="AutoPlay" value="1">');
document.write('<PARAM name="AutoSize" value="0">');
document.write('<PARAM name="AutoStart" value="1">');
document.write('<PARAM name="AnimationAtStart" value="0">');
document.write('<PARAM name="AutoRewind" value="1">');
document.write('<PARAM name="Balance" value="0">');
document.write('<PARAM name="BufferingTime" value="1000">');
document.write('<PARAM name="CaptioningID" value="">');
document.write('<PARAM name="ClickToPlay" value="0">');
document.write('<PARAM name="CursorType" value="32512">');
document.write('<PARAM name="CurrentPosition" value="-1">');
document.write('<PARAM name="CurrentMarker" value="0">');
document.write('<PARAM name="DefaultFrame" value="">');
document.write('<PARAM name="DisplayBackColor" value="0">');
document.write('<PARAM name="DisplayForeColor" value="0">');
document.write('<PARAM name="DisplaySize" value="4">');
document.write('<PARAM name="uiMode" value="none">');
document.write('<PARAM name="stretchToFit" value="0">');
document.write('<PARAM name="Enabled" value="-1">');
document.write('<PARAM name="EnableContextMenu" value="0">');
document.write('<PARAM name="EnablePositionControls" value="-1">');
document.write('<PARAM name="EnableFullScreenControls" value="1">');
document.write('<PARAM name="EnableTracker" value="-1">');
document.write('<PARAM name="InvokeURLs" value="-1">');
document.write('<PARAM name="Language" value="0">');
document.write('<PARAM name="Mute" value="0">');
document.write('<PARAM name="PlayCount" value="1000">');
document.write('<PARAM name="PreviewMode" value="0">');
document.write('<PARAM name="Rate" value="1">');
document.write('<PARAM name="SAMILang" value="">');
document.write('<PARAM name="SAMIStyle" value="">');
document.write('<PARAM name="SelectionStart" value="0">');
document.write('<PARAM name="SelectionEnd" value="0">');
document.write('<PARAM name="SendOpenStateChangeEvents" value="-1">');
document.write('<PARAM name="SendWarningEvents" value="-1">');
document.write('<PARAM name="SendErrorEvents" value="-1">');
document.write('<PARAM name="SendKeyboardEvents" value="0">');
document.write('<PARAM name="SendMouseClickEvents" value="0">');
document.write('<PARAM name="SendMouseMoveEvents" value="0">');
document.write('<PARAM name="SendPlayStateChangeEvents" value="1">');
document.write('<PARAM name="ShowCaptioning" value="0">');
document.write('<PARAM name="ShowControls" value="0">');
document.write('<PARAM name="ShowAudioControls" value="0">');
document.write('<PARAM name="ShowDisplay" value="0">');
document.write('<PARAM name="ShowGotoBar" value="0">');
document.write('<PARAM name="ShowPositionControls" value="0">');
document.write('<PARAM name="ShowTracker" value="0">');
document.write('<PARAM name="TransparentAtStart" value="0">');
document.write('<PARAM name="VideoBorderWidth" value="0">');
document.write('<PARAM name="VideoBorderColor" value="0">');
document.write('<PARAM name="VideoBorder3D" value="0">');
document.write('<PARAM name="Volume" value="10">');
document.write('<PARAM name="WindowlessVideo" value="0">');
document.write('</OBJECT>');
}

//메인 로그인체크
function loginchk(msg) {
	alert(msg);
	location.href('http://www.cokeplay.com/Member/loginMember.aspx');
}


function MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.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')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}









//2007 관련

var coke;

var str = String(window.location);

/*
	if (eval(str.indexOf("?"))>0) {
//		alert("yes");
		var tmp;
		tmp=window.location;
		tmp=String(tmp).split('?');
		tmp=tmp[1].split('&');

		for(k in tmp) {
			tmp2=tmp[k].split('=');
			eval("var "+tmp2[0]+"=tmp2[1]");
			coke = tmp2[1];
		}

		if (coke=="")
		{
		var todayDate = new Date();
		coke = (todayDate.getMinutes()+todayDate.getSeconds());
		}
	}
	else {
//		alert("no");
		var todayDate = new Date();
		coke = (todayDate.getMinutes()+todayDate.getSeconds());
}
*/

//alert(coke);

//레이어 숨김
function layertg() {
	if (document.all.Layer_side2.style.visibility=="visible"){
		MM_showHideLayers('Layer_side2','','hide');
	}
	else if (document.all.Layer_side2.style.visibility=="hidden") {
		MM_showHideLayers('Layer_side2','','show');
	}
}

function layershow(layerH,url) {

//	if (parent.document.all[layerH].style.visibility=="hidden") {
		var lName = document.getElementById(layerH);
		//회원약관
		if (url=="agree")
		{
			url = "http://www.cokeplay.com/memberAgree.asp";
			/*
			lName.style.top = '140';
			if ((document.body.clientHeight > 1199 )) {
			document.all["sub"].height = '710';
			}
			else if ((document.body.clientHeight > 1023) && (document.body.clientHeight < 1200)) {
			document.all["sub"].height = '710';
			}
			else if ((document.body.clientHeight > 959) && (document.body.clientHeight < 1024)) {
			document.all["sub"].height = '600';
			}
			else if ((document.body.clientHeight > 767) && (document.body.clientHeight < 960)) {
			document.all["sub"].height = '400';
			}
			else if ((document.body.clientHeight < 768)) {
			document.all["sub"].height = '390';
			}
			*/
		}
		//법적고지
		if (url=="regal")
		{
			url = "http://www.cokeplay.com/legalNotice.asp";
			/*
			lName.style.top = '140';
			if ((document.body.clientHeight > 1199 )) {
			document.all["sub"].height = '710';
			}
			else if ((document.body.clientHeight > 1023) && (document.body.clientHeight < 1201)) {
			document.all["sub"].height = '710';
			}
			else if ((document.body.clientHeight > 767) && (document.body.clientHeight < 1025)) {
			document.all["sub"].height = '600';
			}
			else if ((document.body.clientHeight < 769)) {
			document.all["sub"].height = '390';
			}
			*/
		}
		//개인정보보호정책
		if (url=="privacy")
		{
			url = "http://www.cokeplay.com/guidePrivacy.asp";
			/*
			lName.style.top = '140';
			if ((document.body.clientHeight > 1199 )) {
			document.all["sub"].height = '710';
			}
			else if ((document.body.clientHeight > 1023) && (document.body.clientHeight < 1201)) {
			document.all["sub"].height = '710';
			}
			else if ((document.body.clientHeight > 767) && (document.body.clientHeight < 1025)) {
			document.all["sub"].height = '600';
			}
			else if ((document.body.clientHeight < 769)) {
			document.all["sub"].height = '390';
			}
			*/
		}
		//회원가입
		if (url=="certify")
		{
			url = "/Member/certifyMember.aspx";
			//url = "https://www.cokeplay.com/Member/certifyMember.aspx";
			lName.style.top = '150';
			if ((document.body.clientHeight > 1199 )) {
			document.all["sub"].height = '720';
			}
			else if ((document.body.clientHeight > 1023) && (document.body.clientHeight < 1201)) {
			document.all["sub"].height = '720';
			}
			else if ((document.body.clientHeight > 767) && (document.body.clientHeight < 1025)) {
			document.all["sub"].height = '600';
			}
			else if ((document.body.clientHeight < 769)) {
			document.all["sub"].height = '390';
			}
		}
		//정보수정
		if (url=="modify")
		{
			url = "/Member/modifyMember.aspx";
			//url = "https://www.cokeplay.com/Member/modifyMember.aspx"
			lName.style.top = '150';
			if ((document.body.clientHeight > 1199 )) {
			document.all["sub"].height = '720';
			}
			else if ((document.body.clientHeight > 1023) && (document.body.clientHeight < 1201)) {
			document.all["sub"].height = '720';
			}
			else if ((document.body.clientHeight > 767) && (document.body.clientHeight < 1025)) {
			document.all["sub"].height = '600';
			}
			else if ((document.body.clientHeight < 769)) {
			document.all["sub"].height = '390';
			}
		}
		//고객센터
		if (url=="customer")
		{
			url = "/Customer/customerMain.aspx?count="+document.MainForm.FlashParam.value;
			/*
//			alert(document.MainForm.FlashParam.value);
			lName.style.top = '150';
			if ((document.body.clientHeight > 1199 )) {
			document.all["sub"].height = '720';
			}
			else if ((document.body.clientHeight > 1023) && (document.body.clientHeight < 1201)) {
			document.all["sub"].height = '720';
			}
			else if ((document.body.clientHeight > 767) && (document.body.clientHeight < 1025)) {
			document.all["sub"].height = '600';
			}
			else if ((document.body.clientHeight < 769)) {
			document.all["sub"].height = '390';
			}
			*/
		}
		//자주묻는질문
		if (url=="faq")
		{
			url = "/Customer/faqCategory.aspx?count="+document.MainForm.FlashParam.value;
			lName.style.top = '150';
			if ((document.body.clientHeight > 1199 )) {
			document.all["sub"].height = '720';
			}
			else if ((document.body.clientHeight > 1023) && (document.body.clientHeight < 1201)) {
			document.all["sub"].height = '720';
			}
			else if ((document.body.clientHeight > 767) && (document.body.clientHeight < 1025)) {
			document.all["sub"].height = '600';
			}
			else if ((document.body.clientHeight < 769)) {
			document.all["sub"].height = '390';
			}
		}
		//문의하기
		if (url=="qnaInput")
		{
			url = "/Customer/qnaInput.aspx?count="+document.MainForm.FlashParam.value;
			lName.style.top = '150';
			if ((document.body.clientHeight > 1199 )) {
			document.all["sub"].height = '720';
			}
			else if ((document.body.clientHeight > 1023) && (document.body.clientHeight < 1201)) {
			document.all["sub"].height = '720';
			}
			else if ((document.body.clientHeight > 767) && (document.body.clientHeight < 1025)) {
			document.all["sub"].height = '600';
			}
			else if ((document.body.clientHeight < 769)) {
			document.all["sub"].height = '390';
			}
		}
		//비회원문의하기
		if (url=="qnaLogin")
		{
			url = "/Customer/qnaLogin.aspx?count="+document.MainForm.FlashParam.value;
			lName.style.top = '150';
			if ((document.body.clientHeight > 1199 )) {
			document.all["sub"].height = '720';
			}
			else if ((document.body.clientHeight > 1023) && (document.body.clientHeight < 1201)) {
			document.all["sub"].height = '720';
			}
			else if ((document.body.clientHeight > 767) && (document.body.clientHeight < 1025)) {
			document.all["sub"].height = '600';
			}
			else if ((document.body.clientHeight < 769)) {
			document.all["sub"].height = '390';
			}
		}
		document.location.href=url;
//		document.sub.location.href=url;
//		MM_showHideLayers(layerH,'','show');
//	}
}

function layerhide() {
//	if (document.all[layerH].style.visibility=="visible"){
		MM_showHideLayers('Layer_side2','','hide');
		document.sub.location.href='/sub.aspx';

//	}
}

function layerheight(obj) {
	document.all.shell_top.height = obj;
}

function layergo(obj) {
		parent.document.location.href='main.asp?mainmenu='+obj;
}

function mainview() {
	if ((screen.width < 1280) && (screen.height < 1024)) {
	document.sub.resizeTo('100','10');
	document.sub.moveTo('100','20');
	}
	else {
	document.sub.resizeTo('100','400');
	document.sub.moveTo('100','20');
	}
}

//브라우저사이즈변경시
function aaa() {
	var a = (screen.height - document.body.clientHeight);
	var b = 550 - a + 210;
	var c;

	if ((screen.width > 1599) && (screen.height > 1199)) {
		b = b + 130;
	}

	if ((screen.width < 1281) && (screen.height < 1025)) {
		b = b - 0;
	}

	if ((screen.height < 961)) {
		b = b - 55;
	}

	if ((screen.height < 769)) {
		b = b - 170;
	}

//	alert(screen.height);
//	alert(document.body.clientHeight);
	if (b<380)
	{
		c = eval(380);
	}
	else {
		c = eval(b);
	}
	/*
	document.all["sub"].width = c;
	document.all["sub"].setAttribute("width", c);
	document.all["sub"].setAttribute("height", c);
	*/
	document.all["sub"].height = c;
//	document.sub.resizeTo('563','100');
//	mainview();
}

function doResize(){
	aaa();
	sub.document.body.scrollHeight;
	sub.document.body.scrollWidth;
}


//레이어 가운데 정렬
function DivAlign(theDiv){
	var obj,fun,dw,lw,x;
	var dy,ly,y;

	fun = (document.all) ? "document.getElementById" : "MM_findObj";
	obj = (document.all) ? document.getElementById(theDiv) : MM_findObj(theDiv);

	if(obj){
		if(document.all){
			dw = document.body.clientWidth;
			dy = document.body.clientHeight;
			}
		else{
			dw = innerWidth;
			dy = innerHeight;
		}
		if(document.layers){
			lw = obj.clip.width;
			ly = obj.clip.height;
			}
		else{
			lw = obj.style.width.replace("px","");
			ly = obj.style.height.replace("px","");
		}
		x = (document.layers) ? ".left" : ".style.left";
		y = (document.layers) ? ".top" : ".style.top";
		eval(fun+"('"+theDiv+"')"+x+"="+dw+"/2-"+lw+"/2");
		eval(fun+"('"+theDiv+"')"+y+"="+dy+"/2-"+ly+"/2");
	}
}


//텍스트박스 클릭하면 글씨 사라짐
function clearField(field){ if (field.value == field.defaultValue) { field.value = ""; } }
function checkField(field){ if (field.value == "") { field.value = field.defaultValue; } }

//로그인팝업
function loginpop(url) {
	var w=window.screen.availWidth/2;
	var h=window.screen.availHeight/2;
	w=w-(398/2);
	h=h-(380/2);
//	url = url.replace("http","https");
//	window.open('http://www.cokeplay.com/Member/Popup/Login.aspx?url='+url,'login','scrollbars=no,resizable=no,width=398,height=380,left=10,top=10');
	window.open('https://www.cokeplay.com/Member/Popup/Login.aspx?url='+url,'login','scrollbars=no,resizable=no,width=398,height=380,left='+w+',top='+h);
}

function bHeight() { }

function layerHeightShow() {

	var tmp;
	tmp=window.location;
	tmp=String(tmp).split('?');
	tmp=tmp[0];

	if(tmp=="http://www.cokeplay.com/"||tmp=="http://www.cokeplay.com/main.aspx"){
	}
	else {
		document.all.shell_htmlMode.height = 478;
	}
//	alert('open');
}

/*070809 add*/
function layerHeightShow_c() {
	document.getElementById('shell_htmlMode').height = 850;
}

function layerHeightHide_c() {
	document.getElementById('shell_htmlMode').height = 1;
}
/*070809 add*/

function layerHeightHide() {
	var tmp;
	tmp=window.location;
	tmp=String(tmp).split('?');
	tmp=tmp[0];

	if(tmp=="http://www.cokeplay.com/"||tmp=="http://www.cokeplay.com/main.aspx"){
	}
	else {
		//document.all.shell_htmlMode.height = 218;
		document.all.shell_htmlMode.height = 50;
	}
//	alert('close');
}

function goTop() {
	window.scrollTo(0,0);
}

//티머니팝업
function tCard() {
	window.open('http://tmoney.cokeplay.com/popChangeNumber.aspx','changeNum','scrollbars=no,resizable=no,width=440,height=277,left=10,top=10');
}

//깜짝이벤트팝업
function sCode() {
	window.open('http://www.cokeplay.com/Event/pop_surpriseCode.aspx','scode','scrollbars=no,resizable=no,width=500,height=522,left=10,top=10');
}

//곰티비관련 팝업-test
function go_couponNum2(no)
{
	window.open('http://www.cokeplay.com/Event/popGomCP.aspx?no='+no,'','width=398, height=380, left=10, top=10');
}

//곰티비 쿠폰 관련 팝업
function go_couponNumC()
{
	window.open('http://gift.cokeplay.com/Popup/popCouponNum.aspx','','width=398, height=380, left=10, top=10');
}

function go_couponNumG1()
{
	window.open('http://www.cokeplay.com/Event/popGomCP.aspx?no=1','','width=398, height=380, left=10, top=10');
}

function go_couponNumG2()
{
	window.open('http://www.cokeplay.com/Event/popGomCP.aspx?no=2','','width=398, height=380, left=10, top=10');
}

function go_couponNumG3()
{
	window.open('http://www.cokeplay.com/Event/popGomCP.aspx?no=3','','width=398, height=380, left=10, top=10');
}

//깜짝코드이벤트 - 비보이당첨
function go_couponNumS()
{
	window.open('http://www.cokeplay.com/Event/popSCode.aspx','','width=398, height=380, left=10, top=10');
}

//해피쿠폰 추첨찬스 쿠폰번호 팝업-비보이
function go_couponNumB()
{
	window.open('http://gift.cokeplay.com/Popup/popCouponNum2.aspx','','width=398, height=380, left=10, top=10');
}

//북앤라이프 쿠폰 팝업
function BooknLifeCoupon()
{
	//window.open('http://www.cokeplay.com/Event/Popup/popBooknLifeCoupon.aspx','','width=500, height=560, left=10, top=10');
}

//북앤라이프 쿠폰 팝업 - 비당첨
function BooknLifeCoupon_02()
{
	//window.open('http://www.cokeplay.com/Event/Popup/popBooknLifeCoupon_02.aspx','','width=500, height=525, left=10, top=10');
}

//해피환전소 팝업
function happyGift()
{
//	if ( getCookie( "pointbanking" ) != "done" ) {
//		window.open('http://www.cokeplay.com/pop_pointbanking.asp','','width=450, height=475, left=10, top=10');
//		}
}

//무한경품대잔치
function go_giftParty()
{
//	window.open('http://www.cokeplay.com/Event/Popup/popGiftParty.aspx','','width=520, height=176, left=10, top=10');
}

function go_giftParty2()
{
//	window.open('http://www.cokeplay.com/Event/Popup/popGiftParty2.aspx','','width=520, height=176, left=10, top=10');
}

//무한경품대잔치 메인팝업
function giftParty()
{

	/*
	if ( getCookie( "giftParty" ) != "done" ) {
		window.open('http://www.cokeplay.com/Event/Popup/popGiftParty_main.aspx','giftpartymain','width=532, height=683, left=10, top=10');
		}
		if ( getCookie( "polar" ) != "done" ) {
			   noticeWindow2  =  window.open('/pop_polar.asp','','scrollbars=no,resizable=no,width=348,height=308,left=10,top=10');
			   noticeWindow2.focus();
		}

	if ( getCookie( "poll" ) != "done" ) {
		   noticeWindow2  =  window.open('http://www.cokeplay.com/Event/Popup/pop_poll_fanta.asp','fantapoll','scrollbars=no,resizable=no,width=350,height=340,left=540,top=0');
		   noticeWindow2.focus();
		}
	*/


}

//코크크리에이터 당첨작 응모
function blockMessage()
{
	alert('당첨자 갤러리 1차 응모가 종료되었습니다.\n2차 오픈은 10월 30일에 오픈될예정입니다.');
}


//해피쿠폰 타이거월드
function go_CouponTiger()
{
	window.open('http://gift.cokeplay.com/Popup/pop_mapTigerWorld.asp','','width=620, height=430, left=10, top=10');
}

//해피쿠폰 슈퍼매치
function go_CouponSuper()
{
	window.open('http://gift.cokeplay.com/Popup/pop_mapSuperMatchV.asp','','width=512, height=430, left=10, top=10');
}

//에버랜드 크리스마스
function go_everLand()
{
	window.open('http://www.cokeplay.com/Event/Popup/popEverlandPrize.aspx','','width=440, height=503, left=540, top=10');
}

//에버랜드 출력하기
function go_everLandPrint()
{
	window.open('http://www.cokeplay.com/Event/Popup/popEverland.aspx','','width=499, height=471, left=10, top=10');
}

//우주대탐험
function go_space()
{
	window.open('http://www.cokeplay.com/Event/Popup/popSpacePrint.aspx','','width=499, height=449, left=10, top=10');
}

//우주대탐험 출력하기
function go_spacePrint()
{
	window.open('http://www.cokeplay.com/Event/Popup/popSpacePrint.aspx','','width=499, height=449, left=10, top=10');
}


	//당첨자보기
	function openWinnerList2(){
//	alert('당첨자가 없습니다. 12월 18일부터 확인해주세요.');
	window.open('http://www.cokeplay.com/Event/miniBottle/popWinnerList.aspx','winner','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=485,height=460, top=10,left=10');
	}

	//홈플러스 크루즈 이벤트 가방 이미지 (081224)-이명주
	function openWinnerList3(){
	window.open('http://www.cokeplay.com/Event/Popup/WinnerList2.html','winner','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=463,height=346, top=10,left=10');
	}


//모바일 종료
function mobileEnd()
{
	if ( getCookie( "mobile" ) != "done" ) {
		window.open('http://www.cokeplay.com/pop_mobile.asp','giftpartymain','width=499, height=489, left=10, top=10');
		}
}

//미니앨범당첨자보기
function go_mimialbum_winner(){
window.open('http://www.cokeplay.com/Event/Popup/pop_minialbum_winner.asp','mini','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=499,height=440, top=10,left=10');
}


//폴라베어 팝업
function go_polarBear(obj)
{
	window.open('http://www.cokeplay.com/Polarbear/popPolarBear.aspx?polar='+obj,'','width=348, height=213, left=10, top=10');
}

//폴라베어 인쇄 팝업
function go_polarBearPrint()
{
	/*
	if(prize=="Y") {
		alert("축하합니다.\n파파존스 피자 30% 할인 쿠폰에 당첨되었습니다.");
	}
	*/
	window.open('http://www.cokeplay.com/Polarbear/popPolarBearPrint.aspx','','width=499, height=521, left=10, top=10');
}

//폴라베어당첨자보기
function go_polarbear_winner(){
window.open('http://www.cokeplay.com/Event/Popup/pop_polarbear_winner.asp','mini','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=499,height=440, top=10,left=10');
}


//메이플스토리 명찰반지 화이트 일시중지
function go_MapleRingWhite(){
	window.open('http://maple.cokeplay.com/Popup/popRingWhite.asp','ring','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=398,height=440, top=10,left=10');
}


//Event 포인트만료기간 상세보기 팝업
function EventExpirationDetail(rurl)
{

	document.location.reload();
	window.open('http://www.cokeplay.com/Event/PointEvent_P.aspx?ReturnURL='+rurl,'','scrollbars=no,resizable=no,width=530,height=458,left=0,top=0');
}

//대박이벤트 팝업
function Big_Event() {
	var w=window.screen.availWidth/2;
	var h=window.screen.availHeight/2;
	w=w-(615 /2);
	h=h-(283 /2);
//	window.open('http://www.cokeplay.com/Member/Popup/Login.aspx?url='+url,'login','scrollbars=no,resizable=no,width=398,height=380,left=10,top=10');
	window.open('http://gift.cokeplay.com/popup/Big_banner_081010.html','big_event','scrollbars=no,resizable=no,width=615,height=283 ,left='+w+',top='+h);
}

//각종이벤트 팝업
function Event_Popup(pUrl, pWidth, pHeight){
	var winl = (screen.width - pWidth) / 2;
	var wint = (screen.height - pHeight) / 2;
	winprops = 'width='+pWidth+',height='+pHeight+',top='+wint+',left='+winl+',scrollbars=no ,resizable=no' ;
	win = window.open(pUrl, 'event', winprops) ;
}

//UTC Time
now=new Date();
year=now.getYear();
month=now.getMonth();
date=now.getDate();
hour=now.getHours();
min=now.getMinutes();
sec=now.getSeconds();
mils=now.getMilliseconds();

//retValue = Date.UTC(year, month, date, hour, min, sec, mils);
retValue = Date.UTC(year, month+1, date, hour, min, sec, mils);
document.cookie='getUTC='+ retValue;
