
/* ÀÎµ¦½º */
NK000000 = new Array("","/main.jsp	","Home");
NF000000 = new Array("","/eng/main.jsp	","Home");

NF010000 = new Array("","/eng/rainbow/introduce.jsp","");
NF010100 = new Array("","/eng/rainbow/introduce.jsp","");
NF010200 = new Array("","/eng/rainbow/ci.jsp","");
NF010300 = new Array("","/eng/rainbow/greeting.jsp","");



NF020000 = new Array("","/eng/course/overview.jsp","");
NF020100 = new Array("","/eng/course/overview.jsp","");
NF020200 = new Array("","/eng/course/philosophy.jsp","");
NF020300 = new Array("","/eng/course/coursemain.jsp","");
NF020400 = new Array("","/eng/course/south1.jsp","");
NF020500 = new Array("","/eng/course/east1.jsp","");
NF020600 = new Array("","/eng/course/west1.jsp","");

	

NF030000 = new Array("","/eng/facilities/clubhouse.jsp","");
NF030100 = new Array("","/eng/facilities/clubhouse.jsp","");
NF030200 = new Array("","/eng/facilities/restaurant.jsp","");
NF030300 = new Array("","/eng/facilities/viplounge.jsp","");
NF030400 = new Array("ing","/eng/facilities/meetinghall_ladies.jsp","");
NF030500 = new Array("","/eng/facilities/meetinghall.jsp","");
NF030600 = new Array("","/eng/facilities/wetarea.jsp","");
NF030700 = new Array("","/eng/facilities/privatedining.jsp","");
NF030800 = new Array("","/eng/facilities/proshop.jsp","");

	

NF040000 = new Array("","/eng/access/contact.jsp","");
NF040100 = new Array("","/eng/access/contact.jsp","");
NF040200 = new Array("","/eng/access/location.jsp","");



NF050000 = new Array("","/eng/siteguide/sitemap.jsp","");
NF050100 = new Array("","/eng/siteguide/sitemap.jsp","");




/*¸Þ´º ÇÃ·¡½Ã ¸µÅ©*/
function swfLink(code) {
//	alert(code); //0-1-0
	code = code.replace(/^\s+/, "");  // ¿ÞÂÊ °ø¹é Á¦°Å
	code = code.replace(/\s+$/g, "");  //¿À¸¥ÂÊ °ø¹é Á¦°Å

	if (code=="9-9-9") {
		name="NF000000";
	} else if (code=="8-8-8") {
		name="NK000000";
	} else {
		menu=code.split("-");

		page = parseInt(menu[0]) + 1
		if (parseInt(menu[2])==0) {
			tab=0;
			if (parseInt(menu[1])==0) sub=0;
			else sub = parseInt(menu[1]) + 1
		} else {
			tab = parseInt(menu[2]) + 1
			sub = parseInt(menu[1]) + 1
		}

		name="NF0"+page+"0"+sub+"0"+tab;
	}
//	alert(name);

	if (eval(name)[1] =="") {
		 alert("ÁØºñÁßÀÔ´Ï´Ù.");
		return;
	} else {
		if (eval(name)[0] == "" || eval(name)[0] == "tab") {
			location.href = eval(name)[1];
		}else if(eval(name)[0] == "blank"){
			window.open(eval(name)[1], "_blank");
		}else if(eval(name)[0] == "top"){
			top.location.href = eval(name)[1];
		}else if(eval(name)[0] == "ing"){
		 alert("coming soon.");
		return;
		}
	}
}


function initTabMenu(tabContainerID) {
	var tabContainer = document.getElementById(tabContainerID);
	var tabAnchor = tabContainer.getElementsByTagName("a");
	var i = 0;

	for(i=0; i<tabAnchor.length; i++) {
		if (tabAnchor.item(i).className == "tab")
			thismenu = tabAnchor.item(i);
		else
			continue;

		thismenu.container = tabContainer;
		thismenu.targetEl = document.getElementById(tabAnchor.item(i).href.split("#")[1]);
		thismenu.targetEl.style.display = "none";
		thismenu.imgEl = thismenu.getElementsByTagName("img").item(0);
		thismenu.onclick = function tabMenuClick() {
			currentmenu = this.container.current;
			if (currentmenu == this)
				return false;

			if (currentmenu) {
				currentmenu.targetEl.style.display = "none";
				if (currentmenu.imgEl) {
					currentmenu.imgEl.src = currentmenu.imgEl.src.replace("_over.gif", ".gif");
				} else {
					currentmenu.className = currentmenu.className.replace("_over", "");
				}
			}
			this.targetEl.style.display = "";
			if (this.imgEl) {
				this.imgEl.src = this.imgEl.src.replace(".gif", "_over.gif");
			} else {
				this.className += " on";
			}
			this.container.current = this;

			return false;
		};

		if (!thismenu.container.first)
			thismenu.container.first = thismenu;
	}
	if (tabContainer.first)
		tabContainer.first.onclick();
}

function sub(str,w,h){
	document.write("<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='"+w+"' height='"+h+"' id='topMenu' align='middle'>");
	document.write("<param name='allowScriptAccess' value='sameDomain' />");
	document.write("<param name='allowFullScreen' value='false' />");
	document.write("<param name='movie' value='"+str+"' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='wmode' value='transparent' />");
	document.write("<param name='bgcolor' value='#ffffff' />");
	document.write("<embed src='"+str+"' quality='high' wmode='transparent' bgcolor='#ffffff' width='"+w+"' height='"+h+"' name='topMenu' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}

function SWFLoader() {
	this.id = "";
	this.title = undefined;
	this.wmode = "window";
	this.flashvars = "";
	this.classId = 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000';
	this.codeBase = 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0';
	this.pluginSpage = 'http://www.macromedia.com/go/getflashplayer';
	this.embedType = 'application/x-shockwave-flash';
}
SWFLoader.prototype.setting = function(obj){
	for(var property in obj){
		this[property] = obj[property];
	}
	if(this.alternate && document.getElementById(this.alternate)){
		var node = document.getElementById(this.alternate);
		node.style.display = "none";
		var tmp = node.cloneNode(true);
		tmp = node.innerHTML;
		this.alternate = tmp;
	}
	this.parameter = "";
	this.parameter += "<param name='allowScriptAccess' value='always' />";
	this.parameter += "<param name='allowFullScreen' value='false' />";
	this.parameter += "<param name='movie' value='"+this.url+this.flashvars+"' />";
	this.parameter += "<param name='wmode' value='"+ this.wmode +"' />";
	this.parameter += "<param name='quality' value='best' />";
	this.parameter += "<param name='base' value='.' />";
	this.parameter += "<param name='scale' value='noscale' />";
	this.parameter += "<param name='expressinstall' value='Scripts/expressInstall.swf' />";
}
SWFLoader.prototype.addParameter = function(name, value){
	this.parameter += "<param name='"+name+"' value='"+value+"' />";
}
SWFLoader.prototype.show = function(){
	var str = "";
	var title = (this.title) ? ' title="'+this.title+'"' : "";
	str += '<object id="'+this.id+'" width="'+this.width+'" height="'+this.height+'" classid="'+this.classId+'" codebase="'+this.codeBase+'"'+ title+'>';
		str += this.parameter;
		str += '<!--[if !IE]>-->';
		str += '<object type="application/x-shockwave-flash" data="'+this.url+this.flashvars+'" width="'+this.width+'" height="'+this.height+'" name="'+this.id+'"'+ title +'>';
		str += this.parameter;
		str += '<!--<![endif]-->';
			str += this.alternate // ´ëÃ¼ÅÃ½ºÆ®
		str += '<!--[if !IE]>-->';
		str += '</object>';
		str += '<!--<![endif]-->';
	str += '</object>';
	document.write(str);
}


