<!-- Begin to hide script contents from old browsers.
POP_BORDERW = 1;
POP_BORDERC = "#4D4D4D";
POP_FONTBOLD = false;
POP_FONTITALIC = false;
POP_CELLPADDING = 3;
POP_CELLCOLORNOR = "#F5F5F5";
POP_CELLCOLORFOC = "#B3B3B3";
POP_IEFONTSIZE = 12;
POP_NSFONTSIZE = 2;
POP_FONTCOLORNOR = "#262626";
POP_FONTCOLORFOC = "#FFFFFF";
POP_SEPSIZE = 1;
POP_SEPCOLOR = "#E2E2E2";
POP_IETOPZ = 1000;

pop_ns4 = (document.layers);
pop_ie4 = (document.all);
pop_mac = (navigator.appVersion.indexOf("Mac") != -1);
pop_win = (navigator.appVersion.indexOf("Win") != -1)

if( !pop_ns4 && !pop_ie4 )	event = null;
if( !pop_win && !pop_mac )
	ap_ns_mouseover_available = false;
else
    ap_ns_mouseover_available = true;

pop_created = false;
pop_resized = false;
pop_clickkill = false;
pop_overobj = false;
pop_obj = null;
pop_argv = null;

//var f_goblogobj = true;
var f_goblogobj = false;
var objifrmblog = "";
function jsMnPop() { return false; }

function jsMnPop(datanm, e, width, clickkill, centered, argv ) {
	if(!(pop_ns4 || (pop_ie4 && !pop_mac)) )
        return( false );

	restart = false;
	var dummy, tm = new Date();
	dummy = (tm.getHours()+1) * (tm.getSeconds()+1) * Math.random() * Math.random() * 1000000000000;
	tm = null;
	dummy = dummy + "dummy";
	dummy = dummy.substring(0, dummy.indexOf("."));
	dummy = dummy.substring(0, 10);

	layernm = datanm + dummy;
	centeredlayout = false;
	pop_clickkill = (clickkill) ? (clickkill) : (false);
	pop_argv = argv;
	if( pop_obj != null ) {
		clearTimeout( pop_obj.hideTimer );
		pop_obj.hideTimer = null;
        pop_objshow( pop_obj, false );
	}
    pop_created = false;
	pop_obj = null;
	pop_overobj = false;

	if( pop_ns4 ) {
		ap_ns_orgw = window.innerWidth;
		ap_ns_orgh = window.innerHeight;
		window.onresize = pop_nsonresized;
	}
	if( pop_clickkill ) {
		if( pop_ns4 ) 
		    window.document.captureEvents(Event.MOUSEDOWN);
		window.document.onmousedown = pop_doconmousedown;
	}

	data = eval(datanm);
	if( typeof(data) != "object" ) {
		pop_textsetup( layernm, data, width, 0/*POP_BORDERW*/, POP_BORDERC, 0/*POP_CELLPADDING*/ );
    } else {
	    pop_menusetup( layernm, data, width, POP_BORDERW, POP_BORDERC, POP_CELLPADDING );
	}
	window.status = ""; //
	pop_created = true;
	pop_objshow( pop_obj, false );
	xpos = (pop_ns4) ? (e.pageX) : ((event.clientX) + window.document.body.scrollLeft);
	ypos = (pop_ns4) ? (e.pageY) : ((event.clientY) + window.document.body.scrollTop);
	if( centered ) xpos = xpos - (pop_obj.o_width / 2);
	pop_obj.moveTo( xpos, ypos );
	pop_keepinwindow( pop_obj );
	pop_objshow( pop_obj, true );
	return( false );
}

function popdown() {
    if( !(pop_ns4 || (pop_ie4 && !pop_mac)) )
        return( false );
	if( !pop_created ) 
	    return( false );
	pop_obj.hideTimer = null;
	pop_objshow( pop_obj, false );
	return( false );
}

function pop_textsetup( layernm, data, objwidth, borderw, borderc, cellpadding ) {
	if( pop_ns4 ) {
		eval( layernm + "= new Layer(objwidth, window)" );
	} else {
		elem = "<DIV ID=" + layernm + " STYLE='position:absolute'></DIV>";
		window.document.body.insertAdjacentHTML( "BeforeEnd", elem );
	}
	pop_obj = eval( layernm );
	itemnm = "item_xyz";
	if( pop_ns4 ) {
		elemwidth = objwidth-(borderw*2)-(cellpadding*2);
		eval( itemnm + "= new Layer(elemwidth, pop_obj)" );
		nsitem = eval( itemnm );
		nsitem.visibility = "inherit";
		nsitem.bgColor = POP_CELLCOLORNOR;
		nsitem.top = borderw + cellpadding;
		nsitem.left = borderw + cellpadding;
		nsitem.clip.top = nsitem.clip.left = -cellpadding;
		nsitem.clip.right = objwidth-(borderw*2)-cellpadding;
		maxtxtwidth = objwidth-(borderw*2)-(cellpadding*2);
		nsitem.txtLyr = new Layer( maxtxtwidth, nsitem );
		nsitem.txtLyr.document.write(data);
		nsitem.txtLyr.document.close();
		nsitem.txtLyr.visibility = "inherit";
		nsitem.clip.bottom = nsitem.txtLyr.document.height + cellpadding;
	} else {
		itemtag = "<SPAN ID=" + itemnm + " STYLE=\"width:" + (objwidth-(borderw*2)) + "\">" + data + "</SPAN>";
		pop_obj.innerHTML = itemtag;
	}
	pop_obj.onmouseover = pop_objonmouseover;
	pop_obj.onmouseout = pop_objonmouseout;
	pop_obj.hideTimer = null;
		
	if( pop_ns4 ) {
		pop_obj.bgColor = borderc; //bgColor is case-sensitive and fixed!!!
		pop_obj.o_width = objwidth;
		pop_obj.o_height = nsitem.top + nsitem.clip.bottom + borderw;
		pop_obj.clip.right = objwidth;
		pop_obj.clip.bottom = pop_obj.o_height;
	} else {
		with( pop_obj.style ) {
			padding = cellpadding; //
			width = objwidth;
			borderWidth = borderw;
			borderColor = borderc;
			borderStyle = "solid";
			zIndex = POP_IETOPZ;
			backgroundColor = POP_CELLCOLORNOR; //
		}
		pop_obj.o_width = pop_obj.scrollWidth;
		pop_obj.o_height = pop_obj.scrollHeight;
		pop_objshow( pop_obj, false );
		pop_obj.moveTo = moveTo;
		pop_obj.moveTo( 0, 0 );
	}
}

function pop_menusetup( layernm, data, objwidth, borderw, borderc, cellpadding ) {
	if( pop_ns4 ) {
		eval(layernm + "= new Layer(objwidth,window)");
	} else {
		elem = "<div id=\"" + layernm + "\" style=\"position:absolute\"></DIV>";
		window.document.body.insertAdjacentHTML( "BeforeEnd", elem );
	}

	pop_obj = eval( layernm );
	pop_obj.o_array = data; //eval( datanm );

	//--Added For goblog by blueface(20050728)
	if (f_goblogobj)
	{
		var f_chkexistsblog = false;
		for (i=0;i<data.length ;i++ ){
			if (data[i] =="블로그 바로가기"){
				f_chkexistsblog = true;
			}
		}
		if (f_chkexistsblog==false){
			data[data.length] = "블로그 바로가기";
			data[data.length] = "javascript:pop_gotoblog();";
		}
	}
	//----------------------------------------

	//0:width, 3:fontcolornor, 4: fontcolorfoc, 5:bgcolornor, 6:bgcolorfoc, 7:bordercolor, 8:separatorcolor
	pop_obj.o_width = objwidth;
	pop_obj.o_borderc = borderc;
	pop_obj.o_fclrnor = POP_FONTCOLORNOR;
	pop_obj.o_fclrfoc = POP_FONTCOLORFOC;
	pop_obj.o_bclrnor = POP_CELLCOLORNOR;
	pop_obj.o_bclrfoc = POP_CELLCOLORFOC;
	pop_obj.o_sepaclr = POP_SEPCOLOR;

	maxitems = (pop_obj.o_array.length)/2;
	ncount = 0;
	if( pop_ns4 ) {
		while( ncount < maxitems ) {
			ncount++;
			previtem = (ncount > 1) ? pop_obj.item : null;
			itemnm = "item_" + layernm + ncount;
			elemwidth = pop_obj.o_width-(borderw*2)-(cellpadding*2);
			eval( itemnm + "= new Layer(elemwidth,pop_obj)" );
			pop_obj.item = eval( itemnm );
			pop_obj.item.o_prev = previtem;
			pop_menuitemsetup( pop_obj.item, ncount, pop_obj.o_array, borderw, cellpadding );
		}
		pop_obj.o_last = pop_obj.item;
	} else {
		itemtag = "";
		while( ncount < maxitems ) {
			ncount++;
			itemnm = "item_" + layernm + ncount;
			arrayPointer = ((ncount-1)*2);
			htmtag = pop_obj.o_array[arrayPointer+0];
			itemtag += "<SPAN ID=" + itemnm + " STYLE=\"width:" + (pop_obj.o_width-(borderw*2)) + "\">" + htmtag + "</SPAN><BR>";
		}
		pop_obj.innerHTML = itemtag;
		if( (typeof(pop_obj.children) == "undefined") || 
		    (typeof(pop_obj.children) == "unknown"))
		    return;
		itemcollection = pop_obj.children.tags("SPAN");
		for( i = 0; i < itemcollection.length; i++ ) {
			it = itemcollection( i );
			pop_menuitemsetup( it, i+1, pop_obj.o_array, borderw, cellpadding );
		}
		pop_obj.o_last = itemcollection( itemcollection.length-1 );
	}
	pop_obj.onmouseover = pop_objonmouseover;
	pop_obj.onmouseout = pop_objonmouseout;
	pop_obj.hideTimer = null;
		
	if( pop_ns4 ) {
		pop_obj.bgColor = pop_obj.o_borderc; //bgColor is case-sensitive and fixed!!!
		pop_obj.o_height = pop_obj.o_last.top + pop_obj.o_last.clip.bottom + borderw;
		pop_obj.clip.right = pop_obj.o_width;
		pop_obj.clip.bottom = pop_obj.o_height;
	} else {
		with( pop_obj.style ) {
			width = pop_obj.o_width;
			borderWidth = borderw;
			borderColor = pop_obj.o_borderc;
			borderStyle = "solid";
			zIndex = POP_IETOPZ;
		}
		pop_obj.o_last.style.border = "";
		pop_obj.o_height = pop_obj.scrollHeight;
		pop_objshow( pop_obj, false );
		pop_obj.onselectstart = pop_ignoreselect;
		pop_obj.moveTo = moveTo;
		pop_obj.moveTo( 0, 0 );
	}
}

function pop_menuitemsetup( itm, whichItem, whichArray, borderw, cellpadding ) {
	itm.onmouseover = pop_menuitemonmouseover;
	itm.onmouseout = pop_menuitemonmouseout;
	itm.container = (pop_ns4) ? itm.parentLayer : itm.offsetParent;

	arrayPointer = ((whichItem-1)*2);
	//itm.state = whichArray[arrayPointer+0];
	itm.dispText = whichArray[arrayPointer+0];
	itm.linkText = whichArray[arrayPointer+1];

	if( itm.linkText ) { //&& itm.state == true ) {
		if( pop_ns4 ) {
			itm.captureEvents(Event.MOUSEUP)
			itm.onmouseup = pop_menuitemonclick;
		} else {
			itm.onclick = pop_menuitemonclick;
			itm.style.cursor = "hand";
		}
	}

	if( pop_ns4 ) {
		htmtag = itm.dispText;
		if( POP_FONTBOLD ) htmtag = htmtag.bold();
		if( POP_FONTITALIC ) htmtag = htmtag.italics();

		htmtag = "<FONT SIZE=" + POP_NSFONTSIZE + ">" + htmtag + "</FONT>";
		itm.i_nstagnor = htmtag.fontcolor(itm.container.o_fclrnor);
		itm.i_nstagfoc = htmtag.fontcolor(itm.container.o_fclrfoc);
		itm.visibility = "inherit";
		itm.bgColor = itm.container.o_bclrnor;
		if( whichItem == 1 ) {
			itm.top = borderw + cellpadding;
		} else {
			itm.top = itm.o_prev.top + itm.o_prev.clip.height + POP_SEPSIZE;
		}
		itm.left = borderw + cellpadding;
		itm.clip.top = itm.clip.left = -cellpadding;
		itm.clip.right = itm.container.o_width-(borderw*2)-cellpadding;

        //3.08 added next 2 lines: maxTxtWidth and fullImgSize variables to help determine the width of txtLyr:
		maxTxtWidth = itm.container.o_width-(borderw*2)-(cellpadding*2);

		itm.txtLyr = new Layer(maxTxtWidth,itm);
		itm.txtLyr.document.write(itm.i_nstagnor);
		itm.txtLyr.document.close();
		itm.txtLyr.visibility = "inherit";

        //3.08 modified next line: changed "+=" to "="
		itm.clip.bottom = itm.txtLyr.document.height + cellpadding;

		itm.dummyLyr = new Layer(100,itm);
		itm.dummyLyr.left = itm.dummyLyr.top = -cellpadding;
		itm.dummyLyr.clip.width = itm.clip.width;
		itm.dummyLyr.clip.height = itm.clip.height;
		itm.dummyLyr.visibility = "inherit";
	} else {
		with( itm.style ) {
			padding = cellpadding;
			color = itm.container.o_fclrnor;
			fontSize = POP_IEFONTSIZE + "px";
			fontWeight = (POP_FONTBOLD) ? "bold" : "normal";
			fontStyle =	(POP_FONTITALIC) ? "italic" : "normal";
			borderBottomWidth = POP_SEPSIZE + "px";
			borderBottomColor = itm.container.o_sepaclr;
			borderBottomStyle = "solid";
			backgroundColor = itm.container.o_bclrnor;
		}
	}
}	

function pop_menuitemonmouseover() {
	if( pop_ie4 ) {
		theEvent = window.event;
		if( theEvent.srcElement.tagName == "IMG" ) 
		    return;
		this.style.backgroundColor = this.container.o_bclrfoc;
		this.style.color = this.container.o_fclrfoc;
	} else {
		this.bgColor = this.container.o_bclrfoc;
		if( ap_ns_mouseover_available ) {
			with( this.txtLyr.document ) {
				write( this.i_nstagfoc );
				close();
			}
		}
	}
	window.status = "";
}

function pop_menuitemonmouseout() {
	if( pop_ie4 ) {
		theEvent = window.event;
    	if( theEvent.srcElement.contains(theEvent.toElement) || 
    	    (theEvent.fromElement.tagName == "IMG" && 
    	     theEvent.toElement.contains(theEvent.fromElement)) )
            return;
		this.style.backgroundColor = this.container.o_bclrnor;
		this.style.color = this.container.o_fclrnor;
	} else {
		this.bgColor = this.container.o_bclrnor;
		if( ap_ns_mouseover_available ) {
			with( this.txtLyr.document ) {
				write(this.i_nstagnor);
				close();
			}
		}
	}
}

function pop_ignoreselect() { return false; }

function pop_objonmouseover( e ) {
	pop_overobj = true;
	if( this.hideTimer ) 
	    clearTimeout( this.hideTimer );
}

function pop_objonmouseout() {
	if( pop_ie4 ) {
		theEvent = window.event;
		if( theEvent.srcElement.contains(theEvent.toElement) ) return;
	}
	pop_overobj = false;
	window.status = "";
	if( !pop_clickkill ) {
	    pop_obj.hideTimer = setTimeout( "pop_objhidedelayed()", 10 );
	}
}

function pop_objhidedelayed() {
	pop_obj.hideTimer = null;
	if( !pop_overobj ) { 
		pop_objshow( pop_obj, false );
	}
}

function pop_objshow( mnu, on ) {
	if( pop_ns4 ) {
		mnu.visibility = (on) ? "show" : "hide";
	} else if( (typeof(mnu.style) != "undefined") && (typeof(mnu.style) != "unknown") ) {
		mnu.style.visibility = (on) ? "visible" : "hidden";
	}
}

function pop_keepinwindow( obj ) {
	scrBars = 20;
	botScrBar = scrBars;
	rtScrBar = scrBars;
	if( pop_ns4 ) {
		winRight = (window.pageXOffset + window.innerWidth) - rtScrBar;
		rightPos = obj.left + obj.o_width;
		if( rightPos > winRight ) {
			dif = rightPos - winRight;
			obj.left -= dif;
		}
		winBot = (window.pageYOffset + window.innerHeight) - botScrBar ;
		botPos = obj.top + obj.o_height;
		if( botPos > winBot ) {
			dif = botPos - winBot;
			obj.top -= dif;
		}
		winLeft = window.pageXOffset;
		leftPos = obj.left;
		if( leftPos < winLeft )
			obj.left = 5;
	} else {
    	winRight = (window.document.body.scrollLeft + window.document.body.clientWidth) - rtScrBar;
		rightPos = obj.style.pixelLeft + obj.o_width;
		if( rightPos > winRight ) {
			dif = rightPos - winRight;
			obj.style.pixelLeft -= dif;
		}
		winBot = (window.document.body.scrollTop + window.document.body.clientHeight) - botScrBar;
		botPos = obj.style.pixelTop + obj.o_height;
		if( botPos > winBot ) {
			dif = botPos - winBot;
			obj.style.pixelTop -= dif;
		}
		winLeft = window.document.body.scrollLeft;
		leftPos = obj.style.pixelLeft;
		if( leftPos < winLeft )
			obj.style.pixelLeft = 5;
	}
}

function moveTo( xpos, ypos ) { //cross-browser format
	this.style.pixelLeft = xpos;
	this.style.pixelTop = ypos;
}

function pop_menuitemonclick() {
	pop_objshow( pop_obj, false );
	if( this.linkText.indexOf("javascript:") != -1 ) 
	    eval( this.linkText )
	else 
	    window.location.href = this.linkText;
}

function pop_nsonresized(){
	if( window.innerWidth == ap_ns_orgw && window.innerHeight == ap_ns_orgh ) 
	    return;
	pop_resized = true;
	window.location.reload();
}

function pop_doconmousedown() {
	if( !pop_overobj && pop_obj != null ) {
		pop_obj.hideTimer = null;
		pop_objshow( pop_obj, false );
	}
}

function pop_handlejavascripterror() 
{
	arAccessErrors = ["permission","access"];
	mess = arguments[0].toLowerCase();
	found = false;
	for( i = 0; i < arAccessErrors.length;i++ ) {
		errStr = arAccessErrors[i];
		if( mess.indexOf(errStr) != -1 ) found = true;
	}
	return found;
}

window.onerror = pop_handlejavascripterror;
pop1 = new Array( //target is offline
"쪽지보내기","javascript:pop_sendimsg();"
);

pop2 = new Array( //target is offline and target is my buddy/black

"쪽지보내기","javascript:pop_sendimsg();"
);

pop3 = new Array( //target is online
"쪽지보내기","javascript:pop_sendimsg();"
);


pop4 = new Array( //target is online and is my buddy/black

"쪽지보내기","javascript:pop_sendimsg();"
);

pop5 = new Array(
"쪽지보내기","javascript:pop_sendimsg();"
);

pop7 = new Array(
"쪽지보내기","javascript:pop_sendimsg();"
);

pop8 = new Array(
"쪽지보내기","javascript:pop_sendimsg();"
);

//-- begin temporary for ticamall - by smaris at 20040119
pop9 = new Array(
"쪽지보내기","javascript:pop_sendimsg();",
"티카몰","",
"&nbsp;&nbsp;&nbsp;&nbsp;신용도 보기","javascript:pop_vwcredit();",
"&nbsp;&nbsp;&nbsp;&nbsp;단골가게 등록","javascript:pop_zzimid();"
);

pop10 = new Array(
"쪽지보내기","javascript:pop_sendimsg();",
"공유자료보기","javascript:pop_openenppy();"
);
//-- end

function pop_userinfo()
{
    var tgt = ap_querystring( pop_argv, "tgt" );
	var url = 'http://mynote.entica.com/index_home.asp?userid=' + ap_escape(tgt);
	window.open(url, 'mynote_popup','scrollbars=no,resizable=no,copyhistory=no,width=900,height=650');
}

function pop_openenppy()
{
    var tgt = ap_querystring( pop_argv, "tgt" );
	var url = 'http://enppy.entica.com/enppy30/run.asp?suid=' + ap_escape(tgt);
	window.open(url, 'mynote_popup','scrollbars=no,resizable=no,copyhistory=no,width=200,height=200');
}

function pop_mynoteinfo()
{
    var tgt = ap_querystring( pop_argv, "tgt" );
    var winurl = 'http://mynote.entica.com/home/mynote_login.asp?userid=' + ap_escape(tgt);
    ap_openwin( winurl, 'mynote_popup', 900, 650, 3, false, false, false );
    //Window.open('http://note.entica.com/' + ap_escape(tgt), 'mynote_popup','scrollbars=no,resizable=no,copyhistory=no,width=761,height=534');
}

function pop_sendimsg() 
{
    var tgt = ap_querystring( pop_argv, "tgt" );
	var winurl = "http://www.enppy.com/rmt/win.asp?opt=4&tgt="+ ap_escape(tgt);
	ap_openwin( winurl, 'remwin', 420,500,3, false, false, false );
}

function pop_openo2o()
{
    var tgt = ap_querystring( pop_argv, "tgt" );
	var param = ap_getwinparam( 360, 280, 3, true, false, false );
	ch_openpvwin( "http://chat.entica.com/ch/o2o/win.asp", "wnd_"+ap_random(), param, tgt, 0 );
}

function pop_reqmajong()
{
    var tgt = ap_querystring( pop_argv, "tgt" );
    var winurl = "http://game.entica.com/gm/o2o/maj/req.asp?tgt="+ ap_escape(tgt);
	ap_openwin( winurl, 'ivtmaj', 320, 240, 3, false, false, false );
}

function pop_reqmemory()
{
    var tgt = ap_querystring( pop_argv, "tgt" );
    var winurl = "http://game.entica.com/gm/o2o/mem/req.asp?tgt="+ ap_escape(tgt);
	ap_openwin( winurl, 'ivtmem', 320, 240, 3, false, false, false );
}

function pop_reqtorus()
{
    var tgt = ap_querystring( pop_argv, "tgt" );
    var winurl = "http://game.entica.com/gm/o2o/tor/req.asp?tgt="+ ap_escape(tgt);
	ap_openwin( winurl, 'ivttor', 320, 240, 3, false, false, false );
}

function pop_reqjjibu()
{
    var tgt = ap_querystring( pop_argv, "tgt" );
    var winurl = "http://game.entica.com/gm/o2o/jjb/req.asp?tgt="+ ap_escape(tgt);
	ap_openwin( winurl, 'ivtjjb', 320, 240, 3, false, false, false );
}

function pop_addbuddy()
{
    var tgt = ap_querystring( pop_argv, "tgt" );
//    var winurl = "http://chat.entica.com/rt/bdy/wrx.asp?tgt=" + ap_escape(tgt);
    var winurl = "http://www.entica.com/rmt/bdy/wrx.asp?tgt=" + ap_escape(tgt);
	ap_openwin( winurl, 'remwin', 320, 400, 3, false, false, false );
}

function pop_addignore()
{
    var tgt = ap_querystring( pop_argv, "tgt" );
//    var winurl = "http://chat.entica.com/rt/ign/wrx.asp?tgt=" + ap_escape(tgt);
    var winurl = "http://www.entica.com/rmt/ign/wrx.asp?tgt=" + ap_escape(tgt);
	ap_openwin( winurl, 'remwin', 320, 400, 3, false, false, false );
}

function stage_setactor()
{
    var tgt = ap_querystring( pop_argv, "tgt" );
	MiniChatConnObj.sendMsg( "PRIVMSG " + tgt + " :{201;001;}" );
}

function stage_setguest()
{
    var tgt = ap_querystring( pop_argv, "tgt" );
	MiniChatConnObj.sendMsg( "PRIVMSG " + tgt + " :{201;002;}" );
}

function stage_kickuser()
{
    var tgt = ap_querystring( pop_argv, "tgt" );
	kickUserCmd( tgt );
}

function stage_banuser()
{
    var tgt = ap_querystring( pop_argv, "tgt" );
	banUserCmd( tgt );
}

function pop_vwcredit()
{
    var tgt = ap_querystring( pop_argv, "tgt" );
	document.location.href="/shop/credit.asp?uid=" + ap_escape(tgt);
}

function pop_zzimid()
{
	var tgt = ap_querystring( pop_argv, "tgt" ); 
	zzim_id( tgt );
}

function pop_gotoblog(){
	var tgt = ap_querystring( pop_argv, "tgt" );
	if(f_goblogobj){
			var flag = f_chkgoblog;
			if(flag=="0"){
				f_chkgoblog = "1";
				objifrmblog.src = "http://blog.entica.com/ifrm_goblog.asp?tgt=" + ap_escape(tgt);
			}
	}
}
// This stops the javascript from hiding -->
