var diffY = 0;
// 퀵메뉴 스크롤
self.onError=null;
currentX = currentY = 0;  
whichIt = null;           
lastScrollX = 0; lastScrollY = 0;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;
<!-- 서브배경제어 -->
function subBgBeat() {
	if(IE) { 
			diffY = document.documentElement.scrollTop; 
			diffX = 0;
	}
	if(diffY != lastScrollY) {
		percent = diffY - lastScrollY;
		if(IE) document.all.subBgNav.style.pixelTop += percent;
		lastScrollY = lastScrollY + percent;
	}
}	
if(NS || IE) action = window.setInterval("subBgBeat()",1);

// 플래시 함수
function embededFlash(i,s,w,h,b) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0 width='+w+' height='+h+' id='+i+' align=middle>');
	document.write('<param name=allowScriptAccess value=always />');
	document.write('<param name=movie value='+s+' />');
	document.write('<param name=quality value=best />');
	document.write('<param name=bgColor value='+b+' />');
	document.write('<param name=wmode value=transparent />');
	document.write('<param name=scale value=noscale />');	
	document.write('<param name=salign value=L />');
	document.write('<embed src='+s+' quality=best bgcolor='+b+' width='+w+' height='+h+' name='+i+' wmode=transparent scale=noscale salign=L align=middle allowScriptAccess=always type=application/x-shockwave-flash pluginspage=http://www.macromedia.com/go/getflashplayer />');
	document.write('</object>');
}

// 메뉴 함수 시작

// 홈으로 가기 
function home() {
	location.href= "/index.html";
}
function sitemap() {
	location.href= "/sitemap.html";
}

function go_link(m) {
	if(m=="1") location.href= "/prologue01.html";//라플란드펜션
	else if(m=="11") location.href= "/prologue01.html";//인사말
	else if(m=="12") location.href= "/prologue02.html";//펜션서비스
	else if(m=="13") location.href= "/prologue03.html";//찾아오시는길
	else if(m=="2") location.href= "/preview01.html";//둘러보기
	else if(m=="21") location.href= "/preview01.html";//갤실보기
	else if(m=="22") location.href= "/preview02.html";//외부보기
	else if(m=="23") location.href= "/preview03.html";//부대시설
	else if(m=="3") location.href= "/special.html";//스페셜
	else if(m=="4") location.href= "/reservation01.html";//예약
	else if(m=="41") location.href= "/reservation01.html";//요금안내
	else if(m=="42") location.href= "/reservation02.html";//유의사항
	else if(m=="43") location.href= "/reservation03.html";//환불기준
	else if(m=="44") location.href= "/reservation04.html";//실시간예약
	else if(m=="5") location.href= "/tourguide01.html";//주변여행
	else if(m=="51") location.href= "/tourguide01.html";//용문산관광지
	else if(m=="52") location.href= "/tourguide02.html";//중미산관광지
	else if(m=="53") location.href= "/tourguide03.html";//양수리두물머리
	else if(m=="54") location.href= "/tourguide04.html";//세미원
	else if(m=="55") location.href= "/tourguide05.html";//대명비발디파크
	else if(m=="6") location.href= "/community01.html";//커뮤니티
	else if(m=="61") location.href= "/community01.html";//공지사항
	else if(m=="62") location.href= "/community02.html";//질문답변
	else if(m=="63") location.href= "/community03.html";//포토갤러리
	else if(m=="64") location.href= "/community04.html";//이용후기
}

function popupWindow(url, w, h) {
        var posX = (screen.width - w) / 2;
        var posY = (screen.height - h) / 2;
        var option = ",resizable=no,scrollbars=no,status=no";
        window.open(url, "new_win","width="+1000+",height="+700+",left="+posX +",top="+posY+option);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
