// ** Pages URL ***************************
var homeURL			= "/";
var imageURL		= "http://image.cjmall.com/etv/";			// ÀÌ¹ÌÁö
var itemimageURL	= "http://image.cjmall.com/item_images/";	// »óÇ° ÀÌ¹ÌÁö
var flvURL			= "";			// µ¿¿µ»ó URL
var vodThumbURL		= "";			// µ¿¿µ»ó ½æ³×ÀÏ URL
var xmlURLA			= "/etv/xml/";	// xml URL (ÀÚµ¿¿î¿µ: JSP)

// AS-IS URL ***************************
//var xmlURLM			= "http://image.cjmall.com/etv/images/xml/";	// xml URL (¼öµ¿¿î¿µ)
//var swfURL			= "http://image.cjmall.com/etv/images/swf/";

// TO-BE URL ***************************
var xmlURLM			= "http://image.cjmall.com/swf/etv/tvshop/xml/";
var swfURL			= "http://image.cjmall.com/swf/etv/tvshop/";


// ** Flash ¿¡ º¯¼ö Àü´Þ¿ë ****************
var sFlashVars = ("&imageURL="		+ imageURL);
	sFlashVars+= ("&flvURL="		+ flvURL);
	sFlashVars+= ("&xmlURLA="		+ xmlURLA);
	sFlashVars+= ("&xmlURLM="		+ xmlURLM);
	sFlashVars+= ("&swfURL="		+ swfURL);
	sFlashVars+= ("&itemimageURL="	+ itemimageURL);
	sFlashVars+= ("&vodThumbURL="	+ vodThumbURL);
	sFlashVars+= ("&homeURL="		+ homeURL);

// JavaScript Document ****************
function eTVmakeFlashObject(swfURL,w,h,id,flashVars)
{
	flashVars += sFlashVars;
	var swfHTML	= ('<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="'+ w +'" height="'+h+'" id="'+id+'" align="middle">');
		swfHTML+= ('<param name="allowScriptAccess" value="always" />');
		swfHTML+= ('<param name="FlashVars" value="'+ flashVars +'"/>');
		swfHTML+= ('<param name="menu" value="false"/><param name="salign" value="lt"/>');
		swfHTML+= ('<param name="movie" value="'+swfURL+'" /><param name="quality" value="high" />');
		swfHTML+= ('<embed menu="false" src="'+ swfURL +'"  quality="high" salign="lt" FlashVars="'+flashVars+'" bgcolor="#ffffff" width="'+w+'" height="'+h+'" name="'+id+'" align="middle"  allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		swfHTML+= ('</object>');
	document.write(swfHTML);
}

function eTVmakeFlashObjectAlpha(swfURL,w,h,id,flashVars)
{
	flashVars += sFlashVars;
	var swfHTML = ('<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="'+ w +'" height="'+h+'" id="'+id+'" align="middle">');
		swfHTML+= ('<param name="allowScriptAccess" value="always" />');
		swfHTML+= ('<param name="FlashVars" value="'+ flashVars +'"/>');
		swfHTML+= ('<param name="menu" value="false"/><param name="salign" value="lt"/>');
		swfHTML+= ('<param name="movie" value="'+swfURL+'" /><param name="wmode" value="transparent" />');
		swfHTML+= ('<param name="movie" value="'+swfURL+'" /><param name="quality" value="high" />');
		swfHTML+= ('<embed menu="false" src="'+ swfURL +'"  wmode="transparent" quality="high" salign="lt" FlashVars="'+flashVars+'" bgcolor="#ffffff" width="'+w+'" height="'+h+'" name="'+id+'" align="middle"  allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		swfHTML+= ('</object>');
	document.write(swfHTML);
}

// Element ³ôÀÌ Á¶Àý 
/*function setSize(id, h)
{
	var obj = document.getElementById(id);
	obj.height = h;
}

function setReSize(id, w, h)
{
	var obj = document.getElementById(id);
	obj.height = h;
	obj.width = w;
}*/

// ÇÃ·¡½Ã¿Í ¶óÀÎÀÇ ³ôÀÌ¸¦ °°ÀÌ Á¶Àý  
function setLine(h)
{
	setSize('leftS',	h - 52);
	setSize('leftS2',	h - 52);
	setSize('rightS',	h - 52);
	setSize('rightSS',	h - 52);
	setSize('rightS2',	h - 52);
	setSize('fc',		h + 30);
}

// ¶óÀÎ¸¸ ³ôÀÌ Á¶Àý  
function setOnlyLine(h)
{
	setSize('leftS',	h);
	setSize('leftS2',	h);
	setSize('rightS',	h);
	setSize('rightSS',	h);
	setSize('rightS2',	h);
}

// »ý¹æ¼Û ºñÁ¯ Á¶Á¤
function moveTV(px, py, show)
{
	document.getElementById("cjMovie").style.left = px;
	document.getElementById("cjMovie").style.top = py;

	if(show)
		document.getElementById("cjMovie").style.display = "";
	else
		document.getElementById("cjMovie").style.display = "none";
}

// ºñÀü »óÇ° »ó¼¼º¸±â ·¹ÀÌ¾î Á¦¾î 
function goItemDtl(parmCode , xpos, ypos)
{
	goItemPos(xpos, ypos);
	document.getElementById("detail").src = "/etv/xml/vision_good_detail.jsp?" + parmCode ;
}

// »óÇ°»ó¼¼·Î ¸µÅ© 
function goDetail(pgm_cd, item_cd, item_seq, bd_dt, bd_str_dtm)
{
	window.open("/prd/detail_cate.jsp?item_cd="+item_cd+"&pgm_cd="+pgm_cd+"&item_seq="+item_seq+"&bd_dt="+bd_dt+"&bd_str_dtm="+bd_str_dtm);
}

//»óÇ°»ó¼¼·Î ¸µÅ© (ÇÁ¸®¹Ì¾ö ¼î·ý¿ë)
function goItemDetail(item_cd)
{
	window.open("/prd/detail_cate.jsp?shop_id=2005111755&item_cd="+item_cd);
}

// »óÇ°»ó¼¼·Î ¸µÅ© (shop_id Ãß°¡)
function viewItemDtl(pgm_cd, item_cd, item_seq, bd_dt, bd_str_dtm, shop_id)
{
//	window.open("/prd/detail_cate.jsp?item_cd="+item_cd+"&pgm_cd="+pgm_cd+"&item_seq="+item_seq+"&bd_dt="+bd_dt+"&bd_str_dtm="+bd_str_dtm+"&shop_id="+shop_id);
	document.location.href = "/prd/detail_cate.jsp?item_cd="+item_cd+"&pgm_cd="+pgm_cd+"&item_seq="+item_seq+"&bd_dt="+bd_dt+"&bd_str_dtm="+bd_str_dtm+"&shop_id="+shop_id;
}

function goItemPos(xpos, ypos)
{
	document.getElementById("item").style.display	= "";
	document.getElementById("item").style.top		= ypos;		// °íÁ¤
	document.getElementById("item").style.left		= xpos + 30;
}

// Flash ¿¬µ¿ : À§Ä¡¸¦ ¹Ù²Û´Ù.
function flash_posLayer(id, xpos, ypos)
{
	document.getElementById(id).style.display	= "";
	document.getElementById(id).style.left		= xpos;
	document.getElementById(id).style.top		= ypos;
}

// Flash ·¹ÀÌ¾î¸¦ °¨Ãá´Ù.
function flash_hideLayer(id)
{
	document.getElementById(id).style.display = "none";
}

// Flash ·¹ÀÌ¾î¸¦ º¸¿©ÁØ´Ù.
function flash_showLayer(id)
{
	document.getElementById(id).style.display = "";
}

// Vision Play(ºñÀü Àç»ý)
function vision_play()
{
	document.viewer2.SeeLive2.Start();
}

// Vision Stop(ºñÀü ÁßÁö) 
function vision_stop()
{
	document.viewer2.SeeLive2.Stop();
}

// Vision Mute(ºñÀü À½¼Ò°Å) 
function vision_mute()
{
	document.viewer2.SeeLive2.ToggleMute();
}

// Vision Volume Up(ºñÀü ¼Ò¸®È®´ë) 
function vision_up()
{
	var vol = document.viewer2.SeeLive2.GetVolume();
	document.viewer2.SeeLive2.SetVolume(vol+12);
}

// Vision Volume Down(ºñÀü ¼Ò¸®Ãà¼Ò) 
function vision_down()
{
	var vol = document.viewer2.SeeLive2.GetVolume();
	document.viewer2.SeeLive2.SetVolume(vol-12);
}

// Vision FullScreen(ºñÀü ÀüÁ¦È­¸é) 
function vision_full(){
	document.viewer2.SeeLive2.ToggleFullScreen();
}

// Vision Volume Down(ºñÀü È­¸éÁ¶Á¤) 
function vision_change(w, h)
{
	document.viewer2.SeeLive2.width = w;
	document.viewer2.SeeLive2.height = h;
	document.getElementById('viewer2').width = w;
	document.getElementById('viewer2').height = h;
}

// eTV »ý¹æ¼Û (http://www.cjmall.com/etv/broad.jsp)
// ÁÖÀÇ : html °ú jsp ÀÇ µµ¸ÞÀÎÀº ÀÏÄ¡ÇÏ¿©¾ß ÇÑ´Ù. (image.cjmall.com À¸·Î »ç¿ëÇÏ¸é »ç¿ë±ÇÇÑ ¹®Á¦ ¹ß»ý)
function goSeeLiveUrl()
{
	viewer2.document.URL = "http://www.cjmall.com/etv/on_air.html";
}

// eTV »ý¹æ¼Û : eTV ¸ÞÀÎ (http://www.cjmall.com/etv/index.jsp)
// ÁÖÀÇ : html °ú jsp ÀÇ µµ¸ÞÀÎÀº ÀÏÄ¡ÇÏ¿©¾ß ÇÑ´Ù. (image.cjmall.com À¸·Î »ç¿ëÇÏ¸é »ç¿ë±ÇÇÑ ¹®Á¦ ¹ß»ý)
function goSeeLiveMainUrl()
{
	etv_main_viewer.document.URL = "http://www.cjmall.com/etv/on_air_main.html";
}

function goSeeLiveMainUrl2()
{
	viewer.SeeLive2.Start();
}

//*********** webzine ****************
function webzine_copyURL()
{
	window.clipboardData.setData("Text", document.location.href);
	alert("URLÀÌ º¹»çµÇ¾ú½À´Ï´Ù.\n\n¿øÇÏ½Ã´Â °÷¿¡¼­ ºÙÇô³Ö±â¸¦ ÇÏ¿© ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.    ");
}

function webzine_copyVOD(vodUrl)
{
	var swfHTML = "";
		swfHTML+=('<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="342" height="339" id="vod" align="middle">');
		swfHTML+=('<param name="allowScriptAccess" value="always" />');
		swfHTML+=('<param name="FlashVars" value=""/>');
		swfHTML+=('<param name="menu" value="false"/><param name="salign" value="lt"/>');
		swfHTML+=('<param name="movie" value="'+vodUrl+'" /><param name="wmode" value="transparent" />');
		swfHTML+=('<param name="movie" value="'+vodUrl+'" /><param name="quality" value="high" />');
		swfHTML+=('<embed menu="false" src="'+ vodUrl +'"  wmode="transparent" quality="high" salign="lt" FlashVars="" bgcolor="#ffffff" width="342" height="339" name="vod" align="middle"  allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		swfHTML+=('</object>');

	window.clipboardData.setData("Text", swfHTML);
	alert("µ¿¿µ»óÀÌ º¹»çµÇ¾ú½À´Ï´Ù.\n\n¿øÇÏ½Ã´Â °÷¿¡¼­ ºÙÇô³Ö±â¸¦ ÇÏ¿© ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.    ");
}

function copyVOD(vodUrl){
	
	var swfHTML = "";
		swfHTML+=('<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="342" height="339" id="vod" align="middle">');
		swfHTML+=('<param name="allowScriptAccess" value="always" />');
		swfHTML+=('<param name="FlashVars" value=""/>');
		swfHTML+=('<param name="menu" value="false"/><param name="salign" value="lt"/>');
		swfHTML+=('<param name="movie" value="'+vodUrl+'" /><param name="wmode" value="transparent" />');
		swfHTML+=('<param name="movie" value="'+vodUrl+'" /><param name="quality" value="high" />');
		swfHTML+=('<embed menu="false" src="'+ vodUrl +'"  wmode="transparent" quality="high" salign="lt" FlashVars="" bgcolor="#ffffff" width="342" height="339" name="vod" align="middle"  allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		swfHTML+=('</object>');

	window.clipboardData.setData("Text", swfHTML);
	alert("µ¿¿µ»óÀÌ º¹»çµÇ¾ú½À´Ï´Ù.\n\n¿øÇÏ½Ã´Â °÷¿¡¼­ ºÙÇô³Ö±â¸¦ ÇÏ¿© ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.    ");
}

// ·Î±×ÀÎ Ã³¸®
function callLoginCommon(params)
{
	parent.openLogin(getCookie("URI_REFERER")+"?param="+params);
}

// °øÁö»çÇ×(News) ÆË¾÷ : ¸®½ºÆ® ¶Ç´Â »ó¼¼ÆäÀÌÁö °æ·Î¸¦ º¸³½´Ù.
function openNewsPop(url)
{
	var width	= 468;
	var height	= 480;

	if (ie7Check())
	{
//		width	+= 4;
//		height	+= 24;
		width	+= 0;
		height	+= 0;
	}

	window.open(url,'','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width='+width+',height='+height+',left=150,top=150')
}

// openPrvMagazine
function openPrvMagazine(url)
{
	var width	= 800;
	var height	= 550;

	if (ie7Check())
	{
		width	+= 4;
		height	+= 24;
	}

	window.open(url,'','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width='+width+',height='+height+',left=0,top=0')
}

// ±¸µ¶½ÅÃ»ÇÏ±â
function openEmailPop(cust_no)
{
	var width	= 671;
	var height	= 620;

	if (ie7Check())
	{
		width	+= 4;
		height	+= 24;
	}

	if(cust_no == "null" || cust_no == "")
	{
		parent.openLogin( '/etv/webzine/pop_email_apply.jsp','','3',width,height,'no');
		return;
	}

	window.open('/etv/webzine/pop_email_apply.jsp','','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width=655,height=573,left=0,top=0')
}

// »óÇ° ÀÌ¹ÌÁö ÅÂ±× ÀÚµ¿ »ý¼º
function makeItemImg(item_cd, type)
{
	var index		= item_cd.length;
	var subdir		= item_cd.substring(index-2 , index);
	var img_temp	= "<img src='http://image.cjmall.com/item_images/";
	var width		= 0;	// °¡·ÎÅ©±â
	var height		= 0;	// ¼¼·ÎÅ©±â

	// °¡·Î ¹× ¼¼·Î Å©±â ¼ÂÆÃ
	if (type == "A")
	{
		width	= 88;
		height	= 88; 
	}
	else if (type == "S")
	{
		width	= 50;
		height	= 50;
	}
	else if (type == "M")
	{
		width	= 280;
		height	= 280;
	}
	else if (type == "J")
	{
		width	= 160;
		height	= 160;
	}
	else if (type == "V")
	{
		width	= 100;
		height	= 100;
	}
	else
	{
		width	= 200;
		height	= 200;
	}

	return document.write(""+img_temp+subdir+"/"+item_cd+""+type.toUpperCase()+".jpg' width='"+width+"' height='"+height+"' align='absmiddle'>");
}

// µ¿¿µ»ó Á¤º¸ ÀÚµ¿ »ý¼º
function makeFlashMov(fl_id, type)
{
	var index		= fl_id.length;
	var subdir		= fl_id.substring(index-2 , index);
	var item_cd		= "00000000";
	var mov_temp	= "<script language='JavaScript'>swfView4('";
	var mov_url		= "rtmp://cjmall.nfs.nefficient.co.kr/cjmall_nfs/cj_vod"; // µ¿¿µ»óÆÄÀÏ(°æ·ÎÆ÷ÇÔ)
	var img_url		= "http://image.cjmall.com/cjupload/vod_images/cj_vod"; //Á¤ÁöÄÆÀÌ¹ÌÁö(°æ·ÎÆ÷ÇÔ)
	var full_url	= "";	// ÀÌ¹ÌÁö/µ¿¿µ»ó °ü·ÃÁ¤º¸
	var mov_size	= "";	// µ¿¿µ»ó Å©±â
	var img_size	= "";	// Á¤ÁöÄÆ Å©±â
	var width		= 0;	// °¡·ÎÅ©±â
	var height		= 0;	// ¼¼·ÎÅ©±â

	// µ¿¿µ»ó ¹× Á¤ÁöÄÆ ÀÌ¹ÌÁö Å©±â ¼ÂÆÃ
	if (type == "A")
	{
		mov_size	= "FSS";
		img_size	= "SF";
		width		= 88;
		height		= 88; 
	}
	else if (type == "S")
	{
		mov_size	= "FSS";
		img_size	= "SF";
		width		= 50;
		height		= 50;
	}
	else if (type == "M")
	{
		mov_size	= "FM";
		img_size	= "SA";
		width		= 280;
		height		= 280;
	}
	else if (type == "J")
	{
		mov_size	= "FS";
		img_size	= "SC";
		width		= 160;
		height		= 160;
	}
	else if (type == "V")
	{
		mov_size	= "FSS";
		img_size	= "SE";
		width		= 100;
		height		= 100;
	}
	else
	{
		mov_size	= "FM";
		img_size	= "SB";
		width		= 200;
		height		= 200;
	}

	// http://image.cjmall.com/common/images/vod_ ==> http://image.cjmall.com/swf/prd/vod_ ·Î º¯°æ
	full_url = subdir+"/"+fl_id+mov_size+".flv"+"&img_id="+img_url+"/"+subdir+"/"+fl_id+img_size+".jpg";
	full_url = "'item_cd="+item_cd+"&fl_id="+fl_id+"&file_id="+mov_url+"/"+full_url+"','vod_"+type+"')</script>";
	full_url = mov_temp+(width+2)+"','"+(height+2)+"','http://image.cjmall.com/swf/prd/vod_"+type+".swf',"+full_url;

	return document.write(full_url);
}

// µ¿¿µ»ó Á¤º¸ ÀÚµ¿ »ý¼º(¹æ¼Û)
function makeFlashBroad(fl_id, bd_dt, type)
{
	var index		= fl_id.length;
	var subdir		= fl_id.substring(index-2 , index);
	var item_cd		= "00000000";
	var mov_temp	= "<script language='JavaScript'>swfView4('";
	var mov_url		= "rtmp://cjmall.nfs.nefficient.co.kr/cjmall_nfs/cj_broad"; // µ¿¿µ»óÆÄÀÏ(°æ·ÎÆ÷ÇÔ)
	var img_url		= "http://image.cjmall.com/cjupload/vod_images/cj_broad"; //Á¤ÁöÄÆÀÌ¹ÌÁö(°æ·ÎÆ÷ÇÔ)
	var full_url	= "";	// ÀÌ¹ÌÁö/µ¿¿µ»ó °ü·ÃÁ¤º¸
	var mov_size	= "";	// µ¿¿µ»ó Å©±â
	var img_size	= "";	// Á¤ÁöÄÆ Å©±â
	var width		= 0;	// °¡·ÎÅ©±â
	var height		= 0;	// ¼¼·ÎÅ©±â

	// µ¿¿µ»ó ¹× Á¤ÁöÄÆ ÀÌ¹ÌÁö Å©±â ¼ÂÆÃ
	if (type == "A")
	{
		mov_size	= "FSS";
		img_size	= "SF";
		width		= 88;
		height		= 88; 
	}
	else if (type == "S")
	{
		mov_size	= "FSS";
		img_size	= "SF";
		width		= 50;
		height		= 50;
	}
	else if (type == "M")
	{
		mov_size	= "FM";
		img_size	= "SA";
		width		= 280;
		height		= 280;
	}
	else if (type == "J")
	{
		mov_size	= "FS";
		img_size	= "SC";
		width		= 160;
		height		= 160;
	}
	else if (type == "V")
	{
		mov_size	= "FSS";
		img_size	= "SE";
		width		= 100;
		height		= 100;
	}
	else
	{
		mov_size	= "FM";
		img_size	= "SB";
		width		= 200;
		height		= 200;
	}

	full_url = subdir+"/"+fl_id+mov_size+".flv"+"&img_id=" + img_url + "/"+subdir+"/"+fl_id+img_size+".jpg";
	full_url = "'item_cd="+item_cd+"&fl_id="+fl_id+"&file_id="+mov_url+"/"+full_url+"','vod_"+type+"')</script>";
	full_url = mov_temp+(width+2)+"','"+(height+2)+"','http://image.cjmall.com/swf/prd/vod_"+type+".swf',"+full_url;

	return document.write(full_url);
}


// µ¿¿µ»ó Á¤º¸ ÀÚµ¿ »ý¼º
function makeFlashMovPcc(fl_id, type)
{
	var index		= fl_id.length;
	var subdir		= fl_id.substring(index-2 , index);
	var item_cd		= "00000000";
	var mov_temp	= "<script language='JavaScript'>swfView4('";
	var mov_url		= "rtmp://cjmall.nfs.nefficient.co.kr/cjmall_nfs/cj_pcc"; // µ¿¿µ»óÆÄÀÏ(°æ·ÎÆ÷ÇÔ)
	var img_url		= "http://image.cjmall.com/cjupload/vod_images/cj_pcc"; //Á¤ÁöÄÆÀÌ¹ÌÁö(°æ·ÎÆ÷ÇÔ)
	var full_url	= "";	// ÀÌ¹ÌÁö/µ¿¿µ»ó °ü·ÃÁ¤º¸
	var mov_size	= "";	// µ¿¿µ»ó Å©±â
	var img_size	= "";	// Á¤ÁöÄÆ Å©±â
	var width		= 0;	// °¡·ÎÅ©±â
	var height		= 0;	// ¼¼·ÎÅ©±â

	// µ¿¿µ»ó ¹× Á¤ÁöÄÆ ÀÌ¹ÌÁö Å©±â ¼ÂÆÃ
	if (type == "A")
	{
		mov_size	= "FSS";
		img_size	= "SF";
		width		= 88;
		height		= 88; 
	}
	else if (type == "S")
	{
		mov_size	= "FSS";
		img_size	= "SF";
		width		= 50;
		height		= 50;
	}
	else if (type == "M")
	{
		mov_size	= "FM";
		img_size	= "SA";
		width		= 280;
		height		= 280;
	}
	else if (type == "J")
	{
		mov_size	= "FS";
		img_size	= "SC";
		width		= 160;
		height		= 160;
	}
	else if (type == "V")
	{
		mov_size	= "FSS";
		img_size	= "SE";
		width		= 100;
		height		= 100;
	}
	else
	{
		mov_size	= "FM";
		img_size	= "SB";
		width		= 200;
		height		= 200;
	}

	// http://image.cjmall.com/common/images/vod_ ==> http://image.cjmall.com/swf/prd/vod_ ·Î º¯°æ
	full_url = subdir+"/"+fl_id+mov_size+".flv"+"&img_id="+img_url+"/"+subdir+"/"+fl_id+img_size+".jpg";
	full_url = "'item_cd="+item_cd+"&fl_id="+fl_id+"&file_id="+mov_url+"/"+full_url+"','vod_"+type+"')</script>";
	full_url = mov_temp+(width+2)+"','"+(height+2)+"','http://image.cjmall.com/swf/prd/vod_"+type+".swf',"+full_url;

	return document.write(full_url);
}


// µ¿¿µ»ó Á¤º¸ ÀÚµ¿ »ý¼º
function makeFlashMovMcc(fl_id, type)
{
	var index		= fl_id.length;
	var subdir		= fl_id.substring(index-2 , index);
	var item_cd		= "00000000";
	var mov_temp	= "<script language='JavaScript'>swfView4('";
	var mov_url		= "rtmp://cjmall.nfs.nefficient.co.kr/cjmall_nfs/cj_mcc"; // µ¿¿µ»óÆÄÀÏ(°æ·ÎÆ÷ÇÔ)
	var img_url		= "http://image.cjmall.com/cjupload/vod_images/cj_mcc"; //Á¤ÁöÄÆÀÌ¹ÌÁö(°æ·ÎÆ÷ÇÔ)
	var full_url	= "";	// ÀÌ¹ÌÁö/µ¿¿µ»ó °ü·ÃÁ¤º¸
	var mov_size	= "";	// µ¿¿µ»ó Å©±â
	var img_size	= "";	// Á¤ÁöÄÆ Å©±â
	var width		= 0;	// °¡·ÎÅ©±â
	var height		= 0;	// ¼¼·ÎÅ©±â

	// µ¿¿µ»ó ¹× Á¤ÁöÄÆ ÀÌ¹ÌÁö Å©±â ¼ÂÆÃ
	if (type == "A")
	{
		mov_size	= "FSS";
		img_size	= "SF";
		width		= 88;
		height		= 88; 
	}
	else if (type == "S")
	{
		mov_size	= "FSS";
		img_size	= "SF";
		width		= 50;
		height		= 50;
	}
	else if (type == "M")
	{
		mov_size	= "FM";
		img_size	= "SA";
		width		= 280;
		height		= 280;
	}
	else if (type == "J")
	{
		mov_size	= "FS";
		img_size	= "SC";
		width		= 160;
		height		= 160;
	}
	else if (type == "V")
	{
		mov_size	= "FSS";
		img_size	= "SE";
		width		= 100;
		height		= 100;
	}
	else
	{
		mov_size	= "FM";
		img_size	= "SB";
		width		= 200;
		height		= 200;
	}

	// http://image.cjmall.com/common/images/vod_ ==> http://image.cjmall.com/swf/prd/vod_ ·Î º¯°æ
	full_url = subdir+"/"+fl_id+mov_size+".flv"+"&img_id="+img_url+"/"+subdir+"/"+fl_id+img_size+".jpg";
	full_url = "'item_cd="+item_cd+"&fl_id="+fl_id+"&file_id="+mov_url+"/"+full_url+"','vod_"+type+"')</script>";
	full_url = mov_temp+(width+2)+"','"+(height+2)+"','http://image.cjmall.com/swf/prd/vod_"+type+".swf',"+full_url;

	return document.write(full_url);
}


// Flash¿¡¼­ ÀÎ±â°Ë»ö¾î(Å°¿öµå¼îÇÎ) Å¬¸¯½Ã »ç¿ë
function Search_keyword(word) 
{
	document.location.href	= "/prd/front/search/search_main.jsp?srch_value="+word;
}

//ÇÃ·¡½Ã ³»ºÎ¿¡ µ¥ÀÌÅ¸ Àü´Þ : 0924 eung add
function flash_sendVar()
{
	thisMovie('fc').fc_setVar(thisMovie('fc').height, document.body.scrollTop);
}

// Æí¼ºÇ¥ Ã¢ ¶ç¿ì±â 
function openSecduleWin(url)
{
	var width	= 670;
	var height	= 700;

	window.open(url,'secdule','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width='+width+',height='+height+',left=150,top=150')
}

//¿ÀºêÁ§Æ® ¼±ÅÃ ÇÔ¼ö 
function thisMovie(movieName)
{
	if (navigator.appName.indexOf("Microsoft") != -1)
		return window[movieName];
	else
		return document[movieName];
}
