
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];}
}


//°øÅëÇÃ·¯½¬
function ShowFlash(sourceUrl,objWidth,objHeight){
    document.write("<OBJECT codeBase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0'");
    document.write("height='" + objHeight + "' width='" + objWidth + "' align='middle' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'>");
    document.write("<PARAM NAME='FlashVars' VALUE=''>");
    document.write("<PARAM NAME='Movie' VALUE='" + sourceUrl + "'>");
    document.write("<PARAM NAME='Src' VALUE='" + sourceUrl + "'>");
    document.write("<PARAM NAME='WMode' VALUE='Transparent'>");
    document.write("<PARAM NAME='Play' VALUE='-1'>");
    document.write("<PARAM NAME='Loop' VALUE='-1'>");
    document.write("<PARAM NAME='Quality' VALUE='High'>");
    document.write("<PARAM NAME='SAlign' VALUE=''>");
    document.write("<PARAM NAME='Menu' VALUE='-1'>");
    document.write("<PARAM NAME='Base' VALUE=''>");
    document.write("<PARAM NAME='DeviceFont' VALUE='0'>");
    document.write("<PARAM NAME='EmbedMovie' VALUE='0'>");
    document.write("<PARAM NAME='BGColor' VALUE=''>");
    document.write("<PARAM NAME='SWRemote' VALUE=''>");
    document.write("<PARAM NAME='MovieData' VALUE=''>");
    document.write("<param name='allowScriptAccess' value='always' />");
    document.write("<PARAM NAME='SeamlessTabbing' VALUE='1'>");
    document.write("<PARAM NAME='Profile' VALUE='0'>");
    document.write("<PARAM NAME='ProfileAddress' VALUE=''>");
    document.write("<PARAM NAME='ProfilePort' VALUE='0'>");
    document.write("<embed src='" + sourceUrl + "' quality='high' WMode='Transparent' width='" + objWidth + "' height='" + objHeight + "' align='middle'");
    document.write("type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>");
    document.write("</OBJECT>");
}


//°øÅëÇÃ·¯½¬
function ShowFlashText(sourceUrl,objWidth,objHeight){
	var returnText = "";
	returnText = "<OBJECT codeBase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0'";
	returnText += "height='"+objHeight+"' width='"+objWidth+"' align='middle' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'>";
	returnText += "<PARAM NAME='FlashVars' VALUE=''>";
	returnText += "<PARAM NAME='Movie' VALUE='"+sourceUrl+"'>";
	returnText += "<PARAM NAME='Src' VALUE='"+sourceUrl+"'>";
	returnText += "<PARAM NAME='WMode' VALUE='Transparent'>";
	returnText += "<PARAM NAME='Play' VALUE='-1'>";
	returnText += "<PARAM NAME='Loop' VALUE='-1'>";
	returnText += "<PARAM NAME='Quality' VALUE='High'>";
	returnText += "<PARAM NAME='SAlign' VALUE=''>";
	returnText += "<PARAM NAME='Menu' VALUE='-1'>";
	returnText += "<PARAM NAME='Base' VALUE=''>";
	returnText += "<PARAM NAME='AllowScriptAccess' VALUE='sameDomain'>";
	returnText += "<PARAM NAME='Scale' VALUE='ShowAll'>";
	returnText += "<PARAM NAME='DeviceFont' VALUE='0'>";
	returnText += "<PARAM NAME='EmbedMovie' VALUE='0'>";
	returnText += "<PARAM NAME='BGColor' VALUE=''>";
	returnText += "<PARAM NAME='SWRemote' VALUE=''>";
	returnText += "<PARAM NAME='MovieData' VALUE=''>";
	returnText += "<PARAM NAME='SeamlessTabbing' VALUE='1'>";
	returnText += "<PARAM NAME='Profile' VALUE='0'>";
	returnText += "<PARAM NAME='ProfileAddress' VALUE=''>";
	returnText += "<PARAM NAME='ProfilePort' VALUE='0'>";
	returnText += "<embed src='"+sourceUrl+"' quality='high' WMode='Transparent' width='"+objWidth+"' height='"+objHeight+"' align='middle' allowScriptAccess='sameDomain'";
	returnText += "type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>";
	returnText += "</OBJECT>";
	return returnText;
}

//°øÅë¹Ìµð¾î
function EmbededMedia(sourceUrl,objWidth,objHeight){
	document.write("<OBJECT id=MediaPlayer1 codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 type='application/x-oleobject ' height='"+objHeight+"' width='"+objWidth+"' classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95 name=MediaPlayer1 bgcolor='DarkBlue' VIEWASTEXT>");
	document.write("<param name='FileName' value='"+sourceUrl+"' />");
	document.write("<embed TYPE='application/x-mplayer2' pluginspage='http://www.microsoft.com/windows/mediaplayer/en/download/Win32IE4x86.asp' Name='VodPlayer' ShowControls='0' ShowDisplay='0' ShowPositionControls='0' ShowTracker='1' Autoresize='0' ShowStatusBar='0' ClickToPlay='1' EnableFullScreenControls='1' SendKeyboardEvents='1' volume='-720' sendMouseClickEvents='1' SendMouseMoveEvents='0' width='"+objWidth+"' height='"+objHeight+"'>");
	document.write("</OBJECT>");
}

//  ¿ÞÂÊ¸Þ´º ·Ñ¿À¹ö
function goOpenPerfSale(idPerf,idUser){

	if(idUser==""){
		goLoginInPage();
	}else{
		var openWidth = 900;
		var openHeight = 620;
		
		var winwidth = (screen.width - openWidth) / 2; 
		var winheight = (screen.height - openHeight) / 2; 
		var wini = window.open('/Home/PerfSale/PerfSalePopup.aspx?Id='+idPerf,'perfSale','width='+openWidth+',height='+openHeight+',left='+winwidth+',top='+winheight);
		wini.focus();
	}
}

//·Î±×ÀÎ ÆäÀÌÁö·Î ÀÌµ¿--ÇöÀç »ç¿ë X
function goLoginInPage(){
	if(confirm('·Î±×ÀÎÀ» ÇØÁÖ¼¼¿ä.')){		
		location.href = '/Home/Member/Login.aspx?url='+escape(document.URL.replace('#',''));
	}
}

var MENU;
var OVER;
function Over(n)
{
	obj = eval("document.all.Lm"+n);
	if(obj !=null){
		obj.src = "/images/"+MENU+"/Lm"+n+"_on.gif";
	}
}

function Out(n)
{
	if(OVER!=n){
	    obj = eval(document.getElementById("Lm" + n));
		obj.src = "/images/"+MENU+"/Lm"+n+".gif";
	}
}

var MENUPerf;
var OVERPERF;
function OverPerf(n)
{
    obj = document.getElementById("Clr" + n);
		obj.src = "/images/" + MENUPerf + "/mon_" + n + "on.gif";
}
function OutPerf(n)
{
	if(OVERPERF !=n)
	{
	    obj = document.getElementById("Clr" + n);
		obj.src = "/images/" + MENUPerf + "/mon_" + n + ".gif";
	}
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////