
// JavaScript Document

function index_main() {	
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='653' height='372'>");
	document.write("<param name='movie' value='./flash/main_flash_bnw.swf'>");
	document.write("<param name='quality' value='high'>");
	document.write("<embed src='./flash/main_flash.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='653' height='372'></embed>");
	document.write("</object>");
}

function main_menu() {	
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='544' height='85'>");
	document.write("<param name='movie' value='./flash/main_menu.swf'>");
	document.write("<param name='quality' value='high'>");
	document.write("<param name='wmode' value='transparent'>");
	document.write("<embed src='./flash/main_menu.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='544' height='85'></embed>");
	document.write("</object>");
}

function top_menu() {	
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='578' height='85'>");
	document.write("<param name='movie' value='./flash/menu.swf'>");
	document.write("<param name='quality' value='high'>");
	document.write("<param name='wmode' value='transparent'>");
	document.write("<embed src='./flash/menu.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='578' height='85'></embed>");
	document.write("</object>");
}

function map_korea() {	
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='286' height='376'>");
	document.write("<param name='movie' value='./flash/map.swf'>");
	document.write("<param name='quality' value='high'>");
	document.write("<embed src='./flash/map.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='286' height='376'></embed>");
	document.write("</object>");
}

///////////////////// ½ºÅ©·Ñ//////////////////////////

self.onError=null;
currentX = currentY = 0; 
whichIt = null; 
lastScrollX = 0; lastScrollY = 0;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;

function heartBeat() {
	if(IE) { 
		diffY = document.documentElement.scrollTop; 
		diffX = 0; 
	}
	if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
	if(diffY != lastScrollY) {
		percent = .1 * (diffY - lastScrollY);
		if(percent > 0) {
			percent = Math.ceil(percent);
		} else {
			percent = Math.floor(percent);
		}
		if(IE) document.all.floater.style.pixelTop += percent;
		if(NS) document.floater.top += percent; 
		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.all.floater.style.pixelLeft += percent;
		if(NS) document.floater.top += percent;
		lastScrollY = lastScrollY + percent;
	} 
} 

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

///////////////////// ½ºÅ©·Ñ//////////////////////////
