<!--
function common_Event() { 
	if(event.ctrlKey == true || event.ctrlLeft == true){ 
		alert("º» ÆäÀÌÁöÀÇ ÀúÀÛ±ÇÀº »ï¼ºÀÎ·Â°³¹ß¿ø¿¡ ÀÖ½À´Ï´Ù. ¹«´Ü º¹Á¦¸¦ ±ÝÇÕ´Ï´Ù."); 
		return; 
	} 
}
function common_Returnfalse(){
	return false;
}
document.onclick 	= common_Event; 
document.ondblclick 	= common_Event; 
document.onkeydown 	= common_Event; 
document.onkeypress 	= common_Event; 
document.onkeyup 	= common_Event; 
document.onmousedown    = common_Event; 
document.onmousesetup   = common_Event; 
document.oncontextmenu = common_Returnfalse;
document.onselectstart = common_Returnfalse;
document.ondragstart = common_Returnfalse;

function topFlash(){
	document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"661\" height=\"110\" id=\"global menu\" align=\"middle\">");
	document.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
	document.write("<param name=\"movie\" value=\"images/global_menu.swf?route=0\">");
	document.write("<param name=\"quality\" value=\"best\" />");
	document.write("<param name=\"bgcolor\" value=\"#ffffff\" />");
	document.write("<embed src=\"images/global_menu.swf?route=0\" quality=\"best\" bgcolor=\"#ffffff\" width=\"661\" height=\"110\" name=\"global menu\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
	document.write("</object>");
}

function etopFlash(){
	document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"661\" height=\"110\" id=\"global menu\" align=\"middle\">");
	document.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
	document.write("<param name=\"movie\" value=\"images/eglobal_menu.swf?route=0\">");
	document.write("<param name=\"quality\" value=\"best\" />");
	document.write("<param name=\"bgcolor\" value=\"#ffffff\" />");
	document.write("<embed src=\"images/eglobal_menu.swf?route=0\" quality=\"best\" bgcolor=\"#ffffff\" width=\"661\" height=\"110\" name=\"global menu\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
	document.write("</object>");
}

function mainFlash(){
	document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"860\" height=\"460\" id=\"main05\" align=\"middle\">");
	document.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
	document.write("<param name=\"movie\" value=\"images/main.swf\" />");
	document.write("<param name=\"quality\" value=\"high\" />");
	document.write("<param name=\"bgcolor\" value=\"#ffffff\" />");
	document.write("<embed src=\"images/emain.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"860\" height=\"460\" name=\"main05\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
	document.write("</object>");	
}
function emainFlash(){
	document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"860\" height=\"460\" id=\"main05\" align=\"middle\">");
	document.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
	document.write("<param name=\"movie\" value=\"images/emain.swf\" />");
	document.write("<param name=\"quality\" value=\"high\" />");
	document.write("<param name=\"bgcolor\" value=\"#ffffff\" />");
	document.write("<embed src=\"images/emain.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"860\" height=\"460\" name=\"main05\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
	document.write("</object>");	
}

function subFlash(id){
	document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"878\" height=\"164\">");
	document.write("<param name=\"movie\" value=\"images/sub_image"+id+".swf\">");
	document.write("<param name=\"quality\" value=\"high\">");
	document.write("<param name=\"bgcolor\" value=\"#FFFFFF\">");
	document.write("<embed name=\"Sub»ó´ÜÀÌ¹ÌÁö\" src=\"images/sub_image1.swf\" width=\"878\" height=\"164\" quality=\"high\" bgcolor=\"#FFFFFF\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\">");
	document.write("</object>");
}
var winVideo;
function openVideo(url, width, height){
	var stat = "width="+width+", height="+height+", menubars=no, status=yes";
	winVideo = window.open(url,"winVideo",stat);
	winVideo.focus();
}
 function gotop(){
  document.body.scrollTop=0;
}
var paramInfo = new Array;
function initParam()
{
  var oldSize = paramInfo.length;

	for (var i=0; i<oldSize; i++) {
		paramInfo.length--;
	}	
}

function setParam(paramName, paramValue)
{
	var idx = paramInfo.length;

	paramInfo[idx] = [];
	paramInfo[idx][0] = paramName;  
	paramInfo[idx][1]= paramValue;
}

function playMedia(objID, objSource, objWidth, objHeight, objStyle)
{
	document.write('<OBJECT id="' + objID + '" name="' + objID + '" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" ');
	document.write('WIDTH="' + objWidth + '" HEIGHT="' + objHeight + '" ' + objStyle + '>');

	for (var i=0; i<paramInfo.length; i++) {
		document.write('<PARAM NAME="' + paramInfo[i][0] + '" VALUE="'+ paramInfo[i][1] +'">');		
	}	
	
	document.write('</OBJECT>');
}

function mplay(){ //PLAY
  document.getElementById('mdefault').style.display='block';
  document.getElementById('mplayer').play();
  MM_swapImage('Image15','','images/vid_pla_on.gif',0);
  MM_swapImage('Image16','','images/vid_pau_off.gif',0);
  MM_swapImage('Image17','','images/vid_sto_off.gif',0)
}
function mpause(){ //PAUSE
  document.getElementById('mplayer').pause();
  MM_swapImage('Image15','','images/vid_pla_off.gif',0);
  MM_swapImage('Image16','','images/vid_pau_on.gif',0);
  MM_swapImage('Image17','','images/vid_sto_off.gif',0)
}
function mstop(){ //STOP
  document.getElementById('mplayer').stop();
  MM_swapImage('Image15','','images/vid_pla_off.gif',0);
  MM_swapImage('Image16','','images/vid_pau_off.gif',0);
  MM_swapImage('Image17','','images/vid_sto_on.gif',0);
  document.all.mdefault.style.display = "none";
}

//º¼·ý¹Ù
var nVolLeftPosition = 0;							// º¼·ý ¹Ù ¹è°æ ½ÃÀÛÁ¡
var nVolStartPosition = 25;							// º¼·ý ¹Ù ½ÃÀÛ Á¡
var nVolEndPosition = 103;							// º¼·ý ¹Ù ³¡ Á¡
var nVolume = 83;									// º¼·ý ÃÊ±â °ª
var nPrevVol;										// º¼·ýÀÌ º¯°æµÇ±â ÀüÀÇ °ª
var bIsVolumeSet		= false;						// º¼·ý¹Ù µå·¡±× ¿©ºÎ
var nZoomed			= 0;							// ±âº»°ª 1 : ÁÜµÊ,   0 : Ãà¼ÒµÊ

function killErr(){return true;}

function setVolumeBar(){
	nPrevVol = event.clientX;
	nVolLeftPosition = sound.style.pixelLeft;

	bIsVolumeSet = true;
	document.onmousemove=drag_dropie;
	if (document.all){document.onmouseup=endVolume;}
}

function drag_dropie(){
	if (bIsVolumeSet==true){
		var mov = nVolLeftPosition+event.clientX-nPrevVol;
		if ((mov >= nVolStartPosition)  && (mov < nVolEndPosition)){
			cutpoint=nVolEndPosition-sound.style.pixelLeft;
			document.all.soundbg.style.pixelWidth=63-cutpoint;
			//document.all.sbg.width = 58-cutpoint;
			sound.style.pixelLeft=nVolLeftPosition+event.clientX-nPrevVol;
			mplayer.Volume = -2500*(cutpoint/63);
			nVolume=sound.style.pixelLeft
			nVolume1=document.all.sbg.width;
			mplayer.Mute=false;
		}
		return false;
	}
}

function endVolume(){
	bIsVolumeSet=false;
}

function ris(name, nsdoc)
{
	var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
	if (name == '') return;
	if (img && img.altsrc) {
		img.src    = img.altsrc;
		img.altsrc = null;
	}
}

function cis(name, nsdoc, rpath, preload)
{ 
	var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
	if (name == '')	return;
	if (img) {
		img.altsrc = img.src;
		img.src    = rpath;
	}
}		
  
function mutecheck(){
  if(document.all.mplayer.mute==0) document.all.mplayer.mute=1;
  else document.all.mplayer.mute=0;
}

function mzoom(){
  url=document.getElementById('mplayer').FileName;  
  document.getElementById('mplayer').stop();
  Win_pop(url,484,362);   
}
function Win_pop(newwin,w,h) { //½ºÅ©·Ñ ¾øÀ½
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'width='+w+',height='+h+',top='+wint+',left='+winl+',resizable=no,scrollbars=no,toolbars=no,status=no,menu=no';
win = window.open(newwin, "ifr", winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//-->