if(getCookieValue("dcmp_channel") != "cashfoxy")
{
	document.write("\
			<link rel='Shortcut Icon' href='http://dcmp.okcashbag.com/images/ico_ok.ico' type='image/x-icon'>\
			<LINK REL='stylesheet' TYPE='text/css' HREF='http://dcmp.okcashbag.com/inc/css/cshop/main.css'>\
			<script language='javascript' src='http://dcmp.okcashbag.com/inc/js/cshopTop.js'></script>\
		");
}

title = "::: ÈûÀÌ µÇ´Â Æ÷ÀÎÆ®, OKÄ³½¬¹é :::";	//ÆäÀÌÁö Å¸ÀÌÆ²

var FLASH_URL = "http://dcmp.okcashbag.com";
var AUTH_URL = "https://doorman.okcashbag.com";
var CASHBAG_URL = "http://www.okcashbag.com";
var DCM_URL = "http://dcmp.okcashbag.com";

var AUTH_URL_T = "http://stage.okcashbag.com:6425";
var CASHBAG_URL_T = "http://ocbtest.okcashbag.com:7001";

//var CASHFOXY_URL = "http://cftest.okcashbag.com:7001";
var CASHFOXY_URL = "http://cashfoxy.okcashbag.com";

var ITEMMALL_URL = "http://itemmall.okcashbag.com";


//ÄÁÅÙÃ÷¸ô 3depth CP ¸ÞÀÎ Å¸ÀÌÆ² Ã³¸® ºÎºÐ
var lname="";
var gayong="";
var loyalpnt="";
var fstname;
var regnoyn="";
var EM="";


function isLogin()
{
	lname = getCookieValue("ec_loginname");
	gayong = getCookieValue("gayongpnt");
	loyalpnt = getCookieValue("loyalpnt");
	regnoyn = getCookieValue("regnoYN");
	EM = getCookieValue("EM");

	if ( gayong=="ERROR" ) gayong="Æ÷ÀÎÆ®¿À·ù";
	if ( gayong=="CONST" ) gayong="½Ã½ºÅÛÁ¡°Ë";
	fstname = getCookieValue("fstname");
	/*var okportal = getCookieValue("ok_login");
	if(lname!=null && lname!="" && okportal.length>10)
		return true;
	else
		return false;*/
	var okportal = getCookieValue("de_login");

	if(lname!=null && lname!="" && (okportal.length>10 && okportal.substring(0,1) == "Y"))
		return true;
	else
		return false;
}

function isLoginOk()
{
	lname = getCookieValue("ec_loginname");
	gayong = getCookieValue("gayongpnt");
	loyalpnt = getCookieValue("loyalpnt");
	regnoyn = getCookieValue("regnoYN");
	EM = getCookieValue("EM");

	if ( gayong=="ERROR" ) gayong="Æ÷ÀÎÆ®¿À·ù";
	if ( gayong=="CONST" ) gayong="½Ã½ºÅÛÁ¡°Ë";
	fstname = getCookieValue("fstname");
	/*var okportal = getCookieValue("ok_login");
	if(lname!=null && lname!="" && okportal.length>10)
		return true;
	else
		return false;*/
	var okportal = getCookieValue("de_login");

	if(lname!=null && lname!="" && (okportal.length>10 && okportal.substring(0,1) == "Y"))
		return true;
	else
		return false;
}

function getCookieValue(cname)
{
	var ck = document.cookie;
	if(ck.length > 0){
		begin = ck.indexOf(cname);
		if(begin!=-1){
			begin += cname.length + 1;
			end = ck.indexOf(";", begin);
			if(end == -1) end = ck.length;
			ckval = ck.substring(begin,end);
			if(begin != end){
				return ckval;			//cval -> ckval
			}
			else return "";
		}
		else return "";
	}
	else return;
}


function autoBlur(){  //ÀÌ¹ÌÁö Á¡¼± ¾Èº¸¿©¿ä 
 try{ 
  if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") event.srcElement.blur(); 
 }catch(e) {} 
}

document.onfocusin=autoBlur;


function mTop(ch){	// ch : 1depthº¯¼ö(Ã¤³Îº¯¼ö)
document.write("\
<div style='position:absolute;left:0;top:0;'>\
	<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='182' height='292'>\
	  <param name='movie' value='"+FLASH_URL+"/fla/top"+ch+".swf'>\
	  <param name=quality value=high>\
	  <param name='wmode' value='transparent'>\
	  <embed src='"+FLASH_URL+"/fla/top"+ch+".swf' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='182' height='292'></embed>\
	</object>\
</div>\
<div style='position:absolute;left:182;top:0;'>\
	<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='809' height='157'>\
	  <param name='movie' value='"+FLASH_URL+"/fla/mnav"+ch+".swf'>\
	  <param name=quality value=high>\
	  <param name='wmode' value='transparent'>\
	  <embed src='"+FLASH_URL+"/fla/mnav"+ch+".swf' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='809' height='157'></embed>\
	</object>\
</div>\
	");
}



function mTop2(){	// Àå¹Ù±¸´Ï ¸Ó¸´ºÎºÐ
document.write("\
<div style='background:url(" + CASHBAG_URL + "/mall/img/img_top.gif) no-repeat top left;width:950;height:26'>\
<table width='950' cellpadding='0' cellspacing='0' border='0'>\
<tr style='padding-top:5'>\
	<td width='547' class='8' align='right'><font class='orange b'>cashbag</font>´Ô ·Î±×ÀÎ ÇÏ¼Ì½À´Ï´Ù</td>\
	<td width='403' style='padding-left:10'><a href='#'><img src='"+FLASH_URL+"/mall/img/btn_points.gif'></a><a href='#'><img src='"+FLASH_URL+"/mall/img/btn_logout.gif' style='margin-left:5'></a><a href='#'><img src='"+FLASH_URL+"/mall/img/btn_login.gif' style='margin-left:5'></a><a href='"+FLASH_URL+"/info/infoFaq.jsp'><img src='"+FLASH_URL+"/mall/img/btn_cscenter.gif' style='margin-left:5'></a><a href='#'><img src='"+FLASH_URL+"/mall/img/btn_sitemap.gif'></a><a href='"+FLASH_URL+"/info/index.jsp'><img src='"+FLASH_URL+"/mall/img/btn_helpdesk.gif'></a>\
	</td>\
</tr>\
</table>\
</div>\
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='950' height='59'>\
  <param name='movie' value='"+FLASH_URL+"/fla/mall.swf'>\
  <param name=quality value=high>\
  <param name='wmode' value='transparent'>\
  <embed src='"+FLASH_URL+"/fla/mall.swf' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='950' height='59'></embed>\
</object>\
	");
}

function isDcmp(url)
{
	var isDcmp = false;
	if(url.lastIndexOf("www.okcashbag.com") >= 0) {
		isDcmp = true;
	}

	return isDcmp;
}

// ÄÜÅÙÃ÷¸ô
function mTop3()
{
	//Ä³½¬Æø½Ã Ã¤³ÎÀÏ °æ¿ì
	if(getCookieValue("dcmp_channel") == "cashfoxy" && isDcmp(this.location.href) == false)
	{
		var url = this.location.href;

		var idx = 0;

		if(url.lastIndexOf("game.okcashbag.com") >= 0) {
			document.write("\
			<iframe src='" + CASHFOXY_URL + "/jsp/co_top/top_culture_upgame.jsp' frameborder='0' width='100%' height='101' marginwidth='0' marginheight='0' scrolling='no'  style='border:0' allowTransparency='true'></iframe>\
			");
		}
		else if(url.lastIndexOf("movie.okcashbag.com") >= 0) {
			document.write("\
			<iframe src='" + CASHFOXY_URL + "/jsp/co_top/top_digital_movie.jsp' frameborder='0' width='100%' height='101' marginwidth='0' marginheight='0' scrolling='no'  style='border:0' allowTransparency='true'></iframe>\
			");
		}
		else if(url.lastIndexOf("music.okcashbag.com") >= 0) {
			document.write("\
			<iframe src='" + CASHFOXY_URL + "/jsp/co_top/top_digital_music.jsp' frameborder='0' width='100%' height='101' marginwidth='0' marginheight='0' scrolling='no'  style='border:0' allowTransparency='true'></iframe>\
			");
		}
		else if(url.lastIndexOf("romance.okcashbag.com") >= 0) {
			document.write("\
			<iframe src='" + CASHFOXY_URL + "/jsp/co_top/top_digital_book.jsp' frameborder='0' width='100%' height='101' marginwidth='0' marginheight='0' scrolling='no'  style='border:0' allowTransparency='true'></iframe>\
			");
		}
		else if(url.lastIndexOf("comic.okcashbag.com") >= 0) {
			document.write("\
			<iframe src='" + CASHFOXY_URL + "/jsp/co_top/top_digital_cartoon.jsp' frameborder='0' width='100%' height='101' marginwidth='0' marginheight='0' scrolling='no'  style='border:0' allowTransparency='true'></iframe>\
			");
		}
		else if(url.lastIndexOf("funwide.okcashbag.com") >= 0) {
			document.write("\
			<iframe src='" + CASHFOXY_URL + "/jsp/co_top/top_digital_mobile.jsp' frameborder='0' width='100%' height='101' marginwidth='0' marginheight='0' scrolling='no'  style='border:0' allowTransparency='true'></iframe>\
			");
		}
		else{
			document.write("\
			<iframe src='" + CASHFOXY_URL + "/jsp/co_top/top_digital_mobile.jsp' frameborder='0' width='100%' height='101' marginwidth='0' marginheight='0' scrolling='no'  style='border:0' allowTransparency='true'></iframe>\
			");
		}

		document.write("<br><br>");

	}
	else
	{
	
		document.write("\
			<table width='100%' height='82' border='0' cellpadding='0' cellspacing='0' >\
                        <tr>\
				<td height='62' align='center'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='971' height='62'>\
                                        <param name='movie' value='"+DCM_URL+"/fla/top_menu_081216.swf'>\
                                        <param name=quality value=high>\
										<param name='allowScriptAccess' value='always'>\
                                        <param name='wmode' value='transparent'>\
                                        <embed src='"+DCM_URL+"/fla/top_menu_081216.swf' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' allowScriptAccess='always' type='application/x-shockwave-flash' width='971' height='62'></embed>\
                                                </object>\
				</td>\
			</tr>\
			</table>\
                ");
	}
}

function foxyTypeOne()
{
	var tr1 = document.all.tags("tr")[1];
	tr1.width = "100%";
	tr1.align="center";
}

function foxyTypeTwo()
{
	var tb1 = document.all.tags("table")[1];
	tb1.align="center";

	var tb2 = document.all.tags("table")[3];
	tb2.align="center";
}

function foxyTypeThree()
{
	var tb1 = document.all.tags("table")[1];
	tb1.align="center";
}

function foxyTypeFour()
{
	var tr1 = document.all.tags("tr")[1];
	tr1.width = "100%";
	tr1.align="center";

	var td1 = document.all.tags("td")[1];
	td1.width = "";
	td1.align = "center";
}

function foxyTypeFive()
{
	var tr1 = document.all.tags("table")[0];
	tr1.width = "100%";
	tr1.align="center";

	var tr2 = document.all.tags("table")[1];
	tr2.width = "100%";
	tr2.align="center";

	//¿À¸¥ÂÊ ¿©¹é ºÎºÐ Á¦°Å
	var td1 = document.all.tags("td")[0];
	td1.width = "";
	td1 = document.all.tags("td")[1];
	td1.width = "100%";
	//td1 = document.all.tags("td")[3];
	//td1.width = "";
	//td1 = document.all.tags("td")[9];
	//td1.width = "";

	//»ó´Ü °ÔÀÓ ¸Þ´º
	var td2 = document.all.tags("td")[2];
	td2.width = "100%";
	td2.align = "center";

	//°¡¿îµ¥ ³»¿ë
	var td3 = document.all.tags("td")[8];
	td3.width = "100%";
	td3.align = "center";

}


function foxyTypeSix()
{
	var tr1 = document.all.tags("tr")[5];
	tr1.width="100%";
	tr1.align = "center";
	document.all.floater.style.display="none";
	//document.write(tr1.outerHTML);
}

//footer ½ºÅ©¸³Æ®
function mFooter()
{
	if(getCookieValue("dcmp_channel") == "cashfoxy")
	{
		var url = this.location.href;

		var idx = 0;

		if(url.lastIndexOf("game.okcashbag.com") >= 0) {
		}
		else if(url.lastIndexOf("movie.okcashbag.com") >= 0) {
			foxyTypeOne();
		}
		else if(url.lastIndexOf("music.okcashbag.com") >= 0) {
			foxyTypeSix();
		}
		else if(url.lastIndexOf("romance.okcashbag.com") >= 0) {
			foxyTypeThree();
		}
		else if(url.lastIndexOf("comic.okcashbag.com") >= 0) {
			foxyTypeFour();
		}
		else if(url.lastIndexOf("funwide.okcashbag.com") >= 0) {
			foxyTypeFour();
		}
		else{
		}

	}
	else
	{
		document.write("\
			<script language='javascript' src='http://www.okcashbag.com/inc/ex/footer.js'></script> \
		");
	}
}


function mCopy(){
document.write("\
<table cellpadding='0' border='0' cellspacing='0' width='991' height='120' style='margin-top:6'>\
<tr>\
	<td style='padding:0 10 10 0;' valign='middle' align='right'>\
	<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='991' height='120'>\
	  <param name='movie' value='"+FLASH_URL+"/fla/footer.swf'>\
	  <param name=quality value=high>\
	  <param name='wmode' value='transparent'>\
	  <embed src='"+FLASH_URL+"/fla/footer.swf' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='991' height='120'></embed>\
	</object>\
	</td>\
</tr>\
</table>\
	");
}

function mCopy2(){
document.write("\
<div style='margin-top:6'>\
<table cellpadding='0' border='0' cellspacing='0' width='991' height='120'>\
<tr>\
	<td style='padding:0 10 10 0;' valign='middle' align='right'>\
	<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='991' height='120'>\
	  <param name='movie' value='"+FLASH_URL+"/fla/ct_footer.swf'>\
	  <param name=quality value=high>\
	  <param name='wmode' value='transparent'>\
	  <embed src='"+FLASH_URL+"/fla/ct_footer.swf' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='991' height='120'></embed>\
	</object>\
	</td>\
</tr>\
</table>\
</div>\
	");
}

function mFamily(){
document.write("\
<div style='margin-top:5'>\
	<table cellpadding='0' cellspacing='0' border='0' class='8'>\
	<tr><td>\
	<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='123' height='260'>\
	  <param name='movie' value='"+FLASH_URL+"/fla/familyNavi.swf'>\
	  <param name=quality value=high>\
	  <embed src='"+FLASH_URL+"/fla/familyNavi.swf' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='123' height='207'></embed>\
	</object>\
	</td></tr>\
	<tr><td>\
	<div style='margin-top:5'>\
	<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='123' height='109'>\
	<param name='movie' value='"+CASHBAG_URL+"/fla/familyNavi_LivingService_login.swf'>\
	<param name='quality' value='high'>\
	<embed src='"+CASHBAG_URL+"/fla/familyNavi_LivingService_login.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='123' height='109'></embed>\
	</object>\
	</td></tr>\
	</div>\
	</table>\
</div>\
		");
}

function mFamily1(){
document.write("\
<div style='padding:5 0 0 0'>\
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='123' height='70'>\
<param name='movie' value='"+FLASH_URL+"/fla/familyNavi_main.swf'>\
<param name='quality' value='high'>\
<embed src='"+FLASH_URL+"/fla/familyNavi_main.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='123' height='70'></embed>\
</object>\
</div>\
		");
}

function mFamily2(){	//¸ÞÀÎ ÆÐ¹Ð¸®»çÀÌÆ®
document.write("\
<div style='padding:7 0 0 0'>\
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='123' height='109'>\
<param name='movie' value='"+FLASH_URL+"/fla/familyNavi_main2.swf'>\
<param name='quality' value='high'>\
<embed src='"+FLASH_URL+"/fla/familyNavi_main2.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='123' height='109'></embed>\
</object>\
</div>\
		");
}

/*******error Ã³¸®À§ÇÑ ½ºÅ©¸³Æ® ½ÃÀÛ ***************/
/*
window.onerror = ErrorSetting 

var e_msg="";
var e_file="";
var e_line=""; 


function ErrorSetting(msg, file_loc, line_no) {
     e_msg=msg;
     e_file=file_loc;
     e_line=line_no;
     
     alert(e_msg);
     alert(e_file);
     alert(e_line);
     return true; 
} 
*/
/*******error Ã³¸®À§ÇÑ ½ºÅ©¸³Æ® ³¡ ***************/
	var myDate = new Date();
	var onul = myDate.getTime();
function toHex( decimal )
	{
		var hex = "";
		var tmp;
		for( ; decimal > 16; ) {
			tmp = decimal % 16;
			if( tmp > 9 ) {
				switch( tmp ) {
					case 10 : tmp = "A"; break;
					case 11 : tmp = "B"; break;
					case 12 : tmp = "C"; break;
					case 13 : tmp = "D"; break;
					case 14 : tmp = "E"; break;
					case 15 : tmp = "F"; break;
				}
			}
			hex = tmp + hex;
			decimal = parseInt( decimal / 16 );
		}
		hex = decimal + hex;

		return hex;
	}
	function getReturnURL( url ) {
		var ret = "";

		for( var i = 0; i < url.length; i++ ) {
			ret = ret + toHex( url.charCodeAt( i ) );
		}
		return ret;
	}
	
	function checksubmit()
	{
		var form = document.loginform;
		if(form.loginname.value==null || form.loginname.value==""){
			alert("»ç¿ëÀÚ ¾ÆÀÌµð°¡ ÁöÁ¤µÇÁö ¾Ê¾Ò½À´Ï´Ù.");
			form.loginname.focus();
			return false;
		}
		if(form.password.value==null || form.password.value==""){
			alert("ºñ¹Ð¹øÈ£°¡ ÁöÁ¤µÇÁö ¾Ê¾Ò½À´Ï´Ù.");
			form.password.focus();
			return false;
		}

		if (gayong!="" && gayong!=null) {
			deleteCookie("gayongpnt");
		}
		if (regnoyn!="" && regnoyn!=null) {
			deleteCookie("regnoYN");
		}
		form.encYN.value="Y";
		form.loginname2.value = Base64.encode(form.loginname.value);
		form.password2.value = Base64.encode(form.password.value);
		form.loginname.value ="";
		form.password.value ="";
		form.action = "/common/loginGateway.jsp";

		form.returnurl.value = getReturnURL(this.location.href);

		return true;
	}

	function chkPoint() {
		if (gayong=="" || gayong==null || regnoyn == "" || regnoyn == null) { location.href="http://pgws.okcashbag.com/common/makepoint.jsp?todate="+onul+"&returnurl="+getReturnURL(this.location.href); return false; }
		else return true;
	}

	function regMember(){
		location.href = "https://doorman.okcashbag.com/user/auth/jsp/Inquiry.jsp";
	}

	function modiMember(){
		location.href = "https://doorman.okcashbag.com/user/auth/jsp/editUserInfo.jsp?returnurl=" + getReturnURL(this.location.href);
	}
	
	//if (isLogin() && gayong.length == 0) chkPoint();	
	if (isLogin() ) chkPoint();

//½Å±Ô ¸Þ´º Ã³¸® ÀÓ½Ã...

function dcmpTop()
{

	//Ä³½¬Æø½Ã Ã¤³ÎÀÏ °æ¿ì
	if(getCookieValue("dcmp_channel") == "cashfoxy" && isDcmp(this.location.href) == false)
	{
		var url = this.location.href;

		var idx = 0;

		if(url.lastIndexOf("movie.okcashbag.com") >= 0) {
			document.write("\
			<iframe src='" + CASHFOXY_URL + "/jsp/mall/top_digital_movie.jsp' frameborder='0' width='100%' height='101' marginwidth='0' marginheight='0' scrolling='no'  style='border:0' allowTransparency='true'></iframe>\
			");
		}
	}
	else
	{

		document.write('<div id=menu1 style="position:absolute;left:expression((document.body.clientWidth-976)/2); top:63px; width:976; height:83; z-index:10; display:block;">');
		Load_Flash(DCM_URL+ '/fla/topNavi.swf','976','83','navi','');
		document.write('</div>');
		document.write('<div id=menu2 style="position:absolute;left:expression((document.body.clientWidth-976)/2); top:63px; width:976; height:190; z-index:10; display:none;">');
		Load_Flash(DCM_URL+ '/fla/topPop.swf','976','190','abc','');
		document.write('</div>');
		document.write('<tr><td height="70"></tr>');
	}
}

function dcmpMainTop(zone)
{
	//Ä³½¬Æø½Ã Ã¤³ÎÀÏ °æ¿ì
	if(getCookieValue("dcmp_channel") == "cashfoxy" && isDcmp(this.location.href) == false)
	{
		var url = this.location.href;

		var idx = 0;

		if(url.lastIndexOf("movie.okcashbag.com") >= 0) {
			document.write("\
			<iframe src='" + CASHFOXY_URL + "/jsp/mall/top_digital_movie.jsp' frameborder='0' width='100%' height='101' marginwidth='0' marginheight='0' scrolling='no'  style='border:0' allowTransparency='true'></iframe>\
			");
		}
	}
	else
	{
		document.write('<div id=Buffering style="position:absolute;left:expression((document.body.clientWidth-971)/2); top:63px; width:971; height:89; z-index:10">');
		Load_Flash(DCM_URL+ '/fla/top_menu_'+zone+'.swf','971','89','high','');
		document.write('</div>');
		document.write('<tr><td height="57"></tr>');
	}
}


function cshopMainTop()
{
	//Ä³½¬Æø½Ã Ã¤³ÎÀÏ °æ¿ì
	if(getCookieValue("dcmp_channel") == "cashfoxy" && isDcmp(this.location.href) == false)
	{
		var url = this.location.href;

		var idx = 0;

		if(url.lastIndexOf("movie.okcashbag.com") >= 0) {
			document.write("\
			<iframe src='" + CASHFOXY_URL + "/jsp/mall/top_digital_movie.jsp' frameborder='0' width='100%' height='101' marginwidth='0' marginheight='0' scrolling='no'  style='border:0' allowTransparency='true'></iframe>\
			");
		}
	}
	else
	{
		document.write('<div id=menu1 style="position:absolute;left:expression((document.body.clientWidth-976)/2); top:63px; width:976; height:83; z-index:10; display:block;">');
		Load_Flash(DCM_URL+ '/fla/topNavi.swf','976','83','navi','');
		document.write('</div>');
		document.write('<div id=menu2 style="position:absolute;left:expression((document.body.clientWidth-976)/2); top:63px; width:976; height:190; z-index:10; display:none;">');
		Load_Flash(DCM_URL+ '/fla/topPop.swf','976','190','abc','');
		document.write('</div>');
		document.write('<tr><td height="57"></tr>');
	}
}
function popmenu(n) {
	for(var i = 1; i < 3; i++) {
		obj = document.getElementById('menu'+i);
		if ( n == i ) {
			obj.style.display = "block";
		} else {
			obj.style.display = "none";
		}
	}
}

function bluring(){ 
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
}
document.onfocusin=bluring; 

function Load_Flash(file,width,height,id,paging){
	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" width="'+width+'" height="'+height+'" id="'+id+'">'); 
	document.write('<param name="movie" value="'+file+''+paging+'" />');
	document.write('<param name="menu" value="false"/>');
	document.write('<param name="allowScriptAccess" value="always">');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="scale" value="noscale" />');
	document.write('<param name="salign" value="lt" />');
	document.write('<embed src="'+file+'"  wmode="transparent" width="'+width+'" height="'+height+'" id="'+id+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>')
}
function setSize(){
	
}
function goURL2(url){
	location.href = url;
}
function goURL(url){
	location.href = url;
	document.getElementById('menu1').style.height='83'+"px";
}
function openMenu(){
	document.getElementById('menu1').style.height='83'+"px";
}
function closeMenu(){
	document.getElementById('menu1').style.height='53'+"px";
}

function dcmpEvnFlaPoint()
{
				Load_Flash('/fla/event_point_5.swf','713','255','high','')

}

function dcmpEvnFlaGame()
{
				Load_Flash('/fla/event_game_4.swf','713','255','high','')

}

function dcmpFotter()
{
	document.write("\
		<div style='width:940;height:90'>\
		<table width='970' cellpadding='0' cellspacing='0' border='0'>\
		<tr style='padding-top:5'>\
			<td width='970' class='8' align='left'>\
				<img src='" + DCM_URL + "/test/footer.gif' align='left'>\
			</td>\
		</tr>\
		</table>\
		</div>\
			");
}

function dcmpFooter()
{
	document.write("\
		<script language='javascript' src='http://dcmp.okcashbag.com/inc/js/footer.js'></script> \
	");

}                                                                                                        

bobUrl = document.location.href;
if( bobUrl == "http://bobpul.okcashbag.com/main/index.bob" ) {
	
	if ( getCookieValue( "nateBobpul" ) != "done" ){
		var url = "http://dcmp.okcashbag.com/popup/bobpul_nategame_pop.jsp";
		window.open(url,"bobpulPop","toolbar=no,menubar=no,resizable=no,scrollbars=no,width=400,height=590");	
	}
}
	

// ÄíÅ°»èÁ¦
   function deleteCookie(cookieName){
   	 var expireDate = new Date();
     //¾îÁ¦ ³¯Â¥¸¦ ÄíÅ° ¼Ò¸ê ³¯Â¥·Î ¼³Á¤ÇÑ´Ù
     expireDate.setDate( expireDate.getDate() -1);
     document.cookie = cookieName+"= "+";domain=.okcashbag.com;expires="+expireDate.toGMTString()+";path=/";
  }

  
	function subGame()
	{

		if(menuContents.style.display=='block')
			menuContents.style.display = 'none';
		else 
			menuContents.style.display = 'block';
	}
	
	function goContents()
	{
		location.href="http://dcmp.okcashbag.com/index.jsp";
	}
	
	function subMenuContents() {

	document.write("\
	<div id='menuContents' style='position:absolute;left:expression((document.body.clientWidth-971)/2+23); top:110px; width:134; height:159; z-index:20;display:none'>\
	<table id='__01' width='134' height='159' border='0' cellpadding='0' cellspacing='0' onMouseOut='javascript: subGame()'>\
		<tr>\
			<td>\
				<table width='134' height='42' border='0' cellpadding='0' cellspacing='0' >\
					<tr>\
						<td width='74'></td>\
						<td><a href='javascript:goContents()'><img src='http://dcmp.okcashbag.com/images/space.gif' width='60' height='42' border='0'></a></td>\
					</tr>\
				</table>	\
			</td>\
		</tr>\
		<tr>\
			<td><a href='http://dcmp.okcashbag.com/index.jsp'><img src='http://dcmp.okcashbag.com/images/gamezone/poinstshop_menu_01.gif' alt='' width='134' height='36' border='0'></a></td>\
		</tr>\
		<tr>\
			<td><a href='http://dcmp.okcashbag.com/index.jsp'><img src='http://dcmp.okcashbag.com/images/gamezone/poinstshop_menu_02.gif' alt='' width='134' height='29' border='0'></a></td>\
		</tr>\
		<tr>\
			<td><a href='http://dcmp.okcashbag.com/index.jsp'><img src='http://dcmp.okcashbag.com/images/gamezone/poinstshop_menu_03.gif' alt='' width='134' height='29' border='0'></a></td>\
		</tr>\
		<tr>\
			<td><a href='http://dcmp.okcashbag.com/index.jsp'><img src='http://dcmp.okcashbag.com/images/gamezone/poinstshop_menu_04.gif' alt='' width='134' height='31' border='0'></a></td>\
		</tr>\
		<tr>\
			<td><a href='http://dcmp.okcashbag.com/index.jsp'><img src='http://dcmp.okcashbag.com/images/gamezone/poinstshop_menu_05.gif' alt='' width='134' height='34' border='0'></a></td>\
		</tr>\
	</table>\
	</div>\
	");

	}

	subMenuContents();
