//Layershow('LAYER2', 'FRAME2', 'webmail.asp', '300','100');
//Layershow('LAYER1', 'FRAME1', 'Pass.asp', '100','200');

var nscp = (navigator.appName == "Netscape") 
var ismc = (navigator.appVersion.indexOf("Mac") != -1) 
var vers = parseFloat(navigator.appVersion.substring(22,25)) 

function getObj(obj) { 
	if (nscp) { 
		compLayr = document.layers[obj] 
	}else{ 
		compLayr = eval("document.all." + obj + ".style") 
	} 
    return compLayr 
} 

function Layershow(LayerName, FrameName, filename, leftsize, topsize){ 
	obj = getObj(LayerName);

	if (obj.visibility=="hidden"){ 
		obj.visibility = "visible" ;
		obj.left = leftsize;
		obj.top = topsize;

		document.frames[FrameName].location.href = filename;
	} 
} 

function LayerHide(LayerName){ 
	obj = getObj(LayerName) ;
	obj.visibility = "hidden" ;
}

function showHide2(name){ 
	obj = getObj(name) ;
	obj.visibility = "hidden" ;
} 

// ºê¶ó¿ìÁ® Ã¼Å©.... 
var ns4=document.layers 
var ie4=document.all 
var ns6=document.getElementById&&!document.all 

var dragswitch=0 
var popupnum
var nsx 
var nsy 
var nstemp 

function drag_dropns(name){ 
  if (!ns4) 
  return 
  temp=eval(name) 
  temp.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP) 
  temp.onmousedown=gons 
  temp.onmousemove=dragns 
  temp.onmouseup=stopns 
} 

function gons(e){ 
  temp.captureEvents(Event.MOUSEMOVE) 
  nsx=e.x 
  nsy=e.y 
} 
function dragns(e){ 
  if (dragswitch==1){ 
    temp.moveBy(e.x-nsx,e.y-nsy) 
    return false 
  } 
} 

function stopns(){ 
  temp.releaseEvents(Event.MOUSEMOVE) 
} 

function drag_drop(e){ 
  if (ie4&&dragapproved){ 
    crossobj.style.left=tempx+event.clientX-offsetx 
    crossobj.style.top=tempy+event.clientY-offsety 
    return false 
  } 
  else if (ns6&&dragapproved){ 
    crossobj.style.left=tempx+e.clientX-offsetx 
    crossobj.style.top=tempy+e.clientY-offsety 
    return false 
  } 
} 


//document.onmousedown=initializedrag1
document.onmouseup=new Function("dragapproved=false") 

function hidebox(){ 
  if (ie4||ns6) 
    crossobj.style.visibility="hidden" 
  else if (ns4) 
    document.NANSILayer.visibility="hide" 
} 


function layerWin1(){
	Layershow("LAYER2", "FRAME2", "/Board/WebMail_InputForm.asp", "245","100");
}
function layerWin2(){
	//Layershow("EVENTLAYER4","EVENTFRAME4","/common/popup/20060420/0411_popup.html","10","0");
	location.href="/Lenproduct/care_renumois.asp?codeNum=E163EA039CD8&Scode=";
}
function layerWin3(){
	Layershow("EVENTLAYER5","EVENTFRAME5","/common/popup/20060420/letter.asp","10","0");
}
function layerWin4(){
	Layershow("EVENTLAYER6","EVENTFRAME6","/common/popup/20060420/news1.asp","10","0");
}
function layerWin5(){
	Layershow("EVENTLAYER7","EVENTFRAME7","/common/popup/20060420/news2.asp","10","0");
}
function layerWin6(){
	//location.href="/board/faq_list.asp";
	location.href="/Board/Faq_List.asp?Search1=6";
}
function layerWin7(){
	location.href="/Board/QandA_InputForm2.asp?";
}
function layerWin8(){
	Layershow("EVENTLAYER8","EVENTFRAME8","/common/popup/20060420/news3.asp","10","0");
}

// ÀÌ¹ÌÁö¿Í ÆäÀÌÁö ÁöÁ¤ºÎºÐ 
// ['ÀÌµ¿µÇ´Â ÆäÀÌÁö', 'ÀÌ¹ÌÁö °æ·Î'] 
// ÁÖÀÇ»çÇ× : ,¸¦ Ç×»ó ºÙÀÌµÇ ³¡¿¡´Â ÀÖÀ¸¸é ¾ÈµÊ ±×·¯´Ï ÀÌ·¸°Ô µÇ´Â°Í -> [],[],[] 
var mfBanners = [ 
['javascript:onpop(1)', '/images/baushch_banner_0701.jpg'], 
['javascript:onpop(2)', '/images/baushch_banner_sldd.jpg']
]; 
var mfIe = false; 
if( document.all) { mfIe = true; } 
var mfBannerIndex = 0; 
function onpop(p) {
	 if (p ==1)
	 {
		 window.open('/popup/20080701/main.asp', 'EVENT', 'toolbar=no,menubar=no,status=no, scrollbars=no,width=950, height=605, top=50, left=0');
	 } else {
		 window.open('/Event/20080801_SLDD/event.asp', 'EVENT', 'toolbar=no,menubar=no,status=no, scrollbars=no,width=950, height=605, top=50, left=0');
	 }
}
function mfBannerChange() { 
	// ÀÌ¹ÌÁö ÅÂ±×ºÎºÐ 
	// mfBanners[mfBannerIndex][0] : ÀÌµ¿µÇ´Â ÆäÀÌÁö 
	// mfBanners[mfBannerIndex][1] : ÀÌ¹ÌÁö °æ·Î 
	var htmlString = '<a href="'+mfBanners[mfBannerIndex][0]+'" ><img src="'+mfBanners[mfBannerIndex][1]+'" width="240" height="164" border="0"></a>'; 
	if( mfIe) { 
		document.all.banner2008.innerHTML = htmlString; 
	}else { 
		document.layers["banner2008"].document.open(); 
		document.layers["banner2008"].document.write( htmlString); 
		document.layers["banner2008"].document.close(); 
	} 
	if(mfBannerIndex < mfBanners.length - 1) 
		mfBannerIndex++; 
	else 
		mfBannerIndex = 0; 
} 
// ÀÌ¹ÌÁö°¡ ¹Ù²î´Â ½Ã°£ - 1000 = 1ÃÊ 
//setInterval("mfBannerChange()", 2000); 

