var webDomainSSL="https://www.melon.com";
var webDomain="http://www.melon.com";
document.write("<script language='jav"+"ascript' src='"+webDomain+"/js/search_bar.js'></script>");
document.write("<script language='jav"+"ascript' src='"+webDomain+"/js/left_banner.js'></script>");
//document.write("<script language='jav"+"ascript' src='"+webDomain+"/utility/searchm/js/autocom_search.js'></script>");
//document.write("<script language='jav"+"ascript' src='"+webDomain+"/utility/searchm/js/function.js'></script>");
document.write("<script language='jav"+"ascript' src='"+webDomain+"/gnb1/showcase/js/sky_showcase.js'></script>");
document.write("<script language='jav"+"ascript' src='"+webDomain+"/js/sky_banner_01.js'></script>");
document.write("<script language='jav"+"ascript' src='"+webDomain+"/js/sky_banner_02.js'></script>");

//document.write("<script language='jav"+"ascript' src='"+webDomainSSL+"/js/search_bar.js'></script>");
//document.write("<script language='jav"+"ascript' src='"+webDomainSSL+"/js/left_banner.js'></script>");
//document.write("<script language='jav"+"ascript' src='"+webDomainSSL+"/utility/searchm/js/autocom_search.js'></script>");
//document.write("<script language='jav"+"ascript' src='"+webDomainSSL+"/utility/searchm/js/function.js'></script>");
//document.write("<script language='jav"+"ascript' src='"+webDomainSSL+"/gnb1/showcase/js/sky_showcase.js'></script>");

function writeBanner(img_server_name,web_domain_name)
{
	document.write("<script>makeLeftBanner('mp3playershop')</script>");
}	



// ÀÌ¹ÌÁö¿Í ÆäÀÌÁö ÁöÁ¤ºÎºÐ
// ['ÀÌµ¿µÇ´Â ÆäÀÌÁö', 'ÀÌ¹ÌÁö °æ·Î']
// ÁÖÀÇ»çÇ× : ,¸¦ Ç×»ó ºÙÀÌµÇ ³¡¿¡´Â ÀÖÀ¸¸é ¾ÈµÊ ±×·¯´Ï ÀÌ·¸°Ô µÇ´Â°Í -> [],[],[]
var mfBannersCh = [
['http://www.sktworld.com/outsite.jsp?ret_url=/board/event_view01.jsp%3Fuser_url%3D/event/openevent/event_index.jsp%26frmsize%3D1380%26currentPage%3D1&xtr_cate=LK&xtr_ref=melon.com&xtr_kw=-¸á·Ð grandopen 0701','http://image.melon.co.kr/images/main/a1/main/melon.gif'],
['http://www.1mm.com/onemm/basic/_basic_agent_action.jsp?act=info&type=melon', 'http://image.melon.co.kr/images/main/a1/main/1mmmelon.gif']
];
var mfleCh = false;
if( document.all) {
	mfleCh = true;
}
var mfBannerIndexCh = 0;
var checkCh=0;

//mfBannerChange();
// ÀÌ¹ÌÁö°¡ ¹Ù²î´Â ½Ã°£ - 1000 = 1ÃÊ
//setInterval("mfBannerChange()", 900);

function mfBannerChange() {
	// ÀÌ¹ÌÁö ÅÂ±×ºÎºÐ
	// mfBannersCh[mfBannerIndexCh][0] : ÀÌµ¿µÇ´Â ÆäÀÌÁö
	// mfBannersCh[mfBannerIndexCh][1] : ÀÌ¹ÌÁö °æ·Î
	var htmlString = '';
	
	if (mfBannerIndexCh==0) {
		htmlString = '<a href="'+mfBannersCh[mfBannerIndexCh][0]+'" target="_blank"><img src="'+mfBannersCh[mfBannerIndexCh][1]+'" width="76" height="69" border="0"></a>';
	} else {
		htmlString = '<a href="'+mfBannersCh[mfBannerIndexCh][0]+'" ><img src="'+mfBannersCh[mfBannerIndexCh][1]+'" width="76" height="69" border="0"></a>';
	}		
	if (checkCh<5) { 
			checkCh++; 
	}
	if (checkCh >= 5) {

		if( mfleCh) {
			document.all.banner.innerHTML = htmlString;
		}else {
			document.layers["banner"].document.open();
			document.layers["banner"].document.write(htmlString);
			document.layers["banner"].document.close();
		}
	//	alert(mfBannerIndexCh+";;"+mfBannersCh.length-1);
		if(mfBannerIndexCh < mfBannersCh.length - 1) {
				mfBannerIndexCh++;
	
		} else {
			mfBannerIndexCh = 0;
		}

		checkCh = 0;
	}
	
}


var interval2=4000; 
var n2=0;


//¹è³Ê ·Ñ¸µ
function fnBannerRotate2(){
	
  if(n2%2==0){
	banner_01.style.display="block";
	banner_02.style.display="none";
		
  }else{    
    banner_01.style.display="none";
	banner_02.style.display="block";
  }

  n2++;
  setTimeout("fnBannerRotate2()",interval2);  
}



//¸á·Ð¼¥ »ç¿ë
 var n3=0;	
function fnBannerRotate3(){
  var interval3=3000; 
    
  if(n3%4==0){
	shop_mp3.style.display="none";
	shop_cd.style.display="none";
	shop_note.style.display="block";
	shop_accessory.style.display="none";

  }else if(n3%4==1){ 
  	shop_mp3.style.display="none";
	shop_cd.style.display="none";
	shop_note.style.display="none";
	shop_accessory.style.display="block";
   
  }else if(n3%4==2){    
	shop_mp3.style.display="none";
	shop_cd.style.display="block";
	shop_note.style.display="none";
	shop_accessory.style.display="none";
	    
  }else if(n3%4==3){    
    shop_mp3.style.display="block";
	shop_cd.style.display="none";
	shop_note.style.display="none";
	shop_accessory.style.display="none";
    
  }
  
  n3++;
  setTimeout("fnBannerRotate3()",interval3);
 } 
 
function goMelonShop(){
	alert("shop");
}	

//20060315 Ãß°¡(¸á·ÐÀ» ½ÃÀÛÆäÀÌÁö·Î)
function homepage() { 
if(document.all)
document.body.style.behavior='url(#default#homepage)';
document.body.setHomePage('http://www.melon.com');
}

//<!-- 060331 Ãß°¡ -->
function hidelayer() {
	// melon pack ºÎºÐÀÇ mp3¹øµé¼¥ gif°¡ animated ¾ÈµÇ´Â °ÍÀ» ¹æÁöÇÏ±â À§ÇÏ¿© ÄÚµå¸¦ Ãß°¡ÇÏ¿´½À´Ï´Ù.
	// ¾Æ·¡ ½ºÅ©¸³Æ® ¼öÁ¤½Ã ±¸¸ÅÆÀ¿¡ ¿¬¶ôÁÖ¼¼¿ä.
	melon_pack.style.display="none";
	superstar.style.visibility = "hidden";
	melon_pack.style.display="block";
}
//<!-- //060331 Ãß°¡ -->


function popGuide() //ÃÊº¸ÀÚ °¡ÀÌµå ÆË¾÷
{
	window.open('http://www.melon.com/utility/customer/beginner/Melon_easyguide.html?WLFC=SKY','guide','height=620,width=900');
}

function swf(add, widthx, heighty){
	var add;
	var widthx;
	var heighty;

	document.write('<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="'+widthx+'" height="'+heighty+'"><param name=movie value="'+add+'"> <param name=quality value=high> <param name="allowScriptAccess" value="always"> <param name="wmode" value="transparent"><param name=menu value=false> <embed src="'+add+'" quality=high menu=false pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+widthx+'" height="'+heighty+'"></embed></object>')
	
}

//¸á·Ð¹æ¼Û ÀÌ¹ÌÁö Å¬¸¯½Ã ¸á·Ð¹æ¼Û ÇÃ·¹ÀÌ¾î ¶ç¿ì°í º» È­¸éµµ ¸á·Ð¹æ¼ÛÀ¸·Î º¯°æ½ÃÅ²´Ù.
function playMcast(){
	window.open("http://melon.inlive.co.kr/player02/player_audio.htm", "player", "width=339, height=198"); 
	window.location.href="http://www.melon.com/mcast/main.jsp?WLFC=SKY";
}


//½ºÄ«ÀÌ½ºÅ©·¡ÆÛ ¿ë
function goMicro(){
  window.open('http://www.melon.com/PIMS/event/couple/bigBangMicro.jsp?WLFC=SKY', '', "width=900, height=650,  status=no, resizable=no, scrollbars=no");
}

//GNB ÅØ½ºÆ®¿ë
function goMicro2(){
  window.open('http://www.melon.com/PIMS/event/couple/bigBangMicro.jsp?WLFC=TXT', '', "width=900, height=650,  status=no, resizable=no, scrollbars=no");
}

function quickNavigation() {

<!---- Äü³×ºñ°ÔÀÌ¼Ç ---->

document.write(" <div id='superstar' style='position:absolute;left:900px;top:0px;width:103px;height:600px;z-index:2;'>");
document.write("    <script language='javascript'>swf('http://image.melon.co.kr/images/edu/sky/ss_200810_103x140.swf','103','140')</script>");
//document.write("    <script language='javascript'>swf('http://image.melon.co.kr/images/edu/sky/ss_200809_103x140.swf','103','140')</script>");
document.write("</div>");

document.write("<div id='bar' style='position:absolute;top:142px;left:908px;width:76px;z-index:1;'>");

//document.write("<div id='Quick_bg' style=position:absolute;top:0px;left:3px;width:76;height:289;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://image.melon.co.kr/images/main/20080429/bg.png', sizingMethod='scale');>");
document.write("<div id='Quick_bg' style=position:absolute;top:0px;left:3px;width:76;height:402;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://image.melon.co.kr/images/main/20080429/bg3.png', sizingMethod='scale');>");
document.write("</div>");

document.write("<div id='Quick_bg1' style='position:absolute;left:5px;'>");  


document.write("<table width=100% border=0 cellpadding=0 cellspacing=0 >");
document.write("	<tr><td><a href='http://www.melon.com/utility/customer/cus_melon_02.jsp?WLFC=SKY' onfocus='blur();'><img src='http://image.melon.co.kr/images/event/skyscraper/20060710/ic_blank.gif' width='74' height='25' border='0'></a></td></tr>");
document.write("	</table> ");
	
	
document.write("<span style='height:30px;'><spacer type='block' width='1' height='30'></span>");

//document.write("		<table bgcolor=#d7e077 cellpadding=0 cellspacing=0 bordercolor=#b8cc4f frame=hsides style='border-collapse:collapse;border-top:1px solid #d7e077;border-bottom:1px solid #d7e077;padding:5 0 2 0' align='center'>");
/*
document.write("			<tr height='23' align=center><td><a href=''><img src='http://image.melon.co.kr/images/main/20080429/080425_menu01.gif' alt=''/></a></td></tr>");
document.write("			<tr height='23' align=center><td><a href='http://www.melon.com/PIMS/myMelon/myPage/imsi_coupon.jsp?WLFC=SKY'><img src='http://image.melon.co.kr/images/main/20080429/080425_menu02.gif' alt=''/></a></td></tr>");
document.write("			<tr height='23' align=center><td><a href='http://point.melon.com/melon_evt.php?WLFC=SKY'><img src='http://image.melon.co.kr/images/main/20080429/080425_menu03.gif' alt=''/></a></td></tr>");
document.write("			<tr height='23' align=center><td><a href='http://www.melon.com/utility/customer/cus_player.jsp?WLFC=SKY'><img src='http://image.melon.co.kr/images/main/20080429/080425_menu04.gif' alt=''/></a></td></tr>");
document.write("			<tr height='23' align=center><td><a href=''><img src='http://image.melon.co.kr/images/main/20080429/080425_menu05.gif' alt=''/></a></td></tr>");
document.write("			<tr height='23' align=center><td><a href='http://help.melon.com/customer/index.jsp?WLFC=SKY'><img src='http://image.melon.co.kr/images/main/20080429/080425_menu06.gif' alt=''/></a></td></tr>");
document.write("		</table> ");*/
document.write(" <table border='0' cellpadding='0' cellspacing='0' align='center'> ");
document.write("		<tr>");
document.write("			<td><img src='http://image.melon.co.kr/images/main/20080429/sky_box_01.gif' width='66' height='3'></td>");
document.write("		</tr>");
document.write("		<tr>");
document.write("			<td><a href='http://www.melon.com/PIMS/myMelon/app_product/product_view.jsp?WLFC=SKY'><img src='http://image.melon.co.kr/images/main/20080429/080425_menu01.gif' border='0'></a></td>");
document.write("		</tr>");
document.write("		<tr>");
document.write("			<td><img src='http://image.melon.co.kr/images/main/20080429/sky_menu_line.gif' width='66' height='1'></td>");
document.write("		</tr>");
document.write("		<tr>");
document.write("			<td><a href='http://www.melon.com/PIMS/myMelon/myPage/imsi_coupon.jsp?WLFC=SKY'><img src='http://image.melon.co.kr/images/main/20080429/080425_menu02.gif'' border='0'></a></td>");
document.write("		</tr>");
document.write("		<tr>");
document.write("			<td><img src='http://image.melon.co.kr/images/main/20080429/sky_menu_line.gif' width='66' height='1'></td>");
document.write("		</tr>		");
document.write("		<tr>");
document.write("			<td><a href='http://point.melon.com/melon_evt.php?WLFC=SKY'><img src='http://image.melon.co.kr/images/main/20080429/080425_menu03.gif' border='0'></a></td>");
document.write("		</tr>");
document.write("		<tr>");
document.write("			<td><img src='http://image.melon.co.kr/images/main/20080429/sky_menu_line.gif' width='66' height='1'></td>");
document.write("		</tr>		");
document.write("		<tr>");
document.write("			<td><a href='http://www.melon.com/utility/customer/cus_player.jsp?WLFC=SKY'><img src='http://image.melon.co.kr/images/main/20080429/080425_menu04.gif' border='0'></a></td>");
document.write("		</tr>");
document.write("		<tr>");
document.write("			<td><img src='http://image.melon.co.kr/images/main/20080429/sky_menu_line.gif' width='66' height='1'></td>");
document.write("		</tr>");
document.write("		<tr>");
document.write("			<td><a href='http://www.melon.com/utility/customer/cus_mobile.jsp?WLFC=SKY'><img src='http://image.melon.co.kr/images/main/20080429/080425_menu05.gif' border='0'></a></td>");
document.write("		</tr>");
document.write("		<tr>");
document.write("			<td><img src='http://image.melon.co.kr/images/main/20080429/sky_menu_line.gif' width='66' height='1'></td>");
document.write("		</tr>		");
document.write("		<tr>");
document.write("			<td><a href='http://help.melon.com/customer/index.jsp?WLFC=SKY'><img src='http://image.melon.co.kr/images/main/20080429/080425_menu06.gif' border='0'></a></td>");
document.write("		</tr>");
document.write("		<tr>");
document.write("			<td><img src='http://image.melon.co.kr/images/main/20080429/sky_box_02.gif' width='66' height='3'></td>");
document.write("		</tr>");
document.write("</table>");
document.write("</table>");

document.write("<span style='height:14px;'><spacer type='block' width='1' height='14'></span>");
//080514 ¸á·Ð¹æ¼Û
//document.write("<table cellpadding='0' cellspacing='0' border='0' align='center' style='margin-left:2px;'>");
//document.write("<tr>");
//document.write("<td><a href='http://www.melon.com/mcast/main.jsp?WLFC=SKY' onfocus='blur()'><img src='http://image.melon.co.kr/images/main/20080429/080514_melon_broadcasting.gif' alt=''/></a></td>");
//document.write("</tr>");
//document.write("</table>");
//080514 ¸á·Ð¹æ¼Û 


document.write("<span style='height:16px;'><spacer type='block' width='1' height='16'></span>");


document.write("	<table border='0' cellpadding='0' cellspacing='0' align='center'>");
document.write("	<tr valign='top'>");
document.write("		<td height='65'>");

//½ºÄ«ÀÌ½ºÅ©·¡ÆÛ ¹è³Ê(ÀÚµ¿»ý¼º)
document.write("	<span id='sky_banner01'></span>");
document.write("		</td>");
document.write("	</tr>");

document.write("	</table>");



document.write("	<table border='0' cellpadding='0' cellspacing='0' align='center'>");
document.write("	<tr>");
document.write("		<td height=13>");
document.write("		</td></tr><tr><td>");

document.write("	    <object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='76' height='137' id='skybanner' align='middle'>");
document.write("         <param name='allowScriptAccess' value='always' />");
document.write("         <param name='wmode' value='transparent' />");
//document.write("         <param name='movie' value='http://image.melon.co.kr/images/event/skyscraper/ss_200809_76x137.swf' />");
document.write("         <param name='movie' value='http://image.melon.co.kr/images/event/skyscraper/ss_200810_76x137.swf' />");
document.write("         <param name='quality' value='high' />");
document.write("         <param name='bgcolor' value='#5c6d0c' />");
//document.write("         <embed src='http://image.melon.co.kr/images/event/skyscraper/ss_200809_76x137.swf' quality='high' bgcolor='#5c6d0c' width='76' height='137' name='skybanner' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
document.write("         <embed src='http://image.melon.co.kr/images/event/skyscraper/ss_200810_76x137.swf' quality='high' bgcolor='#5c6d0c' width='76' height='137' name='skybanner' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
document.write("        </object>");

document.write("	    </td>");
document.write("	</tr>");
document.write("	</table>");


document.write ("</div>");

document.write ("</div>");


showBannerHtml();

}




function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


