// ÀÌ¹ÌÁö ·Ñ¿À¹ö =======================================================================================================

function CHIMG(obj){
   var str = obj.src;               
   if(str.indexOf('_on.gif') < 0){         
    ss = str.substr(0, str.indexOf('.gif'))      
    obj.src = ss + "_on.gif";                         
   }else{                                      
    ss = str.substr(0, str.indexOf('_on.gif'))
    obj.src = ss + ".gif";
   }
  }
  
  
  
  

// ÇÃ·¡½Ã »ðÀÔ =======================================================================================================

function FlashObject(swf, width, height, bgcolor, id, flashvars)
{
    var strFlashTag = new String();
    
    if (navigator.appName.indexOf("Microsoft") != -1)
    {
        strFlashTag += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
        strFlashTag += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=version=8,0,0,0" ';
        strFlashTag += 'id="' + id + '" width="' + width + '" height="' + height + '">';
        strFlashTag += '<param name="movie" value="' + swf + '"/>';
        
        if(flashvars != null) {strFlashTag += '<param name="flashvars" value="' + flashvars + '"/>'};
        strFlashTag += '<param name="quality" value="best"/>';
        strFlashTag += '<param name="bgcolor" value="' + bgcolor + '"/>';
        strFlashTag += '<param name="menu" value="false"/>';
        strFlashTag += '<param name="salign" value="LT"/>';
        strFlashTag += '<param name="scale" value="noscale"/>';
        //strFlashTag += '<param name="wmode" value="transparent"/>';
		strFlashTag += '<param name="wmode" value="opaque"/>'
        strFlashTag += '<param name="allowScriptAccess" value="sameDomain"/>';
        strFlashTag += '</object>';
    }
    else
    {
        strFlashTag += '<embed src="' + swf + '" ';
        strFlashTag += 'quality="best" ';
        strFlashTag += 'bgcolor="' + bgcolor + '" ';
        strFlashTag += 'width="' + width + '" ';
        strFlashTag += 'height="' + height + '" ';
        strFlashTag += 'menu="false" ';
        strFlashTag += 'scale="noscale" ';
        strFlashTag += 'id="' + id + '" ';
        strFlashTag += 'salign="LT" ';
        strFlashTag += 'wmode="transparent" ';
        strFlashTag += 'allowScriptAccess="sameDomain" ';
        if(flashvars != null) {strFlashTag += 'flashvars="' + flashvars + '" '};
        strFlashTag += 'type="application/x-shockwave-flash" ';
        strFlashTag += 'pluginspage="http://www.macromedia.com/go/getflashplayer">';
        strFlashTag += '</embed>';
    }

 document.write(strFlashTag);
}

function FlashObject2(swf, width, height, bgcolor, id, flashvars)
{
    var strFlashTag = new String();
    
    if (navigator.appName.indexOf("Microsoft") != -1)
    {
        strFlashTag += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
        strFlashTag += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=version=8,0,0,0" ';
        strFlashTag += 'id="' + id + '" width="' + width + '" height="' + height + '">';
        strFlashTag += '<param name="movie" value="' + swf + '"/>';
        
        if(flashvars != null) {strFlashTag += '<param name="flashvars" value="' + flashvars + '"/>'};
        strFlashTag += '<param name="quality" value="best"/>';
        strFlashTag += '<param name="bgcolor" value="' + bgcolor + '"/>';
        strFlashTag += '<param name="menu" value="false"/>';
        strFlashTag += '<param name="salign" value="LT"/>';
        strFlashTag += '<param name="scale" value="noscale"/>';
		strFlashTag += '<param name="wmode" value="transparent"/>';
        strFlashTag += '<param name="allowScriptAccess" value="sameDomain"/>';
        strFlashTag += '</object>';
    }
    else
    {
        strFlashTag += '<embed src="' + swf + '" ';
        strFlashTag += 'quality="best" ';
        strFlashTag += 'bgcolor="' + bgcolor + '" ';
        strFlashTag += 'width="' + width + '" ';
        strFlashTag += 'height="' + height + '" ';
        strFlashTag += 'menu="false" ';
        strFlashTag += 'scale="noscale" ';
        strFlashTag += 'id="' + id + '" ';
        strFlashTag += 'salign="LT" ';
        strFlashTag += 'wmode="transparent" ';
        strFlashTag += 'allowScriptAccess="sameDomain" ';
        if(flashvars != null) {strFlashTag += 'flashvars="' + flashvars + '" '};
        strFlashTag += 'type="application/x-shockwave-flash" ';
        strFlashTag += 'pluginspage="http://www.macromedia.com/go/getflashplayer">';
        strFlashTag += '</embed>';
    }

 document.write(strFlashTag);
}

// Åõ¸í PNG =======================================================================================================

function setPng24(obj) { 
    obj.width=obj.height=1; 
    obj.className=obj.className.replace(/\bpng24\b/i,''); 
    obj.style.filter = 
    "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 
    obj.src='';  
    return ''; 
        }

// ¸¶¿ì½º ·Ñ¿À¹ö½Ã =======================================================================================================

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

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.01
  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 && d.getElementById) x=d.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];}
}


//hair care tip tab ================================================================================================================
var over=1;
var overtd;
function overMouse(obj,obj2)
{

 obj3 = eval("document.all.l"+obj2);

 if (over)
 {
  temp = eval("document.all.l"+over);
  temp.style.display = "none";
 }

 over = obj2;
 overtd = obj;
 
 obj3.style.display = "block";
}
function outMouse()
{
 document.all.l1.style.display = "none";
 document.all.l2.style.display = "none";
 document.all.l3.style.display = "none";
 document.all.l4.style.display = "none";
 document.all.l5.style.display = "none";

}


<!--ÅØ½ºÆ® ¶óÀÎ ÀÌ¹ÌÁö
function ImgNone() {
document.imgf.ipimg.style.backgroundImage = ""; //ÀÌ¹ÌÁö¸¦ »ç¿ë ÇÏÁö ¾Ê½À´Ï´Ù.
}

function Imginsert() {
var text = document.imgf.ipimg.value; //ÅØ½ºÆ®¶óÀÎÀÇ ¹ë·ù°ª
text = text.replace(/(^\s*)/g,"");
//À§¿¡ text ¸¦ Áö¿ì¸é ½ºÆäÀÌ½º¹Ù·Î ¸¸µç °ø¹éÀÌ °ªÀ¸·Î Ã³¸®µÇ¾î ÀÌ¹ÌÁö°¡ ³ª¿ÀÁö ¾Ê½À´Ï´Ù.

if (!text)
document.imgf.ipimg.style.backgroundImage = "url(../../images/haircare/edm_ox_txt.gif)"; //°ø¹éÀÌ¶ó¸é ÀÌ¹ÌÁö¸¦ ³Ö½À´Ï´Ù.
else
ImgNone(); //±×·¸Áö ¾Ê°í °ªÀÌ Á¸Àç ÇÑ´Ù¸é ImgNone() ½ÇÇà ÀÌ¹ÌÁö¸¦ ³ÖÁö ¾Ê½À´Ï´Ù.
}
//½ºÅ©¸³Æ® ³¡-->


//radio button img ===============================================================================================================
function Check(x,y) {
    for(i=1;i<=2;i++) { // ¶óµð¿À ¹öÆ°ÀÇ °¹¼ö
        z = "askyou1" + i ; // name ºÎºÐ
            document.all[z].src = "../../images/magazine/radio_off.gif" ; // ¶óµð¿Àoff
    }
        document.all[x].src = "../../images/magazine/radio_on.gif" // ¶óµð¿À ¹öÆ° on
}

function Check2(x,y) {
    for(i=1;i<=6;i++) { // ¶óµð¿À ¹öÆ°ÀÇ °¹¼ö
        z = "askyou2" + i ; // name ºÎºÐ
            document.all[z].src = "../../images/magazine/radio_off.gif" ; // ¶óµð¿Àoff
    }
        document.all[x].src = "../../images/magazine/radio_on.gif" // ¶óµð¿À ¹öÆ° on
}

function Magazine2_Check(x,y) {
    for(i=1;i<=5;i++) { // ¶óµð¿À ¹öÆ°ÀÇ °¹¼ö
        z = "askyou1" + i ; // name ºÎºÐ
            document.all[z].src = "../../images/magazine/radio03_off.gif" ; // ¶óµð¿Àoff
    }
        document.all[x].src = "../../images/magazine/radio03_on.gif" // ¶óµð¿À ¹öÆ° on
}

function Magazine2_Check2(x,y) {
    for(i=1;i<=5;i++) { // ¶óµð¿À ¹öÆ°ÀÇ °¹¼ö
        z = "askyou2" + i ; // name ºÎºÐ
            document.all[z].src = "../../images/magazine/radio03_off.gif" ; // ¶óµð¿Àoff
    }
        document.all[x].src = "../../images/magazine/radio03_on.gif" // ¶óµð¿À ¹öÆ° on
}


function Check4(x,y) {
    for(i=1;i<=4;i++) { // ¶óµð¿À ¹öÆ°ÀÇ °¹¼ö
        z = "askyou4" + i ; // name ºÎºÐ
            document.all[z].src = "../../images/magazine/radio_off.gif" ; // ¶óµð¿Àoff
    }
        document.all[x].src = "../../images/magazine/radio_on.gif" // ¶óµð¿À ¹öÆ° on
}



/********************************* 0626 Ãß°¡ ***************************/
function Magazine3_Check(x,y) {
    for(i=1;i<=5;i++) { // ¶óµð¿À ¹öÆ°ÀÇ °¹¼ö
        z = "askyou1" + i ; // name ºÎºÐ
            document.all[z].src = "../../images/magazine/0626/radio03_off.gif" ; // ¶óµð¿Àoff
    }
        document.all[x].src = "../../images/magazine/0626/radio03_on.gif" // ¶óµð¿À ¹öÆ° on
}

function Magazine3_Check2(x,y) {
    for(i=1;i<=5;i++) { // ¶óµð¿À ¹öÆ°ÀÇ °¹¼ö
        z = "askyou2" + i ; // name ºÎºÐ
            document.all[z].src = "../../images/magazine/0626/radio03_off.gif" ; // ¶óµð¿Àoff
    }
        document.all[x].src = "../../images/magazine/0626/radio03_on.gif" // ¶óµð¿À ¹öÆ° on
}

/********************************* 1003 Ãß°¡ ***************************/
function Magazine4_Check(x,y) {
    for(i=1;i<=2;i++) { // ¶óµð¿À ¹öÆ°ÀÇ °¹¼ö
        z = "askyou1" + i ; // name ºÎºÐ
            document.all[z].src = "../../images/magazine/1003/radio03_off.gif" ; // ¶óµð¿Àoff
    }
        document.all[x].src = "../../images/magazine/1003/radio03_on.gif" // ¶óµð¿À ¹öÆ° on
}

function Magazine4_Check2(x,y) {
    for(i=1;i<=2;i++) { // ¶óµð¿À ¹öÆ°ÀÇ °¹¼ö
        z = "askyou2" + i ; // name ºÎºÐ
            document.all[z].src = "../../images/magazine/1003/radio03_off.gif" ; // ¶óµð¿Àoff
    }
        document.all[x].src = "../../images/magazine/1003/radio03_on.gif" // ¶óµð¿À ¹öÆ° on
}




// layer ¿­°í´Ý±â =================================================================================================================
function LYRopen(tarID){
	i = 1 ;
	while (document.all['a'+i]){
	tarDiv = 'a'+i ;
//	qmenu = document.all("q" + i);

		if ( tarID == tarDiv ) {
		document.all['a'+i].style.display = 'block'
		document.all['q'+i].style.display = 'none'
//		document.all['q'+i].style.className = 'faq_on'
//		qmenu.style.fontWeight = "bold";
		}
		else{
		document.all['a'+i].style.display = 'none'
		document.all['q'+i].style.display = 'block'
//		document.all['q'+i].style.className = 'faq'
//		qmenu.style.fontWeight = "";
		}
	i++
	}
}
function LYRclose(){
	i = 1 ;
	while (document.all['a'+i]){
		document.all['a'+i].style.display = 'none'
		document.all['q'+i].style.display = 'block'
	i++
	}
}





// ÇÃ·¡½¬ ¸Þ´º  =======================================================================================================
function goURL(depth0,depth1,depth2) {

//	alert(depth0 + ":::" + depth1);

	var strUrl = "";

if(depth0 ==0  && depth1 == 0 && depth2 == 0)
		//strUrl = "/";
		location.href="http://www.mypantene.co.kr/index.jsp";
	if(depth0 ==0  && depth1 == 0 && depth2 == 1)
		strUrl = "/member/login/proc/login_check.jsp?returnUrl="+escape(window.document.location.href);;
	if(depth0 ==0  && depth1 == 0 && depth2 == 2)
		strUrl = "/customer/news/customer_news_list.jsp";
	if(depth0 ==0  && depth1 == 0 && depth2 == 3)
		strUrl = "";


	if(depth0 ==1 && depth1 == 0)
		strUrl = "/story/about/story_about_pantene.jsp";
	if(depth0 ==1 && depth1 == 1 && depth2 == 0)
		strUrl = "/story/tech/story_shinyring_tech.jsp";
	if(depth0 ==1 && depth1 == 1 && depth2 == 1)
		strUrl = "/story/tech/story_abt_shinyring_01.jsp";
	if(depth0 ==1 && depth1 == 2)
		strUrl = "/story/model/story_pantene_model.jsp";
	if(depth0 ==1 && depth1 == 3)
		strUrl = "/story/cf/story_tv_cf.jsp";
	if(depth0 ==1 && depth1 == 4)
		strUrl = "/story/media/story_inmedia.jsp";

	if(depth0 ==2 && depth1 == 5)
		strUrl = "/product/product_main.jsp";		

	

	if(depth0 == 2 && depth1 == 0 && depth2 == 0)
		//strUrl = "";      // ¸¶ÀÌÅ©·Î»çÀÌÆ®
		//location.href=;
		strUrl = "/product/haircare/product_haircare_08.jsp";
	if(depth0 == 2 && depth1 == 0 && depth2 == 1)
		strUrl = "/product/haircare/product_haircare_07.jsp";		// ½ÇÅ°½º¹«µåÄ³¾î
	if(depth0 == 2 && depth1 == 0 && depth2 == 2)
		strUrl = "/product/haircare/product_haircare_01.jsp";		// ÁýÁß¼Õ»óÄÉ¾î
	if(depth0 == 2 && depth1 == 0 && depth2 == 3)
		strUrl = "/product/haircare/product_haircare_02.jsp";		//  ¹ÐÅ°¸ðÀÌ½ºÃçÄÉ¾î
	if(depth0 == 2 && depth1 == 0 && depth2 == 4)
		strUrl = "/product/haircare/product_haircare_03.jsp";		// ¿¢½ºÆ®¶ó ½ºÆ®·¹ÀÌÆ®
	if(depth0 == 2 && depth1 == 0 && depth2 == 5)
	strUrl = "/product/haircare/product_haircare_04.jsp";			//  ¹Ù¿î½Ã º¼·ý

	if(depth0 == 2 && depth1 == 1 && depth2 == 0)
		strUrl = "/product/specialcare/product_specialcare_07.jsp";		// ½ÇÅ°½º¹«µåÄÉ¾î ºñÅ¸¹Î¿öÅÍ Æ®¸®Æ®¸ÕÆ®
	if(depth0 == 2 && depth1 == 1 && depth2 == 1)
		strUrl = "/product/specialcare/product_specialcare_06.jsp";		//	Æ®¸®ÇÃ ºñÅ¸¹Î ¼öºÐ ÆÑ
	if(depth0 == 2 && depth1 == 1 && depth2 == 2)
		strUrl = "/product/specialcare/product_specialcare_01.jsp";		//	Æ®¸®ÇÃ ÁýÁß ¿µ¾ç ÆÑ
	if(depth0 == 2 && depth1 == 1 && depth2 == 3)
		strUrl = "/product/specialcare/product_specialcare_02.jsp";		//	µö ¸®Æä¾î Æ®¸®Æ®¸ÕÆ® Å©¸²
	if(depth0 == 2 && depth1 == 1 && depth2 == 4)
		strUrl = "/product/specialcare/product_specialcare_03.jsp";		//	³ªÀÌÆ® ¹Ì¶óÅ¬ ¿ÀÀÏ
	if(depth0 == 2 && depth1 == 1 && depth2 == 5)
		strUrl = "/product/specialcare/product_specialcare_04.jsp";		//  ¿À¹ö³ªÀÌÆ® ¸ðÀÌ½ºÃç ¼¼·³
	if(depth0 == 2 && depth1 == 1 && depth2 == 6)
		strUrl = "/product/specialcare/product_specialcare_05.jsp";		//	 ¿¢½ºÆ®¶ó ½ºÆ®·¹ÀÌÆ® Æ®¸®Æ®¸ÕÆ® ¿¡¼¾½º	
	
	if(depth0 == 2 && depth1 == 2 && depth2 == 0)
		strUrl = "/product/review/product_review.jsp";	
	if(depth0 == 2 && depth1 == 3 && depth2 == 0)
		strUrl = "/product/photogenic/product_photogenic.jsp";	
	if(depth0 == 2 && depth1 == 4 && depth2 == 0)
		strUrl = "/product/shop/product_shopping.jsp";


	if(depth0 == 3 && depth1 == 6 && depth2 == 0)
		strUrl = "/haircare/haircare_main.jsp";

	
	if(depth0 == 3 && depth1 == 0 && depth2 == 0)
		strUrl = "/haircare/consulting/haircare_step.jsp";
	if(depth0 == 3 && depth1 == 0 && depth2 == 1)
		strUrl = "/haircare/consulting/haircare_consulting.jsp";
	if(depth0 == 3 && depth1 == 1 && depth2 == 0)
		strUrl = "/haircare/program/haircare_program.jsp";
	if(depth0 == 3 && depth1 == 1 && depth2 == 1)
		strUrl = "/haircare/program/haircare_change.jsp";
	if(depth0 == 3 && depth1 == 2 && depth2 == 0)
		strUrl = "/haircare/oxox/haircare_oxox.jsp";
	if(depth0 == 3 && depth1 == 3 && depth2 == 0)
		strUrl = "/haircare/mytip/haircare_mytip.jsp";
	if(depth0 == 3 && depth1 == 4 && depth2 == 0)
		strUrl = "/haircare/hairtip/haircare_hairtip.jsp";


	if(depth0 == 4 && depth1 == 0)
		strUrl = "/magazine/magazine/magazine.jsp";
	if(depth0 == 4 && depth1 == 1)
		strUrl = "/magazine/magazine/magazine.jsp";
	if(depth0 == 4 && depth1 == 2)
		strUtl = "/magazine/magazine/magazine.jsp";
	if(depth0 == 4 && depth1 == 3)
		strUrl = "/magazine/magazine/magazine.jsp";
	if(depth0 == 4 && depth1 == 4)
		strUrl = "/magazine/askyou/magazine_askyou.jsp";
	if(depth0 == 4 && depth1 == 5)
		strUrl = "/magazine/event/magazine_event.jsp";

	if(depth0 == 5 && depth1 == 0)
		strUrl = "/event/ongoing/event_ongoing_list.jsp";
	if(depth0 == 5 && depth1 == 1)
		strUrl = "/event/prev/event_prev.jsp";
	if(depth0 == 5 && depth1 == 2)
		strUrl = "/event/result/event_result_list.jsp";


	if(depth0 == 6 && depth1 == 0 && depth2 == 0)
		strUrl = "/mypage/info/mypage_info_modify.jsp";
	if(depth0 == 6 && depth1 == 0 && depth2 == 1)
		strUrl = "/mypage/info/mypage_info_modifypw.jsp";
	if(depth0 == 6 && depth1 == 0 && depth2 == 2)
		strUrl = "/mypage/info/mypage_info_secede.jsp";
	if(depth0 == 6 && depth1 == 1 && depth2 == 0)
		strUrl = "/mypage/consulting/mypage_consulting_result.jsp";
	if(depth0 == 6 && depth1 == 2 && depth2 == 0)
		strUrl = "/mypage/hairzzim/mypage_hairzzim.jsp";
	if(depth0 == 6 && depth1 == 3 && depth2 == 0)
		strUrl = "/mypage/1on1/mypage_1on1_list.jsp";

	
	if(depth0 == 7 && depth1 == 0)
		strUrl = "/customer/news/customer_news_list.jsp";
	if(depth0 == 7 && depth1 == 1)
		strUrl = "https://www.mypantene.co.kr/customer/qna/customer_qna.jsp";
	if(depth0 == 7 && depth1 == 2)
		strUrl = "https://www.mypantene.co.kr/customer/qna/customer_qna.jsp";

	if(depth0 == 8 && depth1 == 0)
		strUrl = "/member/join/member_join_01.jsp";
	if(depth0 == 8 && depth1 == 1)
		strUrl = "/member/findid/member_find_idpw.jsp";
	if(depth0 == 8 && depth1 == 2)
		//strUrl = "/member/login/member_login.jsp";
		strUrl = "/member/login/proc/login_check.jsp?returnUrl="+escape(document.location);
		//strUrl = "/member/login/proc/login_check.jsp?returnUrl="
	if(depth0 == 8 && depth1 == 3)
		strUrl = "/member/protect/member_protect.jsp";
	if(depth0 == 8 && depth1 == 4)
		strUrl = "/member/agree/member_agree.jsp";


	if(strUrl != ""){
		if(depth0 == 8 && depth1 == 2) {
			location.href=strUrl;
		} else {
			location.href=strUrl+"?depth0="+depth0+"&depth1="+depth1+"&depth2="+depth2;			
		}
	}else{
		//location.href = "/shinyring/photocontest_01.jsp?depth0="+depth0+"&depth1="+depth1
	}
	
	
	
	/* 20081111 ÀÌÁöÇý¼öÁ¤
	if(depth0 == 2 && depth1 == 0 && depth2 == 0){
		window.open("/cliniccare/main.jsp","ccare","toolbar=no,scrollbars=no,menubar=no,statusbar=no,width=960,height=640");
	} else{
		//alert('test');
	}*/


}

function HFCevent(no) {
	if(no == "0") {
		window.open ('/event/200711/index.jsp','hfcevent' , 'toolbar=0, location=0, status=0, menubar=0, scrollbars=0, resizable=0, top=50px, left=50px, width=900px, height=680px');
		//location.href="/event/ongoing/0822_event_ongoing_main.jsp";
	} else if (no == "1") {
		window.open ('/hfc/she/select_list.jsp?depth0=1&depth1=2&depth2=1','hfcevent' , 'toolbar=0, location=0, status=0, menubar=0, scrollbars=0, resizable=0, top=50px, left=50px, width=990px, height=670px');
	} else if (no == "2") {
		window.open ('/hfc/movie/onair_02.jsp','hfcevent' , 'toolbar=0, location=0, status=0, menubar=0, scrollbars=0, resizable=0, top=50px, left=50px, width=990px, height=670px');
	}
}

// main µð¿£¼¥
function godnshop() {
	window.open("http://www.dnshop.com/front/event/Pantene?Sid=0002_13010400_01_03");
}

// main Áö¸¶ÄÏ
function goGmarket () {
	//window.open("http://www.gmarket.co.kr/challenge/neo_sangsul/plan_display.asp?sid=47039");
	location.href = "/product/haircare/product_haircare_05.jsp?depth0=2&depth1=0&depth2=0";
}


/********************************* ÇÃ·¡½Ã »ðÀÔ ½ºÅ©¸³Æ® ***************************/
function ActiveX(objects){
	if(navigator.appName == "Microsoft Internet Explorer"){
		document.write(objects.text);
		objects.id = "";
	}
}  
/********************************* ÇÃ·¡½Ã »ðÀÔ ½ºÅ©¸³Æ®// ***************************/



/********************************* object ÆÄÀÏ ÆÐÄ¡ ´ëºñ// ***************************/ 

var paramInfo = new Array;

function initParam()
{
  var oldSize = paramInfo.length;

	for (var i=0; i<oldSize; i++) {
		paramInfo.length--;
	}	
}

function setParam(paramName, paramValue)
{
	var idx = paramInfo.length;

	paramInfo[idx] = [];
	paramInfo[idx][0] = paramName;  
	paramInfo[idx][1]= paramValue;
}


function playFlash(objID, objSource, objWidth, objHeight, objStyle, cabVersion, embedAttr)
{
	document.write('<OBJECT id="' + objID + '" name="' + objID + '" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
  
	if (cabVersion != '') {
		document.write('codebase="' + self.window.document.protocol + '"://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + cabVersion + '" ');
	}
	document.write('WIDTH="' + objWidth + '" HEIGHT="' + objHeight + '" ' + objStyle + '>');

	for (var i=0; i<paramInfo.length; i++) {
		document.write('<PARAM NAME="' + paramInfo[i][0] + '" VALUE="'+ paramInfo[i][1] +'">');		
	}	
	
	document.write('<embed src="' + objSource + '" width="' + objWidth + '" height="' + objHeight + '" ' + embedAttr + '>');
	document.write('</OBJECT>');
}



/* 090320 Ãß°¡ */
function Move_Banner(){
	
	var bodySize = parseInt(document.body.offsetHeight);
	var objSize = parseInt(document.getElementById("quick_banner").offsetHeight);
	var scTop = parseInt(document.body.scrollTop);
	var objTop = parseInt(document.getElementById("quick_banner").style.top);

	timer_status = (bodySize > objSize) ? true : false;

	/*
	if (timer_status == true && (scTop > max_top || objTop > max_top) ){
		document.getElementById("quick_banner").style.top = parseInt(document.getElementById("quick_banner").style.top)+((document.body.scrollTop+ 0)-parseInt(document.getElementById("quick_banner").style.top))/10;
	}else if(timer_status == true && (scTop < max_top && objTop < max_top)){
		document.getElementById("quick_banner").style.top = max_top + "px";
	}
	*/

	document.getElementById("quick_banner").style.top = parseInt(document.getElementById("quick_banner").style.top)+((document.body.scrollTop+ max_top)-parseInt(document.getElementById("quick_banner").style.top))/10;
}

/* 2009-07-06 */
var max_top = 100;
/* //2009-07-06 */
var timer_status = true;	

window.onload = function(){

	var timer = setInterval("Move_Banner()",20);	
}

function quickURL(num){
	if( num == "1" ){
		location.replace("/event/ongoing/event_090323_02.jsp");
	}
	else if (num=="2")
	{
		location.replace("/event/ongoing/event_090323_01.jsp");
		//care_window = window.open("/cliniccare/counseling/main.jsp","ccare","toolbar=no,scrollbars=no,menubar=no,statusbar=no,width=960,height=640");
	}
	else if (num == "3")
	{
		window.open("/product/haircare/product_haircare_08.jsp?depth0=2&depth1=0&depth2=0");
	}
	
}

/* //090320 Ãß°¡*/