if(pageChk == null) var pageChk = 0;

function flashMovie(fid,src,wid,hei,fvs,wmd) {
  this.fPrint = '';
  this.Id = document.getElementById(fid);
  this.Src = src;
  this.Width = wid;
  this.Height = hei;
  this.FlashVars = (fvs != undefined)? fvs :'';
  this.Wmod = (wmd != undefined)? wmd :'';
  if(isObject(Id)) {

	fPrint = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+Width+'" height="'+Height+'" id="wisa_'+fid+'">';
    fPrint += '<param name="movie" value="'+Src+'">';
	fPrint += '<param name="allowScriptAccess" value="always" />';
	fPrint += '<param name="allowFullScreen" value="false" />';
    fPrint += '<param name="quality" value="high">';
	fPrint += '<param name="scale" value="noscale" />';
	fPrint += '<param name="salign" value="t" />';
    fPrint += (FlashVars != null) ? '<param name="FlashVars" value="'+FlashVars+'">' : '';
    fPrint += (Wmod != null) ? '<param name="wmode" value="'+Wmod+'">' : '';
    fPrint += '<embed';
    fPrint += fPrint + ' src="'+Src+'"';
    fPrint += (FlashVars != null) ? ' FlashVars="'+FlashVars+'"' : '';
    fPrint += (Wmod != null) ? ' wmode="'+Wmod+'"' : '';
    fPrint += ' quality="high"';
	fPrint += ' scale="noscale"';
	fPrint += ' salign="t"';
	fPrint += ' allowScriptAccess="always"';
	fPrint += ' allowFullScreen="false"';
    fPrint += ' pluginspage="http://www.macromedia.com/go/getflashplayer"';
    fPrint += ' type="application/x-shockwave-flash" ';
    fPrint += ' width="'+Width+'"';
    fPrint += ' height="'+Height+'"';
    fPrint += '></embed>';
    fPrint += '</object>';
    Id.innerHTML = fPrint;
  }
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//  ¢Æ   goFlash
//
//**************************************************************************************************************
//
//  Usage) ÇÃ·¡½Ã ¸µÅ© ÀÚ¹Ù½ºÅ©¸³Æ® ¿¬µ¿
//
////////////////////////////////////////////////////////////////////////////////////////////////////////////////

var flashLink=new Array();
/************************************»ó´Ü¸Þ´º************************************/
flashLink['FunyLogo_Btn']="/";

flashLink['top_menu_00']="/member/login.php";
flashLink['top_menu_01']="/main/exec.php?exec_file=member/logout.exe.php";
flashLink['top_menu_02']="/member/join_step1.php";
flashLink['top_menu_03']="/member/edit_step1.php";
flashLink['top_menu_04']="/mypage/mypage.php";
flashLink['top_menu_05']="/shop/cart.php";
flashLink['top_menu_06']="/mypage/order_list.php";
flashLink['top_menu_07']="/content/content.php?cont=guide";

flashLink['btn_community']="/content/content.php?cont=community";
flashLink['btn_customer']="/content/content.php?cont=customer";
flashLink['btn_lulyDress']="http://www.ruridress.com";
flashLink['btn_event']="/board/?db=news";

/************************************Ä«Å×°í¸®************************************/
flashLink['leftCategory_menu_00']="/shop/big_section.php?cno1=1001";	/* TOP */
flashLink['category_menu_0_sub_00']="/shop/big_section.php?cno1=1071";
flashLink['category_menu_0_sub_01']="/shop/big_section.php?cno1=1072";
flashLink['category_menu_0_sub_02']="/shop/big_section.php?cno1=1073";
flashLink['category_menu_0_sub_03']="/shop/big_section.php?cno1=1074";
flashLink['category_menu_0_sub_04']="/shop/big_section.php?cno1=1014";
flashLink['category_menu_0_sub_05']="/shop/big_section.php?cno1=1015";

flashLink['leftCategory_menu_01']="/shop/big_section.php?cno1=1002";	/* OUTER */
flashLink['category_menu_1_sub_00']="/shop/big_section.php?cno1=1016";
flashLink['category_menu_1_sub_01']="/shop/big_section.php?cno1=1017";
flashLink['category_menu_1_sub_02']="/shop/big_section.php?cno1=1020";
flashLink['category_menu_1_sub_03']="/shop/big_section.php?cno1=1019";
flashLink['category_menu_1_sub_04']="/shop/big_section.php?cno1=1020";

flashLink['leftCategory_menu_02']="/shop/big_section.php?cno1=1078";	/* ONE-PIECE */
flashLink['category_menu_2_sub_01']="/shop/big_section.php?cno1=1079";
flashLink['category_menu_2_sub_02']="/shop/big_section.php?cno1=1080";

flashLink['leftCategory_menu_03']="/shop/big_section.php?cno1=1003";	/* SKIRT */
flashLink['category_menu_3_sub_00']="/shop/big_section.php?cno1=1075";
flashLink['category_menu_3_sub_01']="/shop/big_section.php?cno1=1076";
flashLink['category_menu_3_sub_02']="/shop/big_section.php?cno1=1023";
flashLink['category_menu_3_sub_03']="/shop/big_section.php?cno1=1024";

flashLink['leftCategory_menu_04']="/shop/big_section.php?cno1=1005";	/* PANTS */
flashLink['category_menu_4_sub_00']="/shop/big_section.php?cno1=1077";
flashLink['category_menu_4_sub_01']="/shop/big_section.php?cno1=1025";
flashLink['category_menu_4_sub_02']="/shop/big_section.php?cno1=1028";
flashLink['category_menu_4_sub_03']="/shop/big_section.php?cno1=1028";

flashLink['leftCategory_menu_05']="/shop/big_section.php?cno1=1006";	/* SHOES&BAG */
flashLink['category_menu_5_sub_00']="/shop/big_section.php?cno1=1029";
flashLink['category_menu_5_sub_01']="/shop/big_section.php?cno1=1030";

flashLink['leftCategory_menu_06']="/shop/big_section.php?cno1=1007";	/* ACC */
flashLink['category_menu_6_sub_00']="/shop/big_section.php?cno1=1031";
flashLink['category_menu_6_sub_01']="/shop/big_section.php?cno1=1032";
flashLink['category_menu_6_sub_02']="/shop/big_section.php?cno1=1033";
flashLink['category_menu_6_sub_03']="/shop/big_section.php?cno1=1034";
flashLink['category_menu_6_sub_04']="/shop/big_section.php?cno1=1035";
flashLink['category_menu_6_sub_05']="/shop/big_section.php?cno1=1036";
flashLink['category_menu_6_sub_06']="/shop/big_section.php?cno1=1037";
flashLink['category_menu_6_sub_07']="/shop/big_section.php?cno1=1038";

flashLink['leftCategory_menu_07']="/shop/big_section.php?cno1=1008";	/* JEWERLY */
flashLink['category_menu_7_sub_00']="/shop/big_section.php?cno1=1048";
flashLink['category_menu_7_sub_01']="/shop/big_section.php?cno1=1049";
flashLink['category_menu_7_sub_02']="/shop/big_section.php?cno1=1050";
flashLink['category_menu_7_sub_03']="/shop/big_section.php?cno1=1051";
flashLink['category_menu_7_sub_04']="/shop/big_section.php?cno1=1052";

flashLink['leftCategory_menu_08']="/shop/big_section.php?cno1=1009";	/* FOR YOUR */

flashLink['leftCategory_menu_09']="/shop/big_section.php?cno1=1070";	/* ±âÈ¹Àü */

/************************************Ä¿½ºÅÒ************************************/
flashLink['customer_btn_00']="/mypage/milage.php";
flashLink['customer_btn_01']="/member/edit_step1.php";
flashLink['customer_btn_02']="/mypage/coupon_down_list.php";
flashLink['customer_btn_03']="/shop/cart.php";
flashLink['customer_btn_04']="/content/content.php?cont=guide";
flashLink['customer_btn_05']="/mypage/wish_list.php";
flashLink['customer_btn_06']="/mypage/order_list.php";
flashLink['customer_btn_07']="/shop/product_qna_list.php";
flashLink['customer_btn_08']="/board?db=bank";
flashLink['customer_btn_09']="/board?db=exchange";
flashLink['customer_btn_10']="/content/content.php?cont=customer";
flashLink['customer_btn_11']="/content/content.php?cont=community";
flashLink['customer_btn_12']="http://www.cjgls.co.kr/kor/service/service02.asp";

/************************************Ä¿¹Â´ÏÆ¼************************************/
flashLink['cummunity_btn_00']="";
flashLink['cummunity_btn_01']="";
flashLink['cummunity_btn_02']="/board?db=check";
flashLink['cummunity_btn_03']="/board?db=magazine";
flashLink['cummunity_btn_04']="/shop/product_review_list.php";
//flashLink['cummunity_btn_05']="/coordi/coordi_list.php"; 090603
/* if(pageChk  !=  0) {
	flashLink['cummunity_btn_05']="/board/?db=codi";
	if(pageChk == 'cate') flashLink['cummunity_btn_05']="http://www.funybiki.co.kr";
} else {
	 flashLink['cummunity_btn_05']="http://www.funybiki.co.kr";
} */
flashLink['cummunity_btn_05']=(pageChk  !=  0)?"/board/?db=codi":"/board/index.php?db=news&no=1875&mari_mode=view@view";
flashLink['cummunity_btn_06']="/board?db=news";
flashLink['cummunity_btn_07']="/board?db=entry";
flashLink['cummunity_btn_08']="/board?db=game";
flashLink['cummunity_btn_09']="/board?db=diary";
flashLink['cummunity_btn_10']="";
flashLink['cummunity_btn_11']="";



function goFlash(n){
	//alert(n);
	if (!flashLink[n]) return;
	/* else if (n=='btn_lulyDress' || n=='customer_btn_12' || (n=='cummunity_btn_05' && (pageChk == 0 || pageChk == 'cate'))) window.open(flashLink[n]); */
	else if (n=='btn_lulyDress' || n=='customer_btn_12') window.open(flashLink[n]);
	else location.href=flashLink[n];
}


////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//	¢Æ  R2Slider 1.0
//
//	- 2008-03-20 by zardsama
//
// *************************************************************************************************************
//
// Usage)
//		var º¯¼ö¸í = new R2Slider("·¹ÀÌ¾î ID","º¯¼ö¸í", ¼Óµµ, »ó´Ü¸¶Áø);
//		º¯¼ö¸í.slide();
//
//		- ¼Óµµ, »ó´Ü¸¶ÁøÀº »ý·« °¡´É / ÃßÈÄ º¯°æ °¡´É
//		- 'º¯¼ö¸í.limitTop' È¤Àº 'º¯¼ö¸í.limitBottom' À¸·Î »ó/ÇÏ´Ü ÇÑ°è ÁöÁ¡ ¼³Á¤°¡´É
//
//
//	Example )
//		<div id="scroll" style="position:absolute; width: 100px; height: 400px;"></div>
//		<script type="text/javascript">
//			var test = new R2Slider ("scroll","test",null,null,null);
//			test.limitTop = 100;
//			test.slide();
//		</script>
//
////////////////////////////////////////////////////////////////////////////////////////////////////////////////

R2Slider = function(id, slider, divPitch, marginTop, dElement) {
	if (isNaN(parseInt(marginTop))) marginTop = 0;	// »ó´Ü ¸¶Áø µðÆúÆ®
	if (isNaN(parseInt(divPitch))) divPitch = 15;	// ÀÌµ¿ °£°Ý µðÆúÆ®
	if (!dElement) dElement = document.documentElement; // DTD strict ÀÏ¶§ ( Transitional ÀÏ¶§´Â document.body )

	this.timer;	// Å¸ÀÌ¸Ó º¯¼ö
	this.slider = slider;	// °´Ã¼ º¯¼ö¸í
	this.obj = document.getElementById (id);	// ¿ÀºêÁ§Æ®
	this.marginTop = parseInt(marginTop);	// »ó´Ü ¸¶Áø
	this.divPitch = parseInt(divPitch);	// ÀÌµ¿ °£°Ý
	this.dElement = dElement; // DTD ¿¡ µû¸¥ µµÅ¥¸ÕÆ® ¿¤¸®¸ÕÆ®
	this.limitTop;	 // »ó´Ü ÇÑ°èÁ¡
	this.limitBottom;	 // ÇÏ´Ü ÇÑ°èÁ¡
}


R2Slider.prototype.moveIt = function(){
	var pitch = (parseInt(this.dElement.scrollTop)+ parseInt(this.marginTop)) - parseInt(this.obj.style.top);

	if (pitch == 0) return;
	else nextPos = parseInt(this.obj.style.top) + pitch / this.divPitch
	nextPos = (pitch > 0) ? Math.ceil(nextPos) : Math.floor(nextPos);

	var limitBottom = this.dElement.scrollHeight - parseInt(this.limitBottom)- parseInt(this.obj.offsetHeight);
	if ( this.limitTop && nextPos  < this.limitTop ) nextPos = this.limitTop;
	if ( this.limitBottom && nextPos  > limitBottom ) nextPos = limitBottom;
	if (nextPos < this.marginTop) nextPos = this.marginTop;
	if (isNaN(nextPos)) nextPos = 0;

	this.obj.style.top = nextPos+"px";
}


R2Slider.prototype.slide = function() {
	this.timer = setInterval(""+this.slider+".moveIt()", 10);
}

function eScroll()
{	
	/*********************************
	 * eScroll ( eNamoo scroll script )
	 * by mirrh
	 * 2006.07.16
	 ********************************/
	
	var thisObj = this;
	this.timeObj = null;
	
	/*** ¼³Á¤º¯¼ö ***/
	this.mode = "top";				// ½ºÅ©·Ñ ¹æÇâ (top|left)
	this.width = "100%";			// ¶óÀÎ´ç °¡·Î°ª (pixel)
	this.height = 20;				// ¶óÀÎ´ç ³ôÀÌ°ª (pixel)
	this.line = 1;					// Ãâ·Â ¶óÀÎ¼ö
	this.delay = 50;				// ½ºÅ©·ÑÈÄ µô·¹ÀÌ ½Ã°£
	this.speed = 1;					// ½ºÅ©·Ñ ¼Óµµ (ÀÛÀ»¼ö·Ï ºü¸§)
	this.id = 'obj_eScroll';		// °´Ã¼ id (Å¬·¡½º ´ÙÁß »ç¿ë½Ã id ´Ù¸£°Ô ÁöÁ¤ ¿ä¸Á)
	this.contents = new Array();	// Ãâ·Â ³»¿ë (¹è¿­·Î ³»¿ë ÁöÁ¤ ¿ä¸Á)
	this.align = "left";			// ³»¿ë aligne
	this.valign = "middle";			// ³»¿ë valigne

	/*** ³»Àåº¯¼ö ***/
	this.gap = 0;
	this.direction = 1;

	this.add = add;
	this.exec = exec;
	this.start = start;
	this.stop = stop;
	this.scroll = scroll;
	this.direct = direct;
	this.go = go;

	function add(str)
	{
		this.contents[this.contents.length] = str;
	}
	
	function exec()
	{
		this.basis = (this.mode == "left") ? this.width : this.height;
		var outWidth = this.width * ((this.mode == "left") ? this.line : 1);
		var outHeight = this.height * ((this.mode == "top") ? this.line : 1);
		
		var outline = "<div id=" + this.id + " style='overflow:hidden;width:" + outWidth + ";height:" + outHeight + "'><table></table></div>";
		document.write(outline);
		this.obj = document.getElementById(this.id);
		
		var tb = this.obj.appendChild(document.createElement("table"));
		var tbody = tb.appendChild(document.createElement("tbody"));
		tb.cellPadding = 0 ;
		tb.cellSpacing = 0 ;
		tb.onmouseover = function(){thisObj.stop()};
		tb.onmouseout = function(){thisObj.start()};
		
		if (this.mode=="left") var tr = tbody.appendChild(document.createElement("tr"));
		for (k in this.contents){
			if (this.mode=="top") var tr = tbody.appendChild(document.createElement("tr"));
			var td = tr.appendChild(document.createElement("td"));
			td.noWrap = true;
			td.style.width = this.width;
			td.style.height = this.height;
			td.style.textAlign = this.align;
			td.style.verticalAlign = this.valign;
			td.innerHTML = this.contents[k];
		}
		
		var len = (this.contents.length<this.line) ? this.contents.length : this.line;
		for (i=0;i<len;i++){
			if (this.mode=="top") var tr = tbody.appendChild(document.createElement("tr"));
			td = tr.appendChild(document.createElement("td"));
			td.noWrap = true;
			td.style.width = this.width;
			td.style.height = this.height;
			td.style.textAlign = this.align;
			td.style.verticalAlign = this.valign;
			td.innerHTML = this.contents[i];
		}

		this.obj.parent = this;
		this.tpoint = this.basis * this.contents.length;
		this.start();
	}

	function scroll()
	{
		var out = (this.mode=="left") ? this.obj.scrollLeft : this.obj.scrollTop;
		if (out%this.basis==0){
			this.gap++;
			if (this.gap>=this.delay) this.gap = 0;
		}
		if (!this.gap){
			var ret = (out==this.tpoint) ? this.direction : out + this.direction;
			if (ret<0) ret = this.tpoint + ret;
			if (this.mode=="left") this.obj.scrollLeft = ret;
			else this.obj.scrollTop = ret;
		}
	}

	function start()
	{
		this.timeObj = window.setInterval("(document.getElementById('" + this.id + "')).parent.scroll()",this.speed);
	}

	function stop()
	{
		clearTimeout(this.timeObj);
	}

	function direct(d)
	{
		this.direction = d;
	}

	function go()
	{
		this.stop();
		var out = (this.mode=="left") ? this.obj.scrollLeft : this.obj.scrollTop;
		var ret = (parseInt(out / this.basis) + this.direction) * this.basis;
		if (ret<0) ret = this.tpoint + ret;
		if (ret>this.tpoint) ret = this.basis;
		if (this.mode=="left") this.obj.scrollLeft = ret;
		else this.obj.scrollTop = ret;
	}

}