function gomenu(num){

	var num;

	//º¸´Ï¶Ç¸®Á¶Æ®
	if (num == 11)	{location.href="/menu-1/sub.php?sub=1";}//º¸´Ï¶Ç¾ÆÀÏ·£µå
	if (num == 12)	{location.href="/menu-1/sub.php?sub=2";}//º¸´Ï¶Ç¸®Á¶Æ®´ÙÀÌºù
	if (num == 13)	{location.href="/menu-1/sub.php?sub=3";}//º¸´Ï¶Ç¾ÆÀÏ·£µåÁñ±â±â
	if (num == 14)	{location.href="/bbs/zboard.php?id=pBoard";}//º¸µµÀÚ·á

	//¸®ºê¾îº¸µå
	if (num == 21)	{location.href="/menu-2/sub.php?sub=1";}//¸®ºê¾îº¸µå»ó½Ä
	if (num == 212)	{location.href="/menu-2/sub.php?sub=12";}//¸®ºê¾îº¸µå»ó½Ä
	if (num == 213)	{location.href="/menu-2/sub.php?sub=13";}//¸®ºê¾îº¸µå»ó½Ä
	if (num == 214)	{location.href="/menu-2/sub.php?sub=14";}//¸®ºê¾îº¸µå»ó½Ä
	if (num == 215)	{location.href="/menu-2/sub.php?sub=15";}//¸®ºê¾îº¸µå»ó½Ä
	if (num == 216)	{location.href="/menu-2/sub.php?sub=16";}//¸®ºê¾îº¸µå»ó½Ä
	if (num == 22)	{location.href="/menu-2/sub.php?sub=2";}//º¸´Ïµû½Ã¼³¹×Á¦¿ø
	if (num == 23)	{location.href="javascript:alert('ÀÛ¾÷ÁßÀÔ´Ï´Ù. °ð Ã£¾ÆºË°Ú½À´Ï´Ù.')";}//
	//if (num == 23)	{location.href="/menu-2/sub.php?sub=3";}//º¸´ÏµûµÑ·¯º¸±â
	if (num == 24)	{location.href="/menu-2/sub.php?sub=4";}//º¸´ÏµûÀÌ¿ë¹æ¹ý

	//Åõ¾îÇÁ·Î±×·¥
	if (num == 31)	{location.href="/menu-3/sub.php?sub=1";}//½ºÄí¹ö´ÙÀÌºùÅõ¾î
	if (num == 32)	{location.href="/menu-3/sub.php?sub=2";}//·¹ÀúÅõ¾î
	if (num == 33)	{location.href="/menu-3/sub.php?sub=3";}//½ã´õºíÅõ¾î
	if (num == 34)	{location.href="/menu-3/sub.php?sub=4";}//ÇÃ¶óÆ¼´½¿ÀÇÂ¿öÅÍ

	//´ÙÀÌºùÆ÷ÀÎÆ®
	if (num == 41)	{location.href="/menu-4/sub.php?sub=1";}//´ÙÀÌºùÆ÷ÀÎÆ®
	if (num == 42)	{location.href="/menu-4/sub.php?sub=2";}//º¸´Ï¶Ç¾ÆÀÏ·£µå
	if (num == 43)	{location.href="/menu-4/sub.php?sub=3";}//¾Æ´Ò¶ó¿À
	if (num == 44)	{location.href="/menu-4/sub.php?sub=4";}//»ç¹æ/Çª¿¡¸£Åä°¥·¹¶ó
	if (num == 45)	{location.href="/menu-4/sub.php?sub=5";}//º£¸£µ¥¾ÆÀÏ·£µå

	//Æ®·¡ºíÀÎÆ÷
	if (num == 51)	{location.href="/menu-5/sub.php?sub=1";}//ÇÊ¸®ÇÉÀº
	if (num == 52)	{location.href="/menu-5/sub.php?sub=2";}//¿©ÇàÁ¤º¸
	if (num == 53)	{location.href="/menu-5/sub.php?sub=3";}//ÃâÀÔ±¹¾È³»
	if (num == 54)	{location.href="/menu-5/sub.php?sub=4";}//ÁÖ¿ä°ü±¤Áö

	//SSI±³À°½Ã½ºÅÛ
	if (num == 61)	{location.href="/menu-6/sub.php?sub=1";}//·¹º§º°±³À°½Ã½ºÅÛ
	if (num == 62)	{location.href="/menu-6/sub.php?sub=2";}//´ÙÀÌ¹ö±³À°½Ã½ºÅÛ
	if (num == 63)	{location.href="/menu-6/sub.php?sub=3";}//°­»ç±³À°½Ã½ºÅÛ
	if (num == 64)	{location.href="/menu-6/sub.php?sub=4";}//ÇÃ·¡Æ¼³ÑÇÁ·Î±×·¥

	//SSIÄÃ¸®ÁöÇÁ·Î±×·¥
	if (num == 71)	{location.href="/menu-7/sub.php?sub=1";}//SSIÄÃ¸®Áö´Â
	if (num == 72)	{location.href="/menu-7/sub.php?sub=2";}//´ÙÀÌ¹ö±³À°°úÁ¤
	if (num == 73)	{location.href="/menu-7/sub.php?sub=3";}//°­»ç±³À°°úÁ¤
	if (num == 74)	{location.href="/menu-7/sub.php?sub=4";}//´ÙÀÌ¹ö¿¬¼Ó±³À°°úÁ¤

	//
	if (num == 100)	{location.href="/main/main.php";}//È¨
	if (num == 101)	{location.href="/about/about.php";}//È¸»ç¼Ò°³
	if (num == 102)	{location.href="/bbs/zboard.php?id=mBoard";}//µ¿¿µ»ó
	if (num == 103)	{location.href="/bbs/zboard.php?id=nBoard";}//°øÁö»çÇ×
	if (num == 104)	{  window.open('http://www.ssicollege.com/bbs3/zboard.php?id=fBoard','','');}//SSIÀÚÀ¯°Ô½ÃÆÇ¹Ù·Î°¡±â
	//if (num == 104)	{location.href="/bbs/zboard.php?id=fBoard";}//ÀÚÀ¯°Ô½ÃÆÇ
	if (num == 105)	{  window.open('http://www.ssicollege.com/','','');}//SSIÄÃ¸®Áö¹Ù·Î°¡±â
	if (num == 106)	{  window.open('http://bonitoislandresort.com/main.html','','');}//º¸´Ï¶Ç ¿µ¹®»çÀÌÆ®
	if (num == 107)	{location.href="/bbs/view.php?id=pBoard&no=11";}


	if (num == 901){  window.open('http://www.bonitoresort.com','','');}
	if (num == 902){  window.open('http://www.aquagarden.com.ph','','');}
	if (num == 903){  window.open('http://www.songscuba.com','','');}
	if (num == 904){  window.open('http://www.philleisure.com/','','');}
	if (num == 905){  window.open('http://www.ssicheonan.com/','','');}
	if (num == 906){  window.open('http://www.ssijeju.com/','','');}
	if (num == 907){  window.open('http://www.mosresort.com/','','');}
	if (num == 908){  window.open('http://www.unoscuba.com/','','');}
	if (num == 909){  window.open('http://www.ssicollege.com/','','');}
	if (num == 910){  window.open('http://www.ssicollege.com/','','');}
	if (num == 911){  window.open('http://www.bidsclub.net/','','');}
	if (num == 912){  window.open('http://www.fullhouseresort.com/','','');}

	//
	//if (num == 200)	{location.href="javascript:alert('ÀÛ¾÷ÁßÀÔ´Ï´Ù. °ð Ã£¾ÆºË°Ú½À´Ï´Ù.')";}//

}

//¸µÅ©¿¡ Á¡¼± ¾ø¾Ö´Â ¼Ò½º
function bluring(){ 
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") 
	document.body.focus(); 
} 
document.onfocusin=bluring;

function showhide(what){ 
	if (what.style.display=='none'){ 
		what.style.display=''; 
	}else{
		what.style.display='none' 
	} 
}

//³»¿ëº¸±â
function img_act(imgName) {
	document [imgName].src = eval(imgName + "on.src");
}

function img_inact(imgName) {
	document [imgName].src = eval(imgName + "off.src");
}

//µû¶ó´Ù´Ï´Â Å¾¹öÆ°

self.onError=null;
currentX = currentY = 0;  
whichIt = null;
lastScrollX = 0; lastScrollY = 0;
action = window.setInterval("heartBeat()",1);


function heartBeat() 
{

// combowidth=layer_right_bottom.offsetWidth
// comboheight=layer_right_bottom.offsetHeight

	diffY = document.body.scrollTop; 
	diffX = 0; 
	if (diffY != lastScrollY) {
			percent = .2 * (diffY - lastScrollY);
			if (percent > 0) {
					percent = Math.ceil(percent);
			} else {
					percent = Math.floor(percent);
			}
                document.all.layer_right.style.pixelTop += percent;
//                document.all.layer_right_bottom.style.pixelTop = document.body.scrollTop+document.body.clientHeight-comboheight+percent-50;
                lastScrollY = lastScrollY + percent;
	}
	if (diffX != lastScrollX) {
			percent = .2 * (diffX - lastScrollX);
			if (percent > 0) {
					percent = Math.ceil(percent);
			} else {
					percent = Math.floor(percent);
			}
			document.all.layer_right.style.pixelLeft += percent;
//                document.all.layer_right_bottom.style.pixelLeft += percent;
			lastScrollY = lastScrollY + percent;
	}        
}        
//-->

// flashWrite(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î, ¾ÆÀÌµð, ¹è°æ»ö, º¯¼ö, À©µµ¿ì¸ðµå)
function flashWrite(url,w,h,id,bg,vars,win){

	// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
	var flashStr=
	'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+w+'" height="'+h+'" id="'+id+'" align="middle">'+
	'<param name="allowScriptAccess" value="sameDomain" />'+
	'<param name="movie" value="'+url+'" />'+
	'<param name="FlashVars" value="'+vars+'" />'+
	'<param name="wmode" value="'+win+'" />'+
	'<param name="menu" value="false" />'+
	'<param name="quality" value="high" />'+
	'<param name="bgcolor" value="'+bg+'" />'+
	'<embed src="'+url+'" FlashVars="'+vars+'" wmode="'+win+'" menu="false" quality="high" bgcolor="'+bg+'" width="'+w+'" height="'+h+'" name="'+id+'" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'+
	'</object>';

	// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
	document.write(flashStr);

}
