

// ¸Þ´º ·Ñ¿À¹ö  -----------------------------------------------------------------------

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_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_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 MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}


// today ½ºÅ©·Ñ  -----------------------------------------------------------------------

function CheckUIElements()
{
	var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;


	yMenuFrom   = parseInt (divMenu.style.top, 10);
	yMenuTo     = document.body.scrollTop + 150; // ·¹ÀÌ¾îÀ§Ä¡

	timeoutNextCheck = 277;

	if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) {
			setTimeout ("CheckUIElements()", timeoutNextCheck);
			return;
	}


	if ( yButtonFrom != yButtonTo ) {
		yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 );
		if ( yButtonTo < yButtonFrom )
				yOffset = -yOffset;
				divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
				timeoutNextCheck = 10;
	}
	if ( yMenuFrom != yMenuTo ) {
		yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
		if ( yMenuTo < yMenuFrom )
				yOffset = -yOffset;
				divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
				timeoutNextCheck = 10; // ½ºÅ©·Ñ¼Óµµ
	}

	setTimeout ("CheckUIElements()", timeoutNextCheck);
}



function OnLoad()
{
	var y;

	divMenu.style.top = document.body.scrollTop + 350; // ½ºÅ©·Ñ À§Ä¡
	divMenu.style.visibility = "visible";

	CheckUIElements();
	return true;
}



// png img  -----------------------------------------------------------------------


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 Stage_open(){
 mall_navi.height= 392;
}
function Stage_close(){
 mall_navi.height= 42;
}




// ÇÃ·¡½¬  -----------------------------------------------------------------------
function flash(c,d,e,f,g,h) {
 var flash_tag = "";
 flash_tag = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
 flash_tag +='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ';
 flash_tag +='WIDTH="'+c+'" HEIGHT="'+d+'" >';
 flash_tag +='<param name="movie" value="'+e+'">';
 flash_tag +='<param name="quality" value="high">';
 flash_tag +='<param name="FlashVars" VALUE="logValue='+f+'&login_goUrl='+g+'&login_query='+h+'">';
 flash_tag +='<param name="wmode" value="transparent">';
 flash_tag += '<param name="base" value=".">';
 flash_tag +='<embed base="."  wmode="transparent" >';
 flash_tag +='<embed src="'+e+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ';
 flash_tag +='type="application/x-shockwave-flash"  WIDTH="'+c+'" HEIGHT="'+d+'"></embed></object>'
 document.write(flash_tag);
}

function menuflash(b,c,d) {
 var flash_tag = "";
 flash_tag = '<OBJECT id="mall_navi" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
 flash_tag +='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ';
 flash_tag +='WIDTH="'+c+'" HEIGHT="'+d+'" >';
 flash_tag +='<param name="movie" value="'+b+'">';
 flash_tag +='<param name="quality" value="high">';
 flash_tag += '<param name="base" value=".">';
 flash_tag += '<param name="wmode" value="transparent">';
 flash_tag +='<embed base="." src="'+b+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ';
 flash_tag +='type="application/x-shockwave-flash"  WIDTH="'+c+'" HEIGHT="'+d+'"></embed></object>'

 document.write(flash_tag);

}

// ¸¶ÀÌÆäÀÌÁö -----------------------------------------------------------------------
function showDiv(obj){
 var sm = document.getElementById(obj);
 with(sm.style)
 {
   display = 'block';
 }
}
function hidDiv(obj){
 var sm = document.getElementById(obj);
 with(sm.style)
 {
   display = 'none';
 }
}

// »óÇ°½ºÅ©·Ñ -----------------------------------------------------------------------
function newPageNext(flag){
	var form = document.newform;
	form.page.value = (flag=='pre') ? parseInt(form.page.value)-1 : parseInt(form.page.value)+1;
	form.submit();
}


function LoginPop()
{
	var win = window.open("/member/pop_login.asp", "_login", "width=442, height=345, scrollbars=no, resizble=no");
	win.focus();
}



//ÀÌº¥Æ®/±âÈ¹Àü ÆË¾÷
function ViewEventPop(num)
{
	var win = window.open("/goods/plan_event.asp?Flag="+ num, "_PE", "width=717, height=900, scrollbars=yes");
	win.focus();
}

//È­º¸ ÆË¾÷
function ViewGalleryPop(flag)
{
	var MoveUrl = null;

	switch ( flag )
	{
		case 'beau'		: MoveUrl = "/gallery/beau-comb"; break;
		case 's170'		: MoveUrl = "/gallery/s170cm"; break;
		case 'freeze'	: MoveUrl = "/gallery/freezeburn"; break;
		case 'kids'		: MoveUrl = "/gallery/kids"; break;
		case '3'		: MoveUrl = "/gallery/3pommes"; break;
		case 'jean'		: MoveUrl = "/gallery/jeanbourget"; break;
		default			: MoveUrl = "/gallery/kissnemilie";
	}

	var win = window.open(MoveUrl +"/index.asp", "_gallery", "width=730, height=810, scrollbars=yes, resizable=no");
	win.focus();
}

//µ¿¿µ»ó º¸±â ÆË¾÷
function ViewMoviePop(num)
{
	var win = window.open("/mov/mov.asp?Flag="+ num, "_mov", "width=830, height=810, scrollbars=yes, resizable=yes");
	win.focus();
}

//µ¿¿µ»ó º¸±â ÆË¾÷
function ViewMoviePop2(num)
{
	var win = window.open("/mov/open-celebration.asp?Flag="+ num, "_mov", "width=830, height=810, scrollbars=yes, resizable=yes");
	win.focus();
}

//µ¿¿µ»ó º¸±â ÆË¾÷
function ViewMoviePop3(num)
{
	var win = window.open("/mov/open-pb.asp?Flag="+ num, "_mov", "width=830, height=843, scrollbars=no, resizable=yes");
	win.focus();
}

//ÀÌº¥Æ® ÆË¾÷
function ViewEventPop1()
{
	var win = window.open("/goods/pop_review01.html", "_event", "width=660, height=800, scrollbars=no, resizable=no");
	win.focus();
}

function ViewEventPop2()
{
	var win = window.open("/goods/pop_review02.html", "_event", "width=660, height=800, scrollbars=no, resizable=no");
	win.focus();
}

function ViewContentsPop(num)
{
	var win = window.open("/event/content0"+num+".asp", "_contents", "width=520, height=660, scrollbars=no, resizable=no");
	win.focus();
}

function ViewNewsPop(flag, num)
{
	var win = window.open("/goods/news_view.asp?Flag="+ flag +"&Idx="+ num, "_news", "width=660, height=800, scrollbars=no, resizable=no");
	win.focus();
}

//flash¿ë ºó ÇÔ¼ö
function TempFunc()
{
}
