//<script language="JavaScript">Flash('ID','URL','100','100','opaque');</script>
// url: source url
// w: source width
// h: source height
// id: flash id
// t: wmode (none/transparent/opaque)
function Flash(id,url,w,h,t,mode){
	document.write("\
	<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+">\
	<param name='movie' value="+url+"?buttonMode="+mode+" />\
	<param name='wmode' value="+t+" />\
	<param name='allowScriptAccess' value='always' />\
	<param name='quality' value='high' />\
	<param name='menu' value='false' />\
	<embed src="+url+" width="+w+" height="+h+" name="+id+" allowScriptAccess='always' quality='high' swliveconnect='true' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />\
	</object>\
	");
}

function look(){ 
window.open('/look.html','look', 'fullscreen=yes,type=fullWindow,toolbar=no,scrollbars=no'); 
}

function link_sub_01_01(){
	location='/sub_01_01.html';
}
function link_sub_01_02(){
	location='/sub_01_02.html';
}
function link_sub_01_03(){
	location='/sub_01_03.html';
}
function link_sub_01_04(){
	location='/sub_01_04.html';
}
function link_sub_01_05(){
	location='/sub_01_05.html';
}
function link_sub_01_06(){
	location='/enq/enq.html';
}
function link_sub_01_07(){
	location='/sub_01_07.html';
}
function link_sub_02_01(){
	location='/sub_02_01.html';
}
function link_sub_02_02(){
	location='/sub_02_07.html';
}
function link_sub_02_03(){
	location='/sub_02_13.html';
}
function link_sub_02_04(){
	location='/sub_02_17.html';
}
function link_sub_02_05(){
	location='/sub_02_20.html';
}
function link_sub_02_06(){
	location='/sub_02_21.html';
}
function link_sub_02_07(){
	location='/sub_02_22.html';
}
function link_sub_03_01(){
	location='/sub_03_01.html';
}
function link_sub_03_02(){
	location='/sub_03_04.html';
}
function link_sub_03_03(){
	location='/sub_03_05.html';
}
function link_sub_03_04(){
	location='/sub_03_06.html';
}
function link_sub_03_05(){
	location='/sub_03_07.html';
}
function link_sub_04_01(){
	location='/zb/list.php?boardid=zb_gallery';
}
function link_sub_05_01(){
	location='/sub_05_01.html';
}
function link_sub_05_02(){
	location='/sub_05_02.html';
}
function link_sub_05_03(){
	location='/sub_05_03.html';
}
function link_sub_05_04(){
	location='/sub_05_04.html';
}
function link_sub_05_05(){
	location='/sub_05_05.html';
}
function link_sub_06_01(){
	location='/zb/list.php?boardid=zb_notice';
}
function link_sub_06_02(){
	location='/zb/list.php?boardid=zb_news';
}
function link_sub_06_03(){
	location='/zb/list.php?boardid=zb_qna';
}
function link_sub_06_04(){
	location='/sub_06_02.html';
}
//<div id="divQuick" style="left: 930px; top: 210px;"><script language="JavaScript">Flash('main','/swf/quickmenu.swf','66','336','transparent','KR10');</script></div>


self.onError=null;
var currentX = 0;
var currentY = 0;  
var whichIt = null;           
var lastScrollX = 0; 
var lastScrollY = 0;

var IE = (navigator.appName == "Microsoft Internet Explorer") ? true : false;
var NS = (navigator.appName == "Netscape") ? true : false;



/* STALKER CODE */
function heartBeat() {


	//try{

		if(IE) { 
			// ie 6


			if(document.documentElement && document.documentElement.scrollTop){
				diffY = document.documentElement.scrollTop; 
			} else if(document.body){
				diffY = document.body.scrollTop; 
			} else {
				diffY = 0;
			}

		

			
			diffX = 0; 
		}
		if(NS) { 
			diffY = self.pageYOffset; 
			diffX = 0; 
		}
		if(diffY != lastScrollY) {
			percent = .1 * (diffY - lastScrollY);
			if(percent > 0) percent = Math.ceil(percent);
			else percent = Math.floor(percent);
			if(IE){
				document.getElementById('divQuick').style.pixelTop += percent;
			}
			
			if(NS){
				var tmpTop	=	document.getElementById('divQuick').style.top;
				tmpTop	=	tmpTop.replace('px','');
				document.getElementById('divQuick').style.top = parseInt(tmpTop)+percent+'px'; 
			}
			

			lastScrollY = lastScrollY + percent; 
		}
		
		
		if(diffX != lastScrollX) {
			percent = .1 * (diffX - lastScrollX);
			if(percent > 0) percent = Math.ceil(percent);
			else percent = Math.floor(percent);
			if(IE) document.getElementById('divQuick').style.pixelLeft += percent;
			if(NS){
				var tmpLeft	=	document.getElementById('divQuick').style.left;
				tmpLeft	=	tmpLeft.replace('px','');
				document.getElementById('divQuick').style.left = parseInt(tmpLeft)+percent+'px'; 
			}
			lastScrollX = lastScrollX + percent;
		}	
		

 
	//}catch(e){}
}	

if(NS || IE) action = window.setInterval("heartBeat()",1); 
