/* onMouseOver+onMouseOut*/
function bt(id,path) 
{ 
eval(id+'.filters.blendTrans.stop();'); 
eval(id+'.filters.blendTrans.Apply();'); 
eval(id+'.src="'+path+'";'); 
eval(id+'.filters.blendTrans.Play();');
}


/*charge-account*/
if (navigator.appVersion.indexOf('2.') != -1){
        check = false;
        }
if ((navigator.appVersion.indexOf('3.') != -1) && (navigator.appName.indexOf('Explorer') != -1)){
        check = false;
        }
else {
        check = true;
        }
/*
if (check == true){
        image1 = new Image();
        image1.src = '/skin02/images/charge/hp_off.gif';
        image1on = new Image();
        image1on.src = '/skin02/images/charge/hp_on.gif';
        image1stay = new Image();
        image1stay.src = '/skin02/images/charge/hp_on.gif';

		image2 = new Image();
        image2.src = '/skin02/images/charge/card_off.gif';
        image2on = new Image();
        image2on.src = '/skin02/images/charge/card_on.gif';
        image2stay = new Image();
        image2stay.src = '/skin02/images/charge/card_on.gif';

		image3 = new Image();
        image3.src = '/skin02/images/charge/pass_off.gif';
        image3on = new Image();
        image3on.src = '/skin02/images/charge/pass_on.gif';
        image3stay = new Image();
        image3stay.src = '/skin02/images/charge/pass_on.gif';

		image4 = new Image();
        image4.src = '/skin02/images/charge/adsl_off.gif';
        image4on = new Image();
        image4on.src = '/skin02/images/charge/adsl_on.gif';
        image4stay = new Image();
        image4stay.src = '/skin02/images/charge/adsl_on.gif';

		image5 = new Image();
        image5.src = '/skin02/images/charge/hanaro_off.gif';
        image5on = new Image();
        image5on.src = '/skin02/images/charge/hanaro_on.gif';
        image5stay = new Image();
        image5stay.src = '/skin02/images/charge/hanaro_on.gif';

		image6 = new Image();
        image6.src = '/skin02/images/charge/kt_off.gif';
        image6on = new Image();
        image6on.src = '/skin02/images/charge/kt_on.gif';
        image6stay = new Image();
        image6stay.src = '/skin02/images/charge/kt_on.gif';
}

imageStay = ''
function imageon(name){
        if (imageStay != name){
                document[name].src = eval(name + 'on.src');
        }
}
function imageoff(name){
        if (imageStay != name){
                document[name].src = eval(name + '.src');
        }
}
function on(name){
        if (check == true){
        imageon(name);
        }
}
function off(name){
        if (check == true){
        imageoff(name);
        }
}
function stay(name){
        if (check == true){
        document[name].src = eval(name + 'stay.src');
        if (imageStay != name){
                if (imageStay != ''){
                        document[imageStay].src = eval(imageStay + '.src');
                }
        }
        imageStay = name
        }
}
*/
/* Popup */
function findidpw()
{
	mm = window.open('findidpw.php', 'findIDPW', 'width=474,height=263, scrollbars=no, resizable=no' );
	mm.focus();
}

function memo(url)
{
	 window.open('/memo/index.php', 'memo', 'width=700,height=454,top=150,left=150,scrollbars=no, resizable=no' );
	
}	

function memow(url,uid,idx)
{
	window.open('../memo/write.php?uid='+uid+'&idx='+idx, 'memow', 'width=484,height=454, top=150,left=150,scrollbars=no, resizable=no' );
	
}
function memow2(url,uid)
{
	window.open(url+'/memo/write.php?uid='+uid, 'memow', 'width=484,height=454, top=150,left=150,scrollbars=no, resizable=no' );
	
}

function memow3(url,uid)
{
	window.open('../memo/write2.php?uid='+uid, 'memow', 'width=504,height=454, top=150,left=150,scrollbars=yes, resizable=no' );
	
}

function mail()
{
	window.open('mailto:webmaster@esolnet.net' );
}



/* Coupon */
function mp3(host)
{
	oWin = window.open('bill/mp3', 'billWindow', 'width=10,height=10,scrollbars=no,resizable=no');
	oWin.focus();
}

function rico()
{
	window.open('skin02/charge/popup_rico.html', 'rico', 'top=0,left=0,width=400,height=325, scrollbars=no, resizable=no' );
}

function betting_reserve(idx,sNickname)
{
	window.open('skin02/bet/popup_reserve.php?idx='+idx+'&nickname='+sNickname, 'reserve', 'top=0,left=0,width=550,height=360, scrollbars=no, resizable=no' );
}



function reserve_detail(protest_no)
{
	window.open('skin02/bet/popup_reserve.php?protest_no='+protest_no, 'reserve', 'top=0,left=0,width=550,height=360, scrollbars=no, resizable=no' );
}

function move_betting(idx,type,page)
{
	window.open('skin02/bet/popup_trans.php?idx='+idx+'&type='+type+'&page='+page, 'move_betting', 'top=0,left=0,width=550,height=250, scrollbars=no, resizable=no' );
}
/* Line */
function bline(){
document.write ("\
<table width=100% height=4 cellpadding=0 cellspacing=0 border=0>\
<tr><td width=2><img src='/images/ic/lna_lt.gif'></td><td height=1 bgcolor='#49AFE3'><img src='/images/box/blank.gif'></td><td width=2><img src='/images/ic/lna_rt.gif'></td></tr>\
</table>\
");
}

function tline(){
document.write ("\
<table width=100% cellpadding=0 cellspacing=0 border=0>\
<tr><td height=1 bgcolor='#C7C7C7'></td></tr>\
<tr><td height=4 bgcolor='#EEEEEE'></td></tr>\
</table>\
");
}

var dom = (document.getElementById) ? true : false;
	var ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;
	var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
	var ns4 = (document.layers && !dom) ? true : false;
	var ie4 = (document.all && !dom) ? true : false;
	var nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false;
	var offX = 12;
	var offY = 12;

	function ZB_layerAction(event,name,status) { 
            var divobj, divsts;
            if (nodyn) return;
            divobj = (ns4) ? document.name.document: (ie4)? document.all[name]: (ie5||ns5)? document.getElementById(name): null;
            divsts = (ns4) ? document.name: divobj.style;
            var mouseX, mouseY, tpWd, tpHt, winWd, winHt;
            mouseX = (ns4||ns5) ? event.pageX: window.event.clientX + document.body.scrollLeft;
            mouseY = (ns4||ns5) ? event.pageY: window.event.clientY + document.body.scrollTop;
            tpWd = (ns4) ? divobj.width: (ie4||ie5) ? divobj.clientWidth: divobj.offsetWidth;
            tpHt = (ns4) ? divobj.height: (ie4||ie5) ? divobj.clientHeight: divobj.offsetHeight;
            winWd = (ns4||ns5) ? window.innerWidth - 20 + window.pageXOffset: document.body.clientWidth + document.body.scrollLeft;
            winHt = (ns4||ns5) ? window.innerHeight + window.pageYOffset: document.body.clientHeight + document.body.scrollTop;
            if((mouseX+offX+tpWd) > winWd)
                    divsts.left = (ns4) ? mouseX-(tpWd+offX) : mouseX-(tpWd+offX)+"px";
            else
                    divsts.left = (ns4) ? mouseX+offX : mouseX+offX+"px";
            if((mouseY+offY+tpHt) > winHt)
                    divsts.top = (ns4) ? mouseY-(tpHt+offY) : mouseY-(tpHt+offY)+"px";
            else
                    divsts.top = (ns4) ? mouseY+offY : mouseY+offY+"px";
                    
            if(ns4||ns5) {
                    divsts.left = mouseX - 13;
                    divsts.top = mouseY - 12;
            } else {
                    divsts.posLeft = mouseX - 13;
                    divsts.posTop = mouseY - 12;
            }

            if(status=='visible') {
                if(divobj) {
                    divobj.visibility='hidden';
                    divobj=null;
                }
                divobj=divsts;
            }else{
                divobj=null;
            }
            divsts.visibility=status;
	}

	function print_ZBlayer(name, code, mail, uid, id, isAdmin, traceID, traceType, write, isMember) {
		var printHeight = 0;
		var printMain="";
	
	
		if(uid) {
			
			printMain = printMain +	"<tr onMouseOver=this.style.backgroundColor='#bbbbbb' onMouseOut=this.style.backgroundColor='' onMousedown=window.open('/memo/write.php?uid="+uid+"','view_info','left=150,top=150,width=504,height=454,toolbar=no,scrollbars=yes');><td style=font-family:±¼¸²;font-size:9pt height=18 nowrap>&nbsp;&nbsp;ÂÊÁö º¸³»±â&nbsp;&nbsp;</td></tr>";
			printHeight = printHeight + 16;
		}

		if(id) {
			
			printMain = printMain +	"<tr onMouseOver=this.style.backgroundColor='#bbbbbb' onMouseOut=this.style.backgroundColor='' onMousedown=window.open('/memo/write.php?id="+id+"','view_info','left=150,top=150,width=504,height=454,toolbar=no,scrollbars=yes');><td style=font-family:±¼¸²;font-size:9pt height=18 nowrap>&nbsp;&nbsp;ÂÊÁö º¸³»±â&nbsp;&nbsp;</td></tr>";
			printHeight = printHeight + 16;
		}

		if(isAdmin=='A') {
			printMain = printMain +	"<tr onMouseOver=this.style.backgroundColor='#bbbbbb' onMouseOut=this.style.backgroundColor='' onMousedown=window.open('/admin/member/member_view.php?uid="+uid+"','view_info2','left=150,top=150,width=860,height=700,toolbar=no,scrollbars=yes');><td style=font-family:±¼¸²;font-size:9pt height=18 nowrap>&nbsp;&nbsp;°ü¸®ÀÚ ÆäÀÌÁö&nbsp;&nbsp;</td></tr>";
			printHeight = printHeight + 16;
			printMain = printMain +	"<tr onMouseOver=this.style.backgroundColor='#bbbbbb' onMouseOut=this.style.backgroundColor='' onMousedown=window.open('/admin/member/member_log_excel.php?uid="+uid+"','view_info3','left=150,top=150,width=860,height=700,toolbar=no,scrollbars=yes');><td style=font-family:±¼¸²;font-size:9pt height=18 nowrap>&nbsp;&nbsp;´Ù¿î·Îµå ·Î±×&nbsp;&nbsp;</td></tr>";
			printHeight = printHeight + 16;
		}
		if(isAdmin=='G') {
			printMain = printMain +	"<tr onMouseOver=this.style.backgroundColor='#bbbbbb' onMouseOut=this.style.backgroundColor='' onMousedown=window.open('/admin/member/member_view.php?uid="+uid+"&code="+code+"','view_info2','left=150,top=150,width=860,height=700,toolbar=no,scrollbars=yes');><td style=font-family:±¼¸²;font-size:9pt height=18 nowrap>&nbsp;&nbsp;°ü¸®ÀÚ ÆäÀÌÁö&nbsp;&nbsp;</td></tr>";
			printHeight = printHeight + 16;
		
		}

		
		var printHeader = "<div id='"+name+"' style='position:absolute; left:10px; top:25px; width:127; height: "+printHeight+"; z-index:1; visibility: hidden' onMousedown=ZB_layerAction(event,'"+name+"','hidden')><table border=0><tr><td colspan=3 onMouseover=ZB_layerAction(event,'"+name+"','hidden') height=3></td></tr><tr><td width=5 onMouseover=ZB_layerAction(event,'"+name+"','hidden') rowspan=2>&nbsp;</td><td height=5></td></tr><tr><td><table style=cursor:hand border='0' cellspacing='1' cellpadding='0' bgcolor='black' width=100% height=100%><tr><td valign=top bgcolor=white><table border=0 cellspacing=0 cellpadding=3 width=100% height=100%>";
		var printFooter = "</table></td></tr></table></td><td width=5 rowspan=2 onMouseover=ZB_layerAction(event,'"+name+"','hidden')>&nbsp;</td></tr><tr><td colspan=3 height=10 onMouseover=ZB_layerAction(event,'"+name+"','hidden')></td></tr></table></div>";
	
		document.writeln(printHeader+printMain+printFooter);
	}
