
function fnFlashObject(path, width, height, flashvars) {
    var m_protocol = document.location.protocol.replace(":","");
    var m_movie = path;
    var m_width = width;
    var m_height = height;
    var m_flashvars = flashvars;

    this.wmode = "transparent";
    this.id = "";
    this.quality = "high";
    this.menu = "false";
    this.allowScriptAccess = "sameDomain";

    var html;

	html ="";
    html += "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='"+ m_protocol +"://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='" + m_width + "' height='" + m_height + "'";
    if (this.id != "") html += " id='" + this.id + "'";
    html += ">";

    html += "<param name='allowScriptAccess' value='" + this.allowScriptAccess + "' />";
    html += "<param name='movie' value='" + m_movie + "' />";
    html += "<param name='menu' value='" + this.menu + "' />";
    html += "<param name='quality' value='" + this.quality + "' />";
    if (this.wmode != "") html += "<param name='wmode' value='" + this.wmode + "' />";
    if (m_flashvars != "") html += "<param name='FlashVars' value='" + m_flashvars + "' />";

    html += "<embed src='" + m_movie + "' quality='" + this.quality + "' pluginspage='"+ m_protocol +"://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + m_width + "' height='" + m_height + "'";
    html += " allowScriptAccess='" + this.allowScriptAccess + "'";
    if (this.wmode != "") html += " wmode='" + this.wmode + "'";
    if (m_flashvars != "") html += " FlashVars='" + m_flashvars + "'";
    html += " /></object>";

    document.write(html);

}

/* FULL SCREEN */

function FullScreen(theURL){ 
		var FullW;
		FullW = window.open(theURL,"FULL","Fullscreen=yes,type=Fullwindow,scrollbars=0");  
		FullW.focus();
}  

/* °´½Ç */
function accom()
{
window.open("http://www.mayfield.co.kr/nkor/Front/cyberFlash/1_accom/view.html","id","height=527,width=770,status=no,toolbar=no,menubar=no,left=150,top=190");
}

/* ·¹½ºÅä¶û */
function rest()
{
window.open("http://www.mayfield.co.kr/nkor/Front/cyberFlash/2_rest/view.html","id","height=527,width=770,status=no,toolbar=no,menubar=no,left=150,top=190");
}

/* ¿þµù */
function wedd()
{
window.open("http://www.mayfield.co.kr/nkor/Front/cyberFlash/3_wedd/view.html","id","height=527,width=770,status=no,toolbar=no,menubar=no,left=150,top=190");
}

/* ¿¬È¸ */
function ban()
{
window.open("http://www.mayfield.co.kr/nkor/Front/cyberFlash/4_ban/view.html","id","height=527,width=770,status=no,toolbar=no,menubar=no,left=150,top=190");
}

/* ÇÇÆ®´Ï½ºÅ¬·´ */
function fit()
{
window.open("http://www.mayfield.co.kr/nkor/Front/cyberFlash/5_fit/view.html","id","height=527,width=770,status=no,toolbar=no,menubar=no,left=150,top=190");
}

function Bot_Reserv() 
{
	var wid = "1024";
	var hei = "730";
	var winl = (screen.width - wid) / 2;
	var wint = (screen.height - hei) / 2 - 20;
	winprops = 'height='+hei+',width='+wid+',top='+wint+',left='+winl;
	winprops = winprops + ',menubar=yes,toolbar=yes,directories=yes,scrollbars=yes,status=yes,location=yes,resizable=yes';
	
	if(opener.ft){
		opener.location = "../reserv/room.asp";
		opener.focus();
	}else{
		var NewUpWin;
		NewUpWin = window.open("../reserv/room.asp","NewPop",winprops);
		if (parseInt(navigator.appVersion) >= 4) { NewUpWin.window.focus(); }
		NewUpWin.focus();
	}
}

/* RESERVATION SUB START*/

function Bot_Reserv_Rest() 
{
	var wid = "1024";
	var hei = "730";
	var winl = (screen.width - wid) / 2;
	var wint = (screen.height - hei) / 2 - 20;
	winprops = 'height='+hei+',width='+wid+',top='+wint+',left='+winl;
	winprops = winprops + ',menubar=yes,toolbar=yes,directories=yes,scrollbars=yes,status=yes,location=yes,resizable=yes';
	
	if(opener.ft){
		opener.location = "../reserv/restaurant.asp";
		opener.focus();
	}else{
		var NewUpWin;
		NewUpWin = window.open("../reserv/restaurant.asp","NewPop",winprops);
		if (parseInt(navigator.appVersion) >= 4) { NewUpWin.window.focus(); }
		NewUpWin.focus();
	}
}

function Bot_Reserv_Wed() 
{
	var wid = "1024";
	var hei = "730";
	var winl = (screen.width - wid) / 2;
	var wint = (screen.height - hei) / 2 - 20;
	winprops = 'height='+hei+',width='+wid+',top='+wint+',left='+winl;
	winprops = winprops + ',menubar=yes,toolbar=yes,directories=yes,scrollbars=yes,status=yes,location=yes,resizable=yes';
	
	if(opener.ft){
		opener.location = "../reserv/wedding.asp";
		opener.focus();
	}else{
		var NewUpWin;
		NewUpWin = window.open("../reserv/wedding.asp","NewPop",winprops);
		if (parseInt(navigator.appVersion) >= 4) { NewUpWin.window.focus(); }
		NewUpWin.focus();
	}
}

function Bot_Reserv_Banquet() 
{
	var wid = "1024";
	var hei = "730";
	var winl = (screen.width - wid) / 2;
	var wint = (screen.height - hei) / 2 - 20;
	winprops = 'height='+hei+',width='+wid+',top='+wint+',left='+winl;
	winprops = winprops + ',menubar=yes,toolbar=yes,directories=yes,scrollbars=yes,status=yes,location=yes,resizable=yes';
	
	if(opener.ft){
		opener.location = "../reserv/banquet.asp";
		opener.focus();
	}else{
		var NewUpWin;
		NewUpWin = window.open("../reserv/banquet.asp","NewPop",winprops);
		if (parseInt(navigator.appVersion) >= 4) { NewUpWin.window.focus(); }
		NewUpWin.focus();
	}
}

function Bot_Reserv_Spa() 
{
	var wid = "1024";
	var hei = "730";
	var winl = (screen.width - wid) / 2;
	var wint = (screen.height - hei) / 2 - 20;
	winprops = 'height='+hei+',width='+wid+',top='+wint+',left='+winl;
	winprops = winprops + ',menubar=yes,toolbar=yes,directories=yes,scrollbars=yes,status=yes,location=yes,resizable=yes';
	
	if(opener.ft){
		opener.location = "../reserv/spa.asp";
		opener.focus();
	}else{
		var NewUpWin;
		NewUpWin = window.open("../reserv/spa.asp","NewPop",winprops);
		if (parseInt(navigator.appVersion) >= 4) { NewUpWin.window.focus(); }
		NewUpWin.focus();
	}
}

/* RESERVATION SUB END*/


function Bot_Main() 
{
	var wid = "1024";
	var hei = "730";
	var winl = (screen.width - wid) / 2;
	var wint = (screen.height - hei) / 2 - 20;
	winprops = 'height='+hei+',width='+wid+',top='+wint+',left='+winl;
	winprops = winprops + ',menubar=yes,toolbar=yes,directories=yes,scrollbars=yes,status=yes,location=yes,resizable=yes';
	
	if(opener.ft){
		opener.location = "../index.asp";
		opener.focus();
	}else{
		var NewUpWin;
		NewUpWin = window.open("../index.asp","NewPop",winprops);
		if (parseInt(navigator.appVersion) >= 4) { NewUpWin.window.focus(); }
		NewUpWin.focus();
	}
}




function Bot_About() 
{
	var wid = "1024";
	var hei = "730";
	var winl = (screen.width - wid) / 2;
	var wint = (screen.height - hei) / 2 - 20;
	winprops = 'height='+hei+',width='+wid+',top='+wint+',left='+winl;
	winprops = winprops + ',menubar=yes,toolbar=yes,directories=yes,scrollbars=yes,status=yes,location=yes,resizable=yes';
	
	if(opener.ft){
		opener.location = "../about/about.asp";
		opener.focus();
	}else{
		var NewUpWin;
		NewUpWin = window.open("../about/about.asp","NewPop",winprops);
		if (parseInt(navigator.appVersion) >= 4) { NewUpWin.window.focus(); }
		NewUpWin.focus();
	}
}

function Bot_Map() 
{
	var wid = "1024";
	var hei = "730";
	var winl = (screen.width - wid) / 2;
	var wint = (screen.height - hei) / 2 - 20;
	winprops = 'height='+hei+',width='+wid+',top='+wint+',left='+winl;
	winprops = winprops + ',menubar=yes,toolbar=yes,directories=yes,scrollbars=yes,status=yes,location=yes,resizable=yes';
	
	if(opener.ft){
		opener.location = "../map/map.asp";
		opener.focus();
	}else{
		var NewUpWin;
		NewUpWin = window.open("../map/map.asp","NewPop",winprops);
		if (parseInt(navigator.appVersion) >= 4) { NewUpWin.window.focus(); }
		NewUpWin.focus();
	}
}


function Bot_Package() 
{
	var wid = "1024";
	var hei = "730";
	var winl = (screen.width - wid) / 2;
	var wint = (screen.height - hei) / 2 - 20;
	winprops = 'height='+hei+',width='+wid+',top='+wint+',left='+winl;
	winprops = winprops + ',menubar=yes,toolbar=yes,directories=yes,scrollbars=yes,status=yes,location=yes,resizable=yes';
	
	if(opener.ft){
		opener.location = "../special/package.asp";
		opener.focus();
	}else{
		var NewUpWin;
		NewUpWin = window.open("../special/package.asp","NewPop",winprops);
		if (parseInt(navigator.appVersion) >= 4) { NewUpWin.window.focus(); }
		NewUpWin.focus();
	}
}


function Bot_Ship() 
{
	var wid = "1024";
	var hei = "730";
	var winl = (screen.width - wid) / 2;
	var wint = (screen.height - hei) / 2 - 20;
	winprops = 'height='+hei+',width='+wid+',top='+wint+',left='+winl;
	winprops = winprops + ',menubar=yes,toolbar=yes,directories=yes,scrollbars=yes,status=yes,location=yes,resizable=yes';
	
	if(opener.ft){
		opener.location = "../membership/fitness.asp";
		opener.focus();
	}else{
		var NewUpWin;
		NewUpWin = window.open("../membership/fitness.asp","NewPop",winprops);
		if (parseInt(navigator.appVersion) >= 4) { NewUpWin.window.focus(); }
		NewUpWin.focus();
	}
}

function Bot_Cs() 
{
	var wid = "1024";
	var hei = "730";
	var winl = (screen.width - wid) / 2;
	var wint = (screen.height - hei) / 2 - 20;
	winprops = 'height='+hei+',width='+wid+',top='+wint+',left='+winl;
	winprops = winprops + ',menubar=yes,toolbar=yes,directories=yes,scrollbars=yes,status=yes,location=yes,resizable=yes';
	
	if(opener.ft){
		opener.location = "../cs/request.asp";
		opener.focus();
	}else{
		var NewUpWin;
		NewUpWin = window.open("../cs/request.asp","NewPop",winprops);
		if (parseInt(navigator.appVersion) >= 4) { NewUpWin.window.focus(); }
		NewUpWin.focus();
	}
}

function Bot_Cs_kor() 
{
	var wid = "1024";
	var hei = "730";
	var winl = (screen.width - wid) / 2;
	var wint = (screen.height - hei) / 2 - 20;
	winprops = 'height='+hei+',width='+wid+',top='+wint+',left='+winl;
	winprops = winprops + ',menubar=yes,toolbar=yes,directories=yes,scrollbars=yes,status=yes,location=yes,resizable=yes';
	
	if(opener.ft){
		opener.location = "../cs/faq.asp";
		opener.focus();
	}else{
		var NewUpWin;
		NewUpWin = window.open("../cs/faq.asp","NewPop",winprops);
		if (parseInt(navigator.appVersion) >= 4) { NewUpWin.window.focus(); }
		NewUpWin.focus();
	}
}

function Bot_Recruit() 
{
	var wid = "1024";
	var hei = "730";
	var winl = (screen.width - wid) / 2;
	var wint = (screen.height - hei) / 2 - 20;
	winprops = 'height='+hei+',width='+wid+',top='+wint+',left='+winl;
	winprops = winprops + ',menubar=yes,toolbar=yes,directories=yes,scrollbars=yes,status=yes,location=yes,resizable=yes';
	
	if(opener.ft){
		opener.location = "../recruit/rnotice.asp";
		opener.focus();
	}else{
		var NewUpWin;
		NewUpWin = window.open("../recruit/rnotice.asp","NewPop",winprops);
		if (parseInt(navigator.appVersion) >= 4) { NewUpWin.window.focus(); }
		NewUpWin.focus();
	}
}



var page,wid,hit,nam;
function win(page,nam,wid,hit){
var  windo=eval('window.open("'+page+'","'+nam+'","status=no,toolbar=no,resizable=no,scrollbars=no,menubar=no,width='+wid+',height='+hit+',top=10,left=10")');
windo.focus();
  }
  
  function winscroll(page,nam,wid,hit){
var  windo=eval('window.open("'+page+'","'+nam+'","status=no,toolbar=no,resizable=no,scrollbars=yes,menubar=no,width='+wid+',height='+hit+',top=100,left=100")');
windo.focus();
  }


