 function loc_url(loc) {
	window.location.href=loc
 }

 function LoadFlashMV(td_name,idname, moviesrc, bgcolor, swliveconnect, width, height, allowScriptAccess, wmode) {
    var html_text

	html_text = '<OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '
	html_text = html_text + 'codebase="http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" '
	html_text = html_text + 'WIDTH="' + width + '" HEIGHT="' + height + '" id="' + idname + '"  name="' + idname 
	html_text = html_text + '" ALIGN="">'
	html_text = html_text + '<PARAM NAME=movie VALUE="' + moviesrc + '"><PARAM NAME=allowScriptAccess value="always">'
	html_text = html_text + '<PARAM NAME=menu VALUE=false><PARAM NAME=quality VALUE=high>'
	if (wmode != "") {
	    html_text = html_text + '<PARAM NAME=wmode VALUE=transparent>'
	}
	html_text = html_text + '<PARAM NAME=bgcolor VALUE=' + bgcolor + '>'
	html_text = html_text + '<PARAM NAME=swliveconnect VALUE=' + swliveconnect + '>'
	html_text = html_text + '<EMBED src="' + moviesrc + '" wmode=transparent menu=false quality=high bgcolor="' + bgcolor 
	html_text = html_text + '" WIDTH="' + width + '" HEIGHT="' + height + '" NAME="' + idname 
	html_text = html_text + '" ALIGN="" allowScriptAccess="always" TYPE="application/x-shockwave-flash" ' 
	html_text = html_text + 'PLUGINSPAGE="http://www.adobe.com/go/getflashplayer"></EMBED></OBJECT>'

    document.all[td_name].innerHTML = html_text
 }

 function LoadFLV(mv_path,width,height,bgcolor,flashVar) {
	html = '';
	html += '<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+'">';
	html += '<param name="movie" value="'+mv_path+'">';
	html += '<param name="quality" value="high">';
	html += '<param name="allowFullScreen" value="true">';	
	html += '<param name="allowScriptAccess" value="always">';
	html += '<param name="FlashVars" value="'+flashVar+'">';
	html += '<param name="wmode" value="">';
	html += '<param name="bgcolor" value="'+bgcolor+'">';
	html += '<embed src="'+mv_path+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" name="flashvars" allowScriptAccess="always" allowFullScreen="true"></embed>';
	html += '</object>';
	document.write(html);
 }

 function LoadMV(td_name, idname, moviesrc, width, height, ShowControls) {
    var html_text

	html_text = '<OBJECT classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" '
	html_text = html_text + 'WIDTH="' + width + '" HEIGHT="' + height + '" id="' + idname + '">'
	html_text = html_text + '<PARAM NAME=filename VALUE="' + moviesrc + '">'
	html_text = html_text + '<PARAM NAME=ShowControls VALUE=' + ShowControls + '></object>'
 }

 function OuterJS_FlashEmbed(idname, moviesrc, bgcolor, swliveconnect, width, height, allowScriptAccess, wmode) {
	document.write('<OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" WIDTH="' + width + '" HEIGHT="' + height + '" id="' + idname + '"  name="' + idname + '" ALIGN="">  ') ;
	document.write('<PARAM NAME=movie VALUE="' + moviesrc + '">  ') ;
	document.write('<PARAM NAME=allowScriptAccess value="always">  ') ;
	document.write('<PARAM NAME=menu VALUE=false> ') ; 
	document.write('<PARAM NAME=quality VALUE=high>  ') ;
	if (wmode != "")
	{
		document.write('<PARAM NAME=wmode VALUE=transparent>  ') ;
	}
	document.write('<PARAM NAME=bgcolor VALUE=' + bgcolor + '> ') ;
	document.write('<PARAM NAME=swliveconnect VALUE=' + swliveconnect + '> ') ;
	document.write('<EMBED src="' + moviesrc + '" menu=false quality=high bgcolor="' + bgcolor + '" WIDTH="' + width + '" HEIGHT="' + height + '" NAME="' + idname + '" ALIGN=""  WMODE="transparent" allowScriptAccess="always" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.adobe.com/go/getflashplayer"></EMBED> ') ;
	document.write('</OBJECT> ') ;
 }

 function OuterJS_MovieEmbed(idname, moviesrc, width, height, ShowControls) {
	document.write('<OBJECT classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" WIDTH="' + width + '" HEIGHT="' + height + '" id="' + idname + '">  ') ;
	document.write('<PARAM NAME=filename VALUE="' + moviesrc + '">  ') ;
	document.write('<PARAM NAME=ShowControls VALUE=' + ShowControls + '> ') ; 
	document.write('</OBJECT> ') ;
 }

 function LogOut() {
    var get_url 

	get_url = "/member/ajax/member_manage.asp?f_name=LogOut"
	GetAjaxInfoA(true,get_url,"LogOut_result")
 }

 function LogOut_result(msg) {
    var arrValue

	arrValue = msg.split("[sp]")
	if(parseInt(arrValue[0]) <= 0) {
	   alert(arrValue[1])
	   return
	}

	location.href = "/contents/list/cts_detail_list.asp"
 }

 function ebook_open(sLink) {
    window.open(sLink, "ebook_event", "width=1024, height=768, channelmode=no, resizable=yes, fullscreen=yes, status=yes"); 
 }

 function Event1() {
    ebook_open("http://tv.allurekorea.com/ebook/ebrochure/perfume/viewer.asp");
 }
 function openexp() {
	document.getElementById('menuz').style.zIndex = '111';
 }
 function closeexp() {
	document.getElementById('menuz').style.zIndex = '100';
 }
