

/*-----------------------------------------------------------------------------*/
//       ½ºÅ©¸³Æ® Ãß°¡        by suc    2007.10.10



document.onfocusin=bluring;

//	document.oncontextmenu	= returnEventFalse;
//	document.ondragstart	= returnEventFalse;
//	document.onselectstart	= returnEventFalse;


function MM_openBrWindow(theURL, winName, features) { //v2.0
  window.open(theURL, winName, features);
}


function returnEventFalse() {
	event.returnValue = false;
}

function returnEventTrue() {
	event.returnValue = true;
}


//Á¡¼±¾ø¾Ö±â
function bluring(){ 
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") 
	document.body.focus();
} 


//¼ýÀÚ¿©ºÎ È®ÀÎ(½Ç½Ã°£)
function currency(obj){		
	var num = obj.value;
	var re = /^$|,/g; 
	num = num.replace(re, ""); 

	if(isNaN(num)) { alert("¼ýÀÚ ¸¸À» ÀÔ·ÂÇÒ¼ö ÀÖ½À´Ï´Ù");return obj.value=""; obj.focus();} 
}


// Æ÷¸Ë Ã¼Å© (±âÁ¸°Í)
function isValidFormat(input, format) {
    if (input.value.search(format) != -1) {
        return true;
    }
    return false;
}


// ÀÌ¸ÞÀÏ Çü½Ä Ã¼Å© (±âÁ¸°Í)
function CheckEmail(strEmail){
	var format = /^((\w|[\-\.])+)@((\w|[\-\.])+)\.([A-Za-z]+)$/;
    return isValidFormat(strEmail, format);
}



///¹®ÀÚ¿­±æÀÌ Á¦ÇÑ¹×   °ø¹é Ã¼Å©//////
function checkit(o, msg)	{
var space = / /g;                // °ø¹éÁ¦°Å
	if (o.value.replace(space,"").length == 0)	{
		alert(msg);
		if( o.style.display != "none" ){
		o.focus();
		o.select();
		}
		return true;
	}
	return false;
}


//±æÀÌ¹üÀ§ ÁöÁ¤
function isOutOfRange(field, min, max, error_msg){
	if(strLength(field) < min || strLength(field) > max)	{
		alert(error_msg);
		field.focus();
		field.select();
		return true;
	}
	return false;
}



//°íÁ¤±æÀÌ
function isNotExactLength(field, len, error_msg) {
	if(strLength(field) != len) {
		alert(error_msg);
		field.focus();
		field.select();
		return true;
	}
	return false;
}




/** ³¯Â¥Çü½ÄÀÌ ¿Ã¹Ù¸¥Áö °Ë»ç **/
	function OkDate(y,m,d){
		var arrDate;
				
		if (m < 10) 
			m = "0"+m
		if (d < 10) 
			d = "0"+d
				
        switch (m) {
        case 02:        // 2¿ùÀÇ °æ¿ì
                if (d > 29) return false;
                if (d == 29) { if ((y % 4 != 0) || (y % 100 == 0) && (y % 400 != 0))  return false; }                    // 2¿ù 29ÀÇ °æ¿ì ´çÇØ°¡ À±³âÀÎÁö¸¦ È®ÀÎ             
        case 11:
                if (d == 31) return false;
        }

		arrDate = y+"../"+m+"../"+d;
		arrDate = arrDate.split("../");
			
		var chkDate = new Date(arrDate[0] + "../" + arrDate[1] + "../" + arrDate[2]);		
		if (isNaN(chkDate) == true || (arrDate[1] != chkDate.getMonth() + 1 || arrDate[2] != chkDate.getDate())) {	return false ; }
		return true;
	}



// »ýÀÏ ÀÚµ¿ÀÔ·Â  ------
	function autobirth(f)	{
		if (!f.social1.value == "")	{
		var year = f.social1.value.substr(0,2);
		var month = f.social1.value.substr(2,2);
		var date = f.social1.value.substr(4,2);

		var temp1 = f.social1.value.substring(6,1);
		var temp2 = f.social1.value.substring(0,1);

			if( temp2 == 0 && (temp1 == 3 || temp1 == 4) ){ f.BirthYear.value="20"+year; }	
			else { f.BirthYear.value="19"+year; }
		  
			f.BirthMonth.value=month;
			f.BirthDay.value=date;

		}
	}


// ¾ÆÀÌµð À¯È¿¼º °Ë»ç
function check_id(v , msg ) {

	if (v.value.length == 0)	{
		alert(msg);
		v.focus();
		return true;
	}
		
	// Çã¿ëºÒ°¡ ¾ÆÀÌµð »ðÀÔ
	if(v.value.length < 4 || v.value.length > 10 ) {
		alert("¾ÆÀÌµð´Â 4ÀÚÀÌ»ó 10ÀÚ ÀÌÇÏ·Î ÀÔ·ÂÇÏ½Ê½Ã¿À");
		v.focus();
		return true;
	}
		
		for(i=0 ; i < v.value.length ; i++) {
			pass1_ok = false;
			pass2_ok = false;
			pass3_ok = false;
			if(v.value.charAt(i) >= "0" && v.value.charAt(i) <= "9") {
				pass1_ok = true
			}
			if(v.value.charAt(i) >= "A" && v.value.charAt(i) <= "Z") {
				pass2_ok = true
			}
			if(v.value.charAt(i) >= "a" && v.value.charAt(i) <= "z") {
				pass3_ok = true
			}
			if(pass1_ok == false && pass2_ok == false && pass3_ok == false) {
				alert("¾ÆÀÌµð´Â ¿µ¹®ÀÚ, ¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù");
				v.focus();
				return true;
			}
		}
		
		return false;
	
}



// 14ÀÌÇÏ ÁÖ¹Î¹øÈ£ Ã¼Å©
function Jumin_Overcheck(S , NYYYY , NMMDD , OverAge) {

	var Fage = S.substr(0,2);
//	var Fage2	= S.substr(2,4);

	Fage2	= "20" + Fage

	if ( parseInt(Fage2) >= parseInt(NYYYY) ) {	Fage2="19" + Fage }

	//¸¸³ªÀÌ °è»ê  ( +1·Î ´ëÃ¼)
	Fage	= parseInt(NYYYY) - parseInt(Fage2)+1

	if ( Fage	> parseInt(OverAge) ) {
//		alert("¸¸ "+OverAge+"¼¼ ÀÌÇÏ¸¸ °¡ÀÔ°¡´ÉÇÕ´Ï´Ù");
		return false;
	}else if ( Fage <= parseInt(OverAge) ) {
		if ( Fage2 = NMMDD ){//14¼¼ ÀÌÇÏ
		   return true;

		}else {//»ýÀÏºñ±³
//			alert("¸¸ "+OverAge+"¼¼ ÀÌÇÏ¸¸ °¡ÀÔ°¡´ÉÇÕ´Ï´Ù");
			return false;

		}
	}
	
	return true;

}




// ÇÊµå(String) ±æÀÌ °ü·Ã
function strLength(field){
   var Length = 0;
   var Nav = navigator.appName;
   var Ver = navigator.appVersion;
   var IsExplorer = false;

   var ch;
   if ( (Nav == 'Microsoft Internet Explorer') && (Ver.charAt(0) >= 4) )	   {  IsExplorer = true;   }
   if(IsExplorer) {
	  for(var i = 0 ; i < field.value.length; i++) {
		 ch = field.value.charAt(i);
		 if ((ch == "\n") || ((ch >= "¤¿") && (ch <= "È÷")) || ((ch >="¤¡") && (ch <="¤¾")))	{	Length += 2;	} else {	Length += 1;}
	  }

   }else {  Length = field.value.length ;  }
   return Length;
}



 //ÁÖ¼Ò°Ë»öÃ¢
function FindZip(Fgubn){

	MM_openBrWindow('/common/Popup/PopZipCheck.asp?Fgubn='+Fgubn,'popupMenu','width=440,height=300');

}


//Æû°ª¿¡ µû¶ó¼­ ÁÖ¼ÒÀÔ·ÂÇÏ±â
function returnPopZipcode(post_no, city_name, gu_name, dong_name, etc_name , gubn){
	if ( gubn == "INFO" ) {
		var f = window.document.info;
		f.Zip1.value = post_no.substr(0,3);
		f.Zip2.value = post_no.substr(4,3);
		f.Addr0.value = city_name+" "+gu_name+" "+dong_name;
		f.Addr1.value = etc_name;
	}
	if ( gubn == "RESERVE" )
	{
		var f = window.document.info;
		f.lZip1.value = post_no.substr(0,3);
		f.lZip2.value = post_no.substr(4,3);
		f.lAddr0.value = city_name+" "+gu_name+" "+dong_name;
		f.lAddr1.value = etc_name;
	}
	if ( gubn == "SKY" )
	{
		var f = window.document.theForm;
		f.objTXZip_Code1.value = post_no.substr(0,3);
		f.objTXZip_Code2.value = post_no.substr(4,3);
		f.objTXAddress.value = city_name+" "+gu_name+" "+dong_name;
		f.objTXAddress_Detail.value = etc_name;
	}
}


 //Ã¢´Ý±â
 function selfClose(){
     if(navigator.appVersion.indexOf("MSiE 7.0") >= 0 ){//IE7.0 ´Ý´ÂºÎºÐ
            window.open('about:blank','_self').close();
     }else{           //IE6.0 ´Ý´ÂºÎºÐ
            window.opener = self;
            self.close();
        }
    }




//ucc ºä¾î
function writeAX(homeurl,no,file) {

	var str = "";

	str += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="410" height="398">';
	str += '<param name="movie" value="../win32/flvplayer.swf?url='+homeurl+'&no='+no+'&file='+file+'&showdigits=true&showfsbutton=true"../>';
	str += '<param name="allowFullScreen" value="true">';
	str += '</object>';

	document.writeln(str);
}																																	
																												
																														

function resizeFrame(iframeObj){
	/* ¾ÆÀÌÇÁ·¹ÀÓ¿¡¼­ ÀÐ¾îµéÀÎ ÆäÀÌÁöÀÇ body */
	var innerBody = iframeObj.contentWindow.document.body;

			document.onclick = function(){ resizeFrame(iframeObj, 1);};
			innerBody.onclick = function(){ resizeFrame(iframeObj, 1);};
			innerBody.onmouseover = function(){ resizeFrame(iframeObj, 1);};

	/*	 ³ôÀÌ ´Ù½Ã¼³Á¤ */
	var innerHeight = innerBody.scrollHeight + (innerBody.offsetHeight - innerBody.clientHeight);
	iframeObj.style.height = innerHeight;
	iframeObj.style.height = innerHeight;

/*---------- ³ÐÀÌµµ ÇÔ²² ÀÚµ¿Á¶Á¤µÇ¾ß ÇÑ´Ù¸é ÁÖ¼®À» Ç®¾îÁÖ¼¼¿ä~--------------------------------
	// ³ÐÀÌ ´Ù½Ã¼³Á¤ 
	var innerWidth = innerBody.scrollWidth + (innerBody.offsetWidth - innerBody.clientWidth);
	iframeObj.style.width = innerWidth;     
---------------------------------------------------------------------------------------------------*/
	  if( !arguments[1] )        /* Æ¯Á¤ ÀÌº¥Æ®·Î ÀÎÇÑ È£Ãâ½Ã ½ºÅ©·ÑÀ» ±×³É µÐ´Ù. */
                this.scrollTo(1,1);
 
}

/*-----------------------------------------------------------------------------*/




// SunSil Start


function openWin(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function changeImg(imgName, fileName)
{
	eval("document.all."+imgName+".src ='"+fileName+"';");
}

function changeImg2(imgName, imgCount, selectImgNum, imgPath) {
	var a;
	for(i=1;i<=imgCount;i++){
		a = imgName+""+i;

		if(i != selectImgNum) {
			eval(a+".src ='"+imgPath+a+".gif';");
		}
		else {
			eval(a+".src ='"+imgPath+a+"o.gif';");
		}
	}
}

function changeTb(tbName, tbCount, tbNum) {

	var a;
	for(i=1;i<=tbCount;i++){

		a = eval("document.all."+tbName+i);

		if(i != tbNum) {
			a.style.display = 'none';
		}
		else {
			a.style.display = 'block';
		}
	}
}

// SunSil End

// ±âÁ¸ ½ºÅ©¸³ÅÍ
function newWin(url,winname,opt){
 var myPopup=window.open(url,winname,opt);
     myPopup.window.focus();
}

 // °ø¹é check
 function nulChk(obj,lbl){
 if( Trim(obj.value) == '' ){
	alert( lbl + ' ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
	obj.focus();
	return true;
 }
  return false;
 }

//
var bigImage = new Image();				//»õ·Î¿î ÀÌ¹ÌÁö °´Ã¼¸¦ »ý¼º...

function OriginImg(FileName) {
	if(FileName == "") {
		alert("µî·ÏµÈ »çÁøÀÌ ¾ø½À´Ï´Ù.");
		return;
	}

	bigImage.src = FileName;			//»õ·Î »ý¼ºÇÑ ÀÌ¹ÌÁö °´Ã¼ÀÇ °æ·Î¸¦ ÆË¾÷¿¡¼­ º¸¿©ÁÙ ÀÌ¹ÌÁö °æ·Î·Î...

	setTimeout("popupImg(bigImage)", 100);		//ÀÌ¹ÌÁö°¡ Å¬¶óÀÌ¾ðÆ®¿¡ ¿ÏÀüÈ÷  Àü¼Û µÉ¶§±îÁö ¹Ýº¹
}

function popupImg(bigImage) {
    if (! bigImage.complete) {    			// ÀÌ¹ÌÁö°¡ Å¬¶óÀÌ¾ðÆ®¿¡ ¿ÏÀüÈ÷ Àü¼ÛÀÌ µÇÁö ¾Ê¾Ò´Ù¸é....
    		setTimeout("popupImg(bigImage)", 100);
		return;
	}

	var x = bigImage.width;				//ÆË¾÷¿¡¼­ º¸¿©ÁÙ ÀÌ¹ÌÁöÀÇ widht
	var y = bigImage.height;			//ÆË¾÷¿¡¼­ º¸¿©ÁÙ ÀÌ¹ÌÁöÀÇ height
	var x2 = (screen.width - x) / 2;		//È­¸éÀÇ Á¤Áß¾Ó¿¡ ¶ç¿ì±â À§ÇØ.....
	var y2 = (screen.height - y) / 2;		//»óµ¿

	var showImage = window.open("","OriginIms","left="+x2+",top="+y2+",width="+x+",height="+y);

	showImage.document.write("<html><head><title>Top of the Top ÇÏÀÌ¿ø</title></head>");
	showImage.document.write("<body style='margin:0'>");
	showImage.document.write("<img src='"+bigImage.src+"' border='0' onClick='javascript:window.close();' style='cursor:hand'>");
	showImage.document.write("</body>");
	showImage.document.write("</html>");
}

function validFieldText(obj1, msgStr){
	if(Trim(obj1.value)=="") {
		alert(msgStr+" ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.");
		obj1.focus();
		return false;
	}

	return true;
}

function validFieldSelect(obj1, msgStr){
	if(Trim(obj1.value)=="") {
		alert(msgStr+" ¼±ÅÃÇØ ÁÖ½Ê½Ã¿ä.");
		obj1.focus();
		return false;
	}

	return true;
}

function Trim(obj1){
	obj1 = obj1.replace(/^(\s+)|(\s+)$/g, "")
	return obj1;
}

// ÁÖ¹Îµî·Ï¹øÈ£¸¦ °Ë»çÇÑ´Ù.
// ¿Ã¹Ù¸¥ ÁÖ¹Îµî·Ï¹øÈ£ÀÌ¸é true ¸¦ ¸®ÅÏÇÑ´Ù.
function chkRegNo(reg_string)
{
	var a = reg_string.substring(6,7);
	var sum;
	var num;

	if (a < '1' || a > '4') return false;
	else
	{
		sum = 0;
		num = 2;

		for(var i = 0; i < 12; i++)
		{
			a = reg_string.substring(i, i + 1);
			sum = sum + num * (a - '0');
			num++;
			if( num == 10 ) num = 2;
		}

		i = (11 - (sum % 11)) % 10;
		a = reg_string.substring(12, 13);

		return (a == i);
	}
}



//¼ýÀÚÀÔ·Â Ã¼Å©(onblur)
function  number_validate(theForm) {
	if (theForm.value != "") {
		var str=theForm.value;
		for (var i = 0; i< str.length; i++) {
			var ch = str.substring(i, i + 1);

			if ( (ch<"0" || ch>"9") ) {
				alert("\n¼ýÀÚ ¸¸À» ÀÔ·ÂÇÒ¼ö ÀÖ½À´Ï´Ù.");
				tye = 1;
				theForm.value="";
				theForm.focus();
				return false;
			}
			else
				tye=0;
		}
	} else
		tye=0;
	return true;
}

//ÀÔ·Â°ªÀÇ ±æÀÌ Ã¼Å©
function CheckTextLength(obj1, intLen, msgStr){
	if(Trim(obj1.value).length < intLen) {
		alert(msgStr+" "+intLen+"ÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.");
		obj1.focus();
		return false;
	}
	return true;
}

//Æ¯Á¤¹®ÀÚ¸¸À¸·Î µÇ¾îÀÖ´ÂÁö Ã¼Å©
function containsCharsOnly(input,chars) {
    for (var inx = 0; inx < input.value.length; inx++) {
       if (chars.indexOf(input.value.charAt(inx)) == -1)
           return false;
    }
    return true;
}

//¾ËÆÄºª°ú ¼ýÀÚ¸¸À¸·Î ÀÌ·ç¾îÁ³´ÂÁö Ã¼Å©
function isAlphaNum(input) {
    var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
    if(!containsCharsOnly(input, chars)){
		alert("¿µ¹®ÀÚ¿Í ¼ýÀÚ¸¸ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä");
		input.focus();
		input.select();
		return false;
	}
	return true;
}

// Window Open
function WindowOpen(Url,PopupName,popwidth,popheight){
	var height = screen.height;
	var width = screen.width;
	var left = width / 2 - (popwidth/ 2);
	var top = height / 2 - (popheight / 2);

	popheight = popheight + 27;

	window.open(Url ,PopupName,"width="+popwidth+",height="+popheight+",scrollbars=no,toolbar=no,statusbar=no,left="+left+",top="+top+"")
}

// ActiveX ¹ö±×ÆÐÄ¡ Start //

function flashMovie(fid,src,wid,hei,fvs,wmd) {
  this.fPrint = '';
  this.Id = document.getElementById(fid);
  this.Src = src;
  if(wid == 0){
    this.Width = '100%';
  }
  else{
    this.Width = wid;
  }
  if(hei == 0){
    this.Height = '100%';
  }
  else{
    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="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"';
    fPrint += ' width="'+Width+'"';
    fPrint += ' height="'+Height+'">';
    fPrint += '<param name="allowScriptAccess" value="always">';
    fPrint += '<param name="movie" value="'+Src+'">';
    fPrint += '<param name="menu" value="false" />';
    fPrint += '<param name="quality" value="high">';
    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 += ' allowScriptAccess="always"';
    fPrint += ' pluginspage="https://www.macromedia.com/go/getflashplayer"';
    fPrint += ' type="application/x-shockwave-flash"';
    fPrint += ' width="'+Width+'"';
    fPrint += ' height="'+Height+'"';
    fPrint += '></embed>';
    fPrint += '</object>';
    Id.innerHTML = fPrint;
  }
}

function isObject(a) {
    return (a && typeof a == 'object');
}

// ActiveX ¹ö±×ÆÐÄ¡ End //


function DeleteTail(frm, NoPkid)
{
	frm.Mode.value	=	"D";
	frm.Pkid.value	=	NoPkid;
	frm.submit();

}

function RegisterTail(frm)
{
	var MaxLength = 300;
	frm.Mode.value	=	"I";
	if (nulChk(frm.Contents, ' ³»¿ëÀ»')) return;

	if(!checkLength(frm.Contents, 0, MaxLength, false)){
      alert(MaxLength+'ÀÚ ÀÌÇÏ·Î ³Ö¾îÁÖ¼¼¿ä');
      return ;
    }

	frm.submit();
}

function checkLength(obj, min, max, nullable) {
        if (!nullable) {
            len = obj.value.length;

            if (len < min || len > max)
                return false;
        }
        return true;
}


///////////////ÆûÇÊµå ¹®ÀÚÅ©±â Á¦ÇÑ///////by suc@nate.com////////
function RegisterFormMaxLength(frm , MaxLength)
{
	if(!checkLength_form(frm , 0, MaxLength, false)){
      alert(MaxLength+'ÀÚ ÀÌÇÏ·Î ³Ö¾îÁÖ¼¼¿ä');
      return ;
    }

}

function checkLength_form(obj, min, max, nullable) {
        if (!nullable) {
            len = obj.length;

            if (len < min || len > max)
                return false;
        }
        return true;
}
///////////////////////////////////////////////////////////

function LoginRedirect(frm)
{
	alert("·Î±×ÀÎ ÇØÁÖ¼¼¿ä");
	frm.action =	"../Login/Login.asp";
	frm.submit();
}

//³¯¾¾ ÆË¾÷

function OpenWeather(){
//	openWin("http://www.kangwonland.com/Company/Popup/Weather.asp", "WeatherWindow", "width=536,height=560,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");
//	openWin("http://www.kangwonland.com/Company/Popup/Weather01.html", "WeatherWindow", "width=350,height=220,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");

	openWin("http://www.kangwonland.com/Company/Popup/Weather01.html", "WeatherWindow", "width=350,height=220,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");
}

//³¯¾¾ ÆË¾÷

// ÇÃ·¡½Ã ¸Þ´º ¸µÅ© start //

//¸Þ´º01 ½ºÅ° º¸µå
u1 ="http://www.high1.co.kr/SkiBoard/Intro.asp";
u11 ="http://www.high1.co.kr/SkiBoard/Intro.asp";
u12 ="http://www.high1.co.kr/SkiBoard/Slope.asp";
u13 ="sub0103.html";
u14 ="sub0104.html";
u15 ="http://www.high1.co.kr/SkiBoard/ZLG.asp";
u16 ="http://www.high1.co.kr/SkiBoard/SlopeMap.asp";
u17 ="http://www.high1.co.kr/SkiBoard/Rental.asp";
u18 ="http://www.high1.co.kr/SkiBoard/PriceList01.asp";
u181 ="http://www.high1.co.kr/SkiBoard/PriceList01.asp"; //¸®ÇÁÆ® & °ïµ¹¶ó
u182 ="http://www.high1.co.kr/SkiBoard/PriceList02.asp"; //·»Å» / ¼ö¸® / º¸°ü
u183 ="http://www.high1.co.kr/SkiBoard/PriceList03.asp"; //½ºÅ°½ºÄð °­½À¿ä±Ý
u184 ="http://www.high1.co.kr/SkiBoard/PriceList04.asp"; //½ÃÁð±Ç

//¸Þ´º02 ½ºÅ° º¸µå ½ºÄð
u2 ="http://www.high1.co.kr/School/valleycondo.asp";
u21 ="http://www.high1.co.kr/School/valleycondo.asp";
u22 ="http://www.high1.co.kr/School/mountaincondo.asp";


//¸Þ´º02 ½ºÅ° º¸µå ½ºÄð
//u2 ="#";
//u21 ="#";
//u22 ="http://www.high1.co.kr/School/Program.asp";
//u23 ="http://www.high1.co.kr/School/SkiSchool.asp";
//u24 ="http://www.high1.co.kr/School/BabySchool.asp";
//u25 ="#";
//u26 ="http://www.high1.co.kr/School/PriceSchool.asp";
//u27 ="http://www.high1.co.kr/School/RacingSchool.asp";



//¸Þ´º03 º§¸®&¸¶¿îÆ¾
u3 ="http://www.high1.co.kr/Valley/Summary.asp";
u31 ="http://www.high1.co.kr/Valley/Summary.asp";
u32 ="http://www.high1.co.kr/Valley/ValleyHerb.asp";
u33 ="http://www.high1.co.kr/Valley/ValleyTop.asp";
u34 ="http://www.high1.co.kr/Valley/MountainHerb.asp";
u35 ="http://www.high1.co.kr/Valley/MountainTop.asp";
//u36 ="http://www.high1.co.kr/Valley/MountainTop.asp";
//u37 ="http://www.high1.co.kr/Valley/MountainTop.asp";

//¸Þ´º04 ÇÏÀÌ¿ø ¸Å´Ï¾Æ
u4 ="http://www.high1.co.kr/Mania/News/NewsList.asp";
u41 ="http://www.high1.co.kr/Mania/News/NewsList.asp";
u42 ="http://www.high1.co.kr/Mania/OpenBoard/OpenBBSList.asp";
u421 ="http://www.high1.co.kr/Mania/OpenBoard/OpenBBSList.asp";
u422 ="http://www.high1.co.kr/Mania/OpenBoard/CarPoolBBSList.asp";
u423 ="http://www.high1.co.kr/Mania/OpenBoard/AdBBSList.asp";
u43 ="http://www.high1.co.kr/Mania/FriendGallery/FriendGalleryList.asp";
u44 ="sub0404.html";
u45 ="http://www.high1.co.kr/Mania/Poll/PollList.asp";
u47 ="http://www.high1.co.kr/Mania/Poll/PollList.asp";

//¸Þ´º05 Á¤º¸·¹ÀÌ´õ
u5 ="http://www.high1.co.kr/Info/Photo/PhotoList.asp";
u51 ="http://www.high1.co.kr/Info/Photo/PhotoList.asp";
u52 ="javascript:webcampop()"; //"http://www.high1.co.kr/Info/HigyWebCam.asp";
u53 ="javascript:OpenWeather();";
u54 ="http://www.high1.co.kr/Info/CyberTour.asp";
u55 ="http://www.high1.co.kr/Info/Location/Area.asp";
u551 ="http://www.high1.co.kr/Info/Location/Area.asp"; //Áö¿ªº° ¿À½Ã´Â ±æ
u552 ="http://www.high1.co.kr/Info/Location/SkiTrain.asp"; //ÇÏÀÌ¿ø ½ºÅ° ¿­Â÷
u553 ="http://www.high1.co.kr/Info/Location/Traffic.asp"; //ÁÖ¿ä ±³Åë½Ã¼³ ¾È³»
u554 ="http://www.high1.co.kr/Info/Location/ShuttleBus.asp"; //¼ÅÆ²¹ö½º ¾È³»
u555 ="http://www.high1.co.kr/Info/Location/SeasonBus.asp"; //½ÃÁð¹ö½º
u56 ="sub0506.html";
u57 ="http://www.high1.co.kr/Info/Event/EventList.asp";
u571 ="http://www.high1.co.kr/Info/Event/EventList.asp";//ÀÌº¥Æ®
u572 ="http://www.high1.co.kr/Info/Event/EventPackage.asp";//ÆÐÅ°Áö
u573 ="http://www.high1.co.kr/photoevent/index.asp";
u574 ="http://www.high1.co.kr/photoevent/index.asp";//±âÂ÷ÀÌº¥Æ®
u58 ="http://www.high1.co.kr/Info/Event/EventPackage.asp";

//¸Þ´º06 È¸¿ø
u61 ="http://www.high1.co.kr/Member/Login.asp";
u62 ="http://www.high1.co.kr/Member/Join.asp";

//¸Þ´º07 MY ÆäÀÌÁö
//u71 ="#sub0701.html";
u71 ="https://www.high1.co.kr:444/MyPage/TicketInfo.asp";
u72 ="https://www.high1.co.kr:444/MyPage/MemberInfo.asp";
u73 ="http://www.high1.co.kr/MyPage/MemberOut.asp";
u74 = "http://www.high1.co.kr/MyPage/QnaInfo.asp"
u75 = "http://www.high1.co.kr/MyPage/MyQnaList.asp"

//¸Þ´º08 °í°´¼¾ÅÍ
u81 ="http://www.high1.co.kr/Customer/Policy/UseInfo.asp";
u811 ="http://www.high1.co.kr/Customer/Policy/UseInfo.asp"; //ÀÌ¿ë¾È³»
u812 ="http://www.high1.co.kr/Customer/Policy/Privacy.asp"; //°³ÀÎÁ¤º¸º¸È£Á¤Ã¥
u813 ="http://www.high1.co.kr/Customer/Policy/Copyright.asp"; //È¨ÆäÀÌÁö ÀúÀÛ±Ç º¸È£
u814 ="http://www.high1.co.kr/Customer/Policy/Email.asp"; //ÀÌ¸ÞÀÏÁÖ¼Ò ¹«´Ü¼öÁý°ÅºÎ
u82 ="http://www.high1.co.kr/Customer/FAQ/FAQList.asp";
u83 ="http://www.high1.co.kr/Customer/Q&A/Qna.asp";
u84 ="http://www.high1.co.kr/SkiBoard/SlopeMap.asp";
//u84 ="http://www.high1.co.kr/Customer/LossCenter/LossCenterList.asp";
u85 ="http://www.high1.co.kr/Customer/SiteMap.asp";

//¸Þ´º09 06-07½ÃÁð¾È³»
//u91 ="http://www.high1.co.kr/SeasonTicket/Buy/TicketSeasonInfo.asp";
u91 ="javascript:alert('07-08 ½ÃÁð¿¡ ºË°Ú½À´Ï´Ù.')";
u92 ="http://www.high1.co.kr/SeasonTicket/Buy/ticketbuyinfo.asp";
//u93 ="http://www.high1.co.kr/SeasonTicket/Buy/TicketList.asp";
u93 ="javascript:alert('07-08 ½ÃÁð¿¡ ºË°Ú½À´Ï´Ù.')";
u94 ="http://www.high1.co.kr/SeasonTicket/Buy/TicketCancel.asp";

//¼­ºê ·Î°í
u999 ="../";

function link(){
	var url = "";
	var depth = arguments.length;
	try {
		if(depth==0) return;
		else if(depth==1) url = eval("u"+arguments[0]);
		else if(depth==2) url = eval("u"+arguments[0]+arguments[1]);
		else if(depth==3) url = eval("u"+arguments[0]+arguments[1]+arguments[2]);
		location.href = url;
	}catch(e) { alert("ÁØºñÁßÀÔ´Ï´Ù."); }
}

function webcampop()
{
	//window.open("../Popup/PopWebcam.html", 'webcam', "width=760,height=520,scrollbars=no,toolbar=no,left=50,top=50")
	alert("07/08½ÃÁð¿¡ ´Ù½Ã Ã£¾ÆºË°Ú½À´Ï´Ù.");
}

function IDCheck(value)
{
	WindowOpen("../Popup/IDDupCheck.asp?UserID="+value, "IDCheck", 357, 125)
}



function IDHigh1Publish()
{
	WindowOpen("../Popup/PopMemCheck.asp", "IDCheck", 360, 190)
}

//function cfopen(){
	//WindowOpen("http://www.high1.co.kr/Popup/PopCF.html", "CFPopup", 340, 232)
//}

function cfopen(){
	WindowOpen("http://game.high1.co.kr/", "open", 800, 600)
}

function MoviePlayer(){
	document.write("<object classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' id='MediaPlayer1' width='339' height='260' border='0'>");
	document.write("<param name='Filename' value='http://www.kangwonland.com/images/Movie/main_cm20sec.mpg'>");
	document.write("<param name='loop' value='1'>");
	document.write("<param name='mute' value='0'>");
	document.write("<param name='AutoStart' value='1'>");
	document.write("<param name='AutoSize' value='0'>");
	document.write("<param name='AutoResize' value='0'>");
	document.write("<param name='TransparentAtStart' value='1'>");
	document.write("<param name='AutoRewind' value='1'>");
	document.write("<param name='ShowDisplay' value='0'>");
	document.write("<param name='ClickToPlay' value='1'>");
	document.write("<param name='EnableContextMenu' value='0'>");
	document.write("<param name='ShowPositionControls' value='1'>");
	document.write("<param name='ShowStatusBar' value='0'>");
	document.write("<param name='ShowControls' value='1'>");
	document.write("<param name='EnableTracker' value='1'>");
	document.write("<param name='Volume' value='0'>");
	document.write("</object>");
}

function MoviePlayer2(){
	document.write("<embed src='/FDS/2007À½¾ÇºÐ¼ö3.wmv' width='480px' height='400px' autostart='true' style='FILTER: gray()' type=video/x-ms-asf showstatusbar='1'></embed>");
}


function MoviePlayer3(src, moview, movieh){
	document.write("<embed src='"+src+"' width='"+moview+"' height='"+movieh+"' autostart='true' style='FILTER: gray()' type=video/x-ms-asf showstatusbar='0' ShowControls='0'></embed>");
}


function DoModalCalendar( obj ){
	window.showModalDialog( "../Common/Popup/Cal.html", obj, "dialogWidth=240px;dialogHeight=230px;resizable=no;status=no;scroll=no" );
}
// ÇÃ·¡½Ã ¸Þ´º ¸µÅ© end //

function MoveToMain() {
	location.href = "http://www.high1.co.kr";
}



///////////»óÀ§ °øÁö ½ºÅ©·Ñ//////////////////
function pausescroller(content, divId, divClass, delay){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 500)
}

pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) //Clean up loose references in IE
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}

pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
setTimeout(function(){scrollerinstance.animateup()}, 50)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}

pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}


pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}

function WebEdit(fid, szPkID, szColumn, szTable ) {
  this.fPrint = '';
  this.Id = document.getElementById(fid);
  if(isObject(Id)) {
    fPrint = '<OBJECT ID="MyunginWebEditor" TABINDEX="5" style="width:500px; height:350px;" CLASSID="CLSID:D7767597-BCC5-4CCF-9AB1-BB23B6B2B0D0" CODEBASE="http://www.high1.co.kr/admin/lib/miwectrl.cab#Version=1,3,1,16">';
    fPrint += '<PARAM NAME="CSSStyle" Value="<STYLE type=text/css>select,input,div,form,textarea {font-family:±¼¸²; font-size:10pt;margin-left: 0%; margin-top: 0%;}p,td {font-family:±¼¸²; font-size:10pt; margin-left: 0%; margin-top: 0%;}</STYLE>">';
    fPrint += '<PARAM NAME="PathRS" Value="1">';
    fPrint += '<PARAM NAME="ShowPreview" Value="0">';
	fPrint += '<PARAM NAME="LoadURL" Value="http://www.high1.co.kr/share/WEContents.asp?num='+szPkID+'&cn='+szColumn+'&tn=' + szTable + '">';
    fPrint += '</OBJECT>';
    Id.innerHTML = fPrint;
  }
}

function HideThis() {
	document.all.BestPack.style.display = "none";
}

function ShowPackage( szPackageCode, szTitle, szDateFrom, szDateTo, szDesc, szServiceName ) {
	var szHtml = "";
	var x = 0;
	var y = 0;
	szHtml += '<html>';
	szHtml += '<head>';
	szHtml += '<meta http-equiv="content-type" content="application/xhml+xml"; charset="euc-kr" />';
	szHtml += '<link rel="stylesheet" type="text/css" media="all" href="../inc/css/Popup.css" />';
	szHtml += '<link rel="stylesheet" type="text/css" media="all" href="../comm/css/default.css" />';
	szHtml += '<body>';
	szHtml += '<div id="BestClose"><a href="Javascript:HideThis()"><img src="../images/quickservice/btn_close.gif"></a></div>';
	szHtml += '<div id="topspace35"></div>';
	szHtml += '<div id="BestCon">';
	szHtml += '<div id="BestBox">';
	szHtml += '<ul>';
	szHtml += '<li class="left">';
	szHtml += '<!-- ÀÌ¹ÌÁö °íÁ¤ -->';
	szHtml += '<img src="../images/quickservice/Sum_BestPack_sample.gif" width="166" height="114">';
	szHtml += '<!-- // ÀÌ¹ÌÁö °íÁ¤ -->';
	szHtml += '</li>';
	szHtml += '<li class="right">';
	szHtml += '<p class="texBlue" style="font-size:14px;"><strong>' + szTitle + '</strong></p>';
	szHtml += '<p class="texOrange">±â°£ : ' + szDateFrom + '~' + szDateTo + '</p>';
	szHtml += '<p class="texOrange">' + szServiceName + '</p>';
	szHtml += '<div id="topspace15"></div>';
	szHtml += '<div style="padding:0 20px 0 0;">';
	szHtml += '<textarea style="border:1px solid none;margin:0;padding:0;width:240px;height:80px;background:#F9F9F9;">' + szDesc + '</textarea>';
	szHtml += '</div>';
	szHtml += '<div id="topspace10"></div>';
	szHtml += '<div style="padding:0 15px 0 0;">';
	szHtml += '<ul style="border-top:1px solid #E9E9E9;border-bottom:1px solid #E9E9E9;height:20px;">';
	szHtml += '<li style="float:left;padding:3px 0 0 0;color:#000;font-size:14px;font-weight:bold;">±Ý¾×</li>';
	szHtml += '<li style="float:left;padding:3px 0 0 10px;font-size:14px;color:#C82404;font-weight:bold;">240,000¿ø</li>';
	szHtml += '</ul>';
	szHtml += '</div>';
	szHtml += '<div id="topspace5"></div>';
	szHtml += '<div id="texbutton"><a href="./PackageReservation1.asp?pc=' + szPackageCode + '"><img src="../images/quickservice/btn_pack.gif"></a></div>';
	szHtml += '</li>';
	szHtml += '</ul>';
	szHtml += '</div>';
	szHtml += '</div>';
	szHtml += '</body>';
	szHtml += '</html>';
	
	if ( szPackageCode != "" )
	{
		document.all.BestPack.style.pixelTop	= 0;
		document.all.BestPack.style.pixelLeft = 0;
		document.all.BestPack.style.display = "";
		document.all.BestPack.innerHTML =  szHtml;
	}
		
}

	function pop_weather()
	{
		window.open("http://www.kangwonland.com/company/popup/weather01.html", "pop_weather", "width=350,height=355");
	}
	
	function image_window(img)
    {
        var w = img.tmp_width; 
        var h = img.tmp_height; 
        var winl = (screen.width-w)/2; 
        var wint = (screen.height-h)/3; 

        if (w >= screen.width) { 
            winl = 0; 
            h = (parseInt)(w * (h / w)); 
        } 

        if (h >= screen.height) { 
            wint = 0; 
            w = (parseInt)(h * (w / h)); 
        } 

        var js_url = "<script language='JavaScript1.2'> \n"; 
            js_url += "<!-- \n"; 
            js_url += "var ie=document.all; \n"; 
            js_url += "var nn6=document.getElementById&&!document.all; \n"; 
            js_url += "var isdrag=false; \n"; 
            js_url += "var x,y; \n"; 
            js_url += "var dobj; \n"; 
            js_url += "function movemouse(e) \n"; 
            js_url += "{ \n"; 
            js_url += "  if (isdrag) \n"; 
            js_url += "  { \n"; 
            js_url += "    dobj.style.left = nn6 ? tx + e.clientX - x : tx + event.clientX - x; \n"; 
            js_url += "    dobj.style.top  = nn6 ? ty + e.clientY - y : ty + event.clientY - y; \n"; 
            js_url += "    return false; \n"; 
            js_url += "  } \n"; 
            js_url += "} \n"; 
            js_url += "function selectmouse(e) \n"; 
            js_url += "{ \n"; 
            js_url += "  var fobj      = nn6 ? e.target : event.srcElement; \n"; 
            js_url += "  var topelement = nn6 ? 'HTML' : 'BODY'; \n"; 
            js_url += "  while (fobj.tagName != topelement && fobj.className != 'dragme') \n"; 
            js_url += "  { \n"; 
            js_url += "    fobj = nn6 ? fobj.parentNode : fobj.parentElement; \n"; 
            js_url += "  } \n"; 
            js_url += "  if (fobj.className=='dragme') \n"; 
            js_url += "  { \n"; 
            js_url += "    isdrag = true; \n"; 
            js_url += "    dobj = fobj; \n"; 
            js_url += "    tx = parseInt(dobj.style.left+0); \n"; 
            js_url += "    ty = parseInt(dobj.style.top+0); \n"; 
            js_url += "    x = nn6 ? e.clientX : event.clientX; \n"; 
            js_url += "    y = nn6 ? e.clientY : event.clientY; \n"; 
            js_url += "    document.onmousemove=movemouse; \n"; 
            js_url += "    return false; \n"; 
            js_url += "  } \n"; 
            js_url += "} \n"; 
            js_url += "document.onmousedown=selectmouse; \n"; 
            js_url += "document.onmouseup=new Function('isdrag=false'); \n"; 
            js_url += "..//--> \n"; 
            js_url += "</"+"script> \n"; 

        var settings;

        if (g4_is_gecko) {
            settings  ='width='+(w+10)+','; 
            settings +='height='+(h+10)+','; 
        } else {
            settings  ='width='+w+','; 
            settings +='height='+h+','; 
        }
        settings +='top='+wint+','; 
        settings +='left='+winl+','; 
        settings +='scrollbars=no,'; 
        settings +='resizable=yes,'; 
        settings +='status=no'; 


        win=window.open("","image_window",settings); 
        win.document.open(); 
        win.document.write ("<html><head> \n<meta http-equiv='imagetoolbar' CONTENT='no'> \n<meta http-equiv='content-type' content='text/html; charset="+g4_charset+"'>\n"); 
        var size = "ÀÌ¹ÌÁö »çÀÌÁî : "+w+" x "+h;
        win.document.write ("<title>"+size+"</title> \n"); 
        if(w >= screen.width || h >= screen.height) { 
            win.document.write (js_url); 
            var click = "ondblclick='window.close();' style='cursor:move' title=' "+size+" \n\n ÀÌ¹ÌÁö »çÀÌÁî°¡ È­¸éº¸´Ù Å®´Ï´Ù. \n ¿ÞÂÊ ¹öÆ°À» Å¬¸¯ÇÑ ÈÄ ¸¶¿ì½º¸¦ ¿òÁ÷¿©¼­ º¸¼¼¿ä. \n\n ´õºí Å¬¸¯ÇÏ¸é ´ÝÇô¿ä. '"; 
        } 
        else 
            var click = "onclick='window.close();' style='cursor:pointer' title=' "+size+" \n\n Å¬¸¯ÇÏ¸é ´ÝÇô¿ä. '"; 
        win.document.write ("<style>.dragme{position:relative;}</style> \n"); 
        win.document.write ("</head> \n\n"); 
        win.document.write ("<body leftmargin=0 topmargin=0 bgcolor=#dddddd style='cursor:arrow;'> \n"); 
        win.document.write ("<table width=100% height=100% cellpadding=0 cellspacing=0><tr><td align=center valign=middle><img src='"+img.src+"' width='"+w+"' height='"+h+"' border=0 class='dragme' "+click+"></td></tr></table>");
        win.document.write ("</body></html>"); 
        win.document.close(); 

        if(parseInt(navigator.appVersion) >= 4){win.window.focus();} 
    }
///////////////////////////////////////////////////////////////////////////////



function txtDisplay(val){
	var txt = eval("document.all."+val).value;
	document.write (txt);
}



///////////////////////////////////////////
// IE activeX patch
// author Jackie Lee (jackie72@korea.com)
// http://www.motiongr.com
// create date 2008.05.29
// version 1.0
// ¹èÆ÷½Ã À§³»¿ëÀ» Æ÷ÇÔÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù
///////////////////////////////////////////

//flash(Ãâ·Â¿µ¿ªID¹×NAME,ÇÃ·¡½ÃÆÄÀÏ°æ·Î,WIDTH,HEIGHT,FLASHVARS,BackgroundColor,WMOD)

function flash(fid,fnm,wid,hei,fvs,bgc,wmd) {
	var flash_tag = "";
	flash_tag = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+wid+'" height="'+hei+'" id="'+fid+'" align="middle">';
	flash_tag +='<param name="allowScriptAccess" value="always" />';
	flash_tag +='<param name="allowFullScreen" value="false" />';
	flash_tag +='<param name="movie" value="'+fnm+'" />';
	flash_tag +='<param name="FlashVars" value="'+fvs+'" />';
	flash_tag +='<param name="quality" value="high" />';
	flash_tag +='<param name="bgcolor" value="'+bgc+'" />';
	flash_tag +='<param name="wmode" value="'+wmd+'" />';
	flash_tag +='<embed src="'+fnm+'" quality="high" bgcolor="'+bgc+'" FlashVars="'+fvs+'" wmode="'+wmd+'" width="'+wid+'" height="'+hei+'" name="'+fid+'" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	flash_tag +='</object>';
	
	document.write(flash_tag);
}

// Flash ¸Þ´º External Interface¿ë ½ºÅ©¸³Æ® start //

function flashResize(n, w, h) {
	thisMovie(n).width = w;
	thisMovie(n).height = h;
}
function thisMovie(movieName) {
	if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName]
	} else {
		return document[movieName]
	}
}

// Flash ¸Þ´º External Interface¿ë ½ºÅ©¸³Æ® end //