


function initTabMenu(menuContainerID, menuTabName) {
	var tabMenu = document.getElementsByName(menuTabName);
	var i = 0;

	for(i=0; i<tabMenu.length; i++) {
		thismenu = tabMenu.item(i);
		thismenu.menuContainer = document.getElementById(menuContainerID);
		thismenu.targetEl = document.getElementById(tabMenu.item(i).href.split("#")[1]);
		thismenu.targetEl.style.display = "none";
		if (thismenu.getElementsByTagName("img").item(0)) {
			thismenu.getElementsByTagName("img").item(0).onmouseover = mOver;
			thismenu.getElementsByTagName("img").item(0).onmouseout = mOut;
		}
		thismenu.onclick = tabMenuClick;
	}

	initmenu = tabMenu.item(0);
	initmenu.targetEl.style.display = "block";
	if (initmenu.getElementsByTagName("img").item(0)) {
		initmenu.getElementsByTagName("img").item(0).onmouseover();
		initmenu.getElementsByTagName("img").item(0).onmouseover = null;
		initmenu.getElementsByTagName("img").item(0).onmouseout = null;
	}
	initmenu.menuContainer.current = initmenu;
}
function tabMenuClick() {
	currentmenu = this.menuContainer.current;
	if (currentmenu != this) {
		currentmenu.targetEl.style.display = "none";
		if (currentmenu.getElementsByTagName("img").item(0)) {
			currentmenu.getElementsByTagName("img").item(0).onmouseover = mOver;
			currentmenu.getElementsByTagName("img").item(0).onmouseout = mOut;
			currentmenu.getElementsByTagName("img").item(0).onmouseout();
		}
	
		this.targetEl.style.display = "block";
		if (this.getElementsByTagName("img").item(0)) {
			this.getElementsByTagName("img").item(0).onmouseover = null;
			this.getElementsByTagName("img").item(0).onmouseout = null;
		}
		this.menuContainer.current = this;
	}
	return false;
}

/********************************* ÇÃ·¡½Ã »ðÀÔ ½ºÅ©¸³Æ® ***************************/
function ActiveX(objects){
	if(navigator.appName == "Microsoft Internet Explorer"){
		document.write(objects.text);
		objects.id = "";
	}
}
/********************************* ÇÃ·¡½Ã »ðÀÔ ½ºÅ©¸³Æ®// ***************************/




/*********************************µ¿¿µ»ó Á¦¾îÇÏ´Â ÇÔ¼ö ***************************/
			/*
			c_id= Á¦¾îÇÏ·Á´Â µ¿¿µ»ó id
			c_type= Á¦¾î Å¸ÀÔ(play,pause,stop)
			*/
			function control_movie_F(c_id,c_type){
				if (c_type == "play"){
					 document.all[c_id].play();//¿µ»ó ÇÃ·¹ÀÌ
				}else if (c_type == "pause"){
					 document.all[c_id].pause();//¿µ»ó Àá½Ã¸ØÃã
				}else if (c_type == "stop"){
					 document.all[c_id].stop();//¿µ»ó ¸ØÃã
				}
			}
/*********************************µ¿¿µ»ó Á¦¾îÇÏ´Â ÇÔ¼ö //***************************/




	function writeObject(obj_file,width,height,wmode)
{
    var obj_src = "";
    obj_src += "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\""+width+"\" height=\""+height+"\">\n";
    obj_src += "  <param name=\"movie\" value=\""+obj_file+"\">\n";
    if(wmode!="")
    {
        obj_src += "  <param name=\"wmode\" value=\""+wmode+"\">\n";
    }
    obj_src += "  <param name=\"menu\" value=\"false\">\n";
    obj_src += "  <param name=\"quality\" value=\"high\">\n";
    obj_src += "  <embed src=\""+obj_file+"\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+width+"\" height=\""+height+"\"></embed>\n";
    obj_src += "</object>\n";
    
    document.write(obj_src);
}





// ÆäÀÌÁö focus blur
function bluring(){ 
	if (event.srcElement!=null) {
		if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
	}	
} 
document.onfocusin=bluring; 

//OPENER url ¹Ù²Ù±â
function opener_url(url)
{
	opener.location=url;
}

//ÆË¾÷ È­¸é Áß¾Ó¿¡ ¶ç¿ì±â
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, "new1", winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

//ÆË¾÷ È­¸é Áß¾Ó¿¡ ¶ç¿ì±â
function Win_pop3(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, "style", winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}	 

function Win_pop2(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=yes,toolbars=no,status=no,menu=no';
win = window.open(newwin, "new2", winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

//tab
function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}


function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function goMenu(Val,Sel)
{
	Sel.value = '';
	if (Val) location=Val;
	
}
 
 //ÀÌ¹ÌÁöÆË¾÷
function view(what) { 
	var imgwin = window.open("",'WIN','scrollbars=no,status=no,toolbar=no,resizable=0,location=no,menu=no,width=10,height=10'); 
	imgwin.focus(); 
	imgwin.document.open(); 
	imgwin.document.write("<html>\n"); 
	imgwin.document.write("<head>\n"); 
	imgwin.document.write("<title>ÀÌ¹ÌÁö Å©°Ôº¸±â</title>\n"); 
	
	imgwin.document.write("<sc"+"ript>\n"); 
	imgwin.document.write("function resize() {\n"); 
	imgwin.document.write("pic = document.il;\n"); 
	//imgwin.document.write("alert(eval(pic).width);\n"); 
	
	imgwin.document.write(" var imgw = eval(pic).width; ");
	imgwin.document.write("  if (eval(pic).width > 800){ eval(pic).width = 800\n "); //800pxº¸´ÙÅ©¸é 800À¸·Î
	imgwin.document.write(" } else if(eval(pic).width < 800){ eval(pic).width = eval(pic).width\n} "); //800pxº¸´ÙÀÛÀ¸¸é ¿ø·¡Å©±â·Î
	
	imgwin.document.write(" if (eval(pic).height) { var name = navigator.appName\n"); 
	imgwin.document.write("  if (name == 'Microsoft Internet Explorer') { myHeight = eval(pic).height + 40; myWidth = eval(pic).width + 10;\n"); 
	imgwin.document.write("  } else { myHeight = eval(pic).height + 9; myWidth = eval(pic).width; }\n"); 
	imgwin.document.write("  clearTimeout();\n"); 
	imgwin.document.write("  var height = screen.height;\n"); 
	imgwin.document.write("  var width = screen.width;\n"); 
	imgwin.document.write("  var leftpos = width / 2 - myWidth / 2;\n"); 
	imgwin.document.write("  var toppos = height / 2 - myHeight / 2; \n"); 
	imgwin.document.write("  self.moveTo(leftpos, toppos);\n");
	imgwin.document.write("  if (myWidth > width) { myWidth = width; }\n");
	imgwin.document.write("  self.resizeTo(myWidth, myHeight-12);\n"); 
	imgwin.document.write("}else setTimeOut(resize(), 100);}\n"); 
	imgwin.document.write("</sc"+"ript>\n"); 
	
	imgwin.document.write("</head>\n"); 
	imgwin.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#FFFFFF">\n'); 
	
	imgwin.document.write("<img border=0 src=\""+escape(what)+"\" name=il onload='resize();' style='cursor:hand' onclick='window.close();'>\n"); 
	imgwin.document.write("</body>\n");
	imgwin.document.close(); 
	}

	
	
	

	
	
	
	
	
	
	
	
	
	
	
//toggle ÇÔ¼ö
function toggle(e) {
  if (e.style.display == "none") {
     e.style.display = "";
  } else {
     e.style.display = "none";
  }
}

  //È¸¿ø°¡ÀÔ Å¸ÀÔº° 
  function chtype(num){
    document.getElementById('type1').style.display='none';
    document.getElementById('type2').style.display='none';
    document.getElementById('type3').style.display='none';
    
    document.getElementById('type'+num).style.display='block';
  }
	
	//object ÆÄÀÏ ÆÐÄ¡ ´ëºñ 
  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 flashWrite(url,w,h,id,bg,vars){

	// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
	var flashStr=
	"<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+"' align='middle'>"+
	"<param name='allowScriptAccess' value='always' />"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='FlashVars' value='"+vars+"' />"+
	"<param name='menu' value='false' />"+
	"<param name='quality' value='high' />"+
	"<param name='bgcolor' value='"+bg+"' />"+
	"<param name='wmode' value='transparent' />"+
	"<embed src='"+url+"' FlashVars='"+vars+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";

	// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
	document.write(flashStr);

}

	
	

/*********************************ÇÁ¸°Æ® ÇÔ¼ö //***************************/
function printWindow() {
   factory.printing.header = "¸Ó¸´±Û" //¸Ó¸´¸» ¼³Á¤
   factory.printing.footer = "¹Ù´Ú±Û"   //²¿¸´¸» ¼³Á¤
   factory.printing.portrait = true                    //Ãâ·Â¹æÇâ ¼³Á¤: true-°¡·Î, false-¼¼·Î
   factory.printing.leftMargin = 1.0                 //¿ÞÂÊ ¿©¹é ¼³Á¤
   factory.printing.topMargin = 1.0                 //¿ÞÂÊ ¿©¹é ¼³Á¤
   factory.printing.rightMargin = 1.0               //¿ÞÂÊ ¿©¹é ¼³Á¤
   factory.printing.bottomMargin = 1.0            //¿ÞÂÊ ¿©¹é ¼³Á¤
  factory.printing.Print(false, window)
}
/*********************************ÇÁ¸°Æ® ÇÔ¼ö //***************************/





/***********************  pr FilmÆË¾÷ **************************/
function ing_pop(){
			alert("ÁØºñÁßÀÔ´Ï´Ù.")
		}	
		
		

		
		
		
/***********************  »çÀÌ¹öÆË¾÷ **************************/
function visit_pop(){
			window.open('/popup/visit.asp','visit_pop','toolbar=no,scrollbars=no,menubars=no,width=620,height=450,left=0,top=0');
		}	
		
		
		
		
		
		
		
/***********************  ¸ÞÀÎ(web)ÆË¾÷ **************************/
function web_pop(){
			window.open('http://lotteb.co.kr:8081/sb/','web','toolbar=no,scrollbars=no,menubars=no,width=620,height=450,left=0,top=0');
		}	
		
