
//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 '';  
}

// swf
function flash(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=5,0,0,0" width="'+widthx+'" height="'+heighty+'"><param name=movie value="'+add+'"><param name=wmode value=transparent><param name=quality value=high><embed src="'+add+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+widthx+'" height="'+heighty+'"></embed></object>')}


// swf Åõ¸í
function flash_tr(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=5,0,0,0" width="'+widthx+'" height="'+heighty+'"><param name=movie value="'+add+'"><param name=quality value=high><param name=wmode value=transparent><embed src="'+add+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+widthx+'" height="'+heighty+'"></embed></object>')
}
	/*<script>flash_tr('/media/swf/main_0707.swf?loginChk=<?=$loginChk?>','1010','596')</script>*/



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 clearText(thefield){
	if (thefield.defaultValue==thefield.value)
		thefield.value = ""
}

function tab_action(obj1, obj2) { //obj1:tab, obj2:tab

	for(i=0;i<=(eval(obj1).length-1);i++){
		if(eval(obj1)[obj2-1] == eval(obj1)[i]){
			eval(obj1)[i].style.display="block";
		}
		else{
			eval(obj1)[i].style.display="none";
		}
	}
}
////////////////////////////////////////////////¸µÅ©////////////////////////////////////////////////////////////////////
function goMenu(menu_idx)
{
	var goURL = "";

	switch (menu_idx)
	{
	  
	  case "home" : //¸ÞÀÎÆäÀÌÁö
	  goURL = '/index.asp';
	  break;
	  case "brand" : //ºê·£µå
	  goURL = 'http://www.dressedtokill.co.kr/brand/2008ss/contents/index.asp';
	  break;
	  case "collection" : //ÄÃ·º¼Ç
	  goURL = 'http://www.dressedtokill.co.kr/collection/2008SS/index.asp';
	  break;
	  
	  case "menu01":  // Ä·ÆäÀÎ Á¤º¸
	  goURL = '/contents/campaign/campaign.asp';
	  break;
	  
	  case "menu02":  // ½ºÅ¸ÀÏ
	  goURL = '/contents/style/gate_men.asp';
	  break;
	  
	  case "menu03":  // AD Story
	  goURL = '/contents/adstory/makingflim.asp';
	  break;
	  
	  case "menu04":  // ÀÌº¥Æ®
	  goURL = '/contents/event/080509/break/break.asp';
	  break;
	  
	  case "menu05":  // Infinite
	  goURL = '/contents/infinity/lovestory_gate.asp';
	  break;

	  case "sub01_1":  // ½ºÅ¸ÀÏ -> ·Î¹Ì¿À
	  goURL = '/contents/style/men.asp';
	  break;
	  
	  case "sub01_3":  // ½ºÅ¸ÀÏ -> ·Î¹Ì¿À
	  goURL = '/contents/style/men.asp';
	  break;

	  case "sub01_2":  // ½ºÅ¸ÀÏ -> Áì¸®¿§
	  goURL = '/contents/style/women.asp';
	  break;
	  
	  case "sub01_4":  // ½ºÅ¸ÀÏ -> Áì¸®¿§
	  goURL = '/contents/style/women.asp';
	  break;
	  
	  case "sub02_1":  // ¸ÞÀÌÅ·ÇÊ¸§
	   goURL = '/contents/adstory/makingflim.asp';
	  break;
	  
	  case "sub02_2":  // ±ØÀå±¤°í CF
	  goURL = '/contents/adstory/cf.asp';
	  break;
	  
	  case "sub02_3":  // Ä«´Þ·Î±×
	 openWinCenter("/contents/adstory/catalog.asp","catalog","width=800,height=570");
		break;
	 case "test":  // Ä«´Þ·Î±×
	  openWinCenter("/contents/adstory/catalog.asp","catalog","width=800,height=570");
		break;
	  	  case "sub02_4":  // ¿ùÆäÀÌÆÛ
	  goURL = '/contents/adstory/wall_paper.asp';
	  break;
	  
	  case "sub02_5":  // ½ºÅ©¸°¼¼ÀÌ¹ö
	  goURL = '/contents/adstory/Screensaver.asp';
	  break;
 	  
//	  case "event_01":  // ÀÌº¥Æ®01
//	  goURL = 'contents/event/080416/080416_event.asp';
//	  break;
	  
//	  case "event_02":  // ÀÌº¥Æ®02
//	  goURL = 'contents/event/080416/080416_event.asp';
//	  break;
	  
	  case "sub03_1":  // 20coupleslovestory
	  openWinCenter("/contents/infinity/20_couple.asp","20couple","width=800,height=600");
	  break;
	  
	  case "sub03_2":  // ¼¼±âÀÇlovestory
	  goURL = '/contents/infinity/21_story.asp';
	  break;
	  
	  case "sub03_3":  // 2008³ânew romeo & juliet love story
	  goURL = '/contents/infinity/lovestory_gate.asp';
	  break;
	   case "sub04_1":  // 1¸·
	  goURL = '/contents/infinity/R_lovestory.asp';
	  break;
	   case "sub04_2":  // 2¸·
	  goURL = '/contents/infinity/R_lovestory2.asp';
	  break;
	  case "sub05_1":  // ´Ù¿î·Îµå
	  goURL = '/contents/adstory/download.asp';
	  break;
	  
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		default :
			alert('ÁØºñÁßÀÔ´Ï´Ù.');
		return;

	}

	if (goURL != "") {
		location.href = goURL;
	}
	
}

/**
 * »õ Ã¢À» È­¸é ÇÑ°¡¿îµ¥ ¶ç¿öÁÜ
 */
function openWinCenter(url, wname, wopt) 
{
	var newopt = " ", wHeight = 0, wWidth = 0;
	if (wopt != undefined) {
		var woptlist = wopt.replace(/ /g, "").split(",");
		for (var i in woptlist) {
			if (woptlist[i].match(/^height=/i)) {
				wHeight = parseInt(woptlist[i].substr(7),10);
				if (!isNaN(wHeight)) newopt += "top=" + Math.floor((screen.availHeight - wHeight) / 2) + ",";
			}
			if (woptlist[i].match(/^width=/i)) {
				wWidth = parseInt(woptlist[i].substr(6),10);
				if (!isNaN(wWidth)) newopt += "left=" + Math.floor((screen.availWidth - wWidth) / 2) + ",";
			}
		}
	}
	return window.open(url, wname, newopt + wopt);
}

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_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];}
}

//-->

