<!--
	var popup;
function openWin(url,sTitle,w,h,scrollbar) {
// sTitle: string, set the popup window title
	var sTitle			= sTitle=="null" || sTitle==null || sTitle=="" ? "" : sTitle;
	var html			= "";
	var posX			= 0;
	var posY			= 0;
	var isIE			= navigator.appVersion.indexOf("MSIE")>-1;
	var scrollbar		= scrollbar==null || scrollbar=="" || scrollbar=="null" ? "no" : scrollbar;
if(!isIE)
	var isClose		= popup!=null ? popup.closed : false;
// pop window properties
	var sProperties	= "";
// current page absolute path
	var abspath	= window.location.href.substr(0,window.location.href.lastIndexOf("/")+1);
		url	= url.indexOf("http://")==-1 && url.indexOf("www.")==-1 ? abspath+url : url;
		posX	= ( screen.availWidth-w )/2;
		posY	= ( screen.availHeight-h )/2;

// if the pop window unmated
// then close it and mask the pop window is closed
	if(popup!=null){
		if(!popup.closed){
			if( ( popup.document.title.indexOf(sTitle)==-1 && sTitle!="" ) || sTitle=="NewPopup" ){
				popup.close();
				if(!isIE) isClose=true;
			}
		}
	}

// wallpaper
	if( sTitle.toUpperCase().indexOf("WALL")>-1 || sTitle.toUpperCase().indexOf("SCREEN")>-1 )
		html	= "<a href=\"####\" onClick=\"window.close();\"><img src=\""+url+"\" title=\"Anaconda: "+sTitle+"\" alt=\"Anaconda: "+sTitle+"\" border=\"0\" /></a>";
// buddy icon
	if( sTitle.toUpperCase().indexOf("BUDDY")>-1 )
		html	= "<a href=\"aim:buddyicon?src="+url+"\"><img src=\""+url+"\" title=\"Anaconda: "+sTitle+"\" alt=\"Anaconda: "+sTitle+"\" border=\"0\" /></a>";
// common
	if( sTitle.toUpperCase().indexOf("WALL")>-1 || sTitle.toUpperCase().indexOf("BUDDY")>-1 || sTitle.toUpperCase().indexOf("SCREEN")>-1 )
		html	= "<html><head><title>Anaconda: "+sTitle+"</title></head>"
				+ "<body marginheight=\"0\" marginwidth=\"0\" leftmargin=\"0\" topmargin=\"0\" bgcolor=\"#000000\">"
				+ "<table width=\""+( w<100?100:w )+"\" height=\""+( h<100?100:h )+"\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td align=\"center\" valign=\"middle\">"
				+ html
				+ "</td></tr></table></body></html>";

// pop up window
	if(popup==null || popup.closed || (!isIE ? isClose : false) ){
		sProperties	= "toolbar=0,location=0,directories=0,status=0,titlebar=0,menubar=no,resizable=no,"
							+	"scrollbars="+scrollbar+","
							+	"width="+( w<100?100:w )+","
							+	"height="+( h<100?100:h )+","
							+	"screenx="+posX+","
							+	"screeny="+posY+","
							+	"left="+posX+","
							+	"top="+posY;
		popup = window.open((sTitle==""||sTitle=="NewPopup"||sTitle=="Arcade Game"?url:"about:blank"),"Anacondas",sProperties);
		popup.focus();
		if( sTitle=="" || sTitle=="NewPopup" || sTitle=="Arcade Game" ){
			//popup.opener=popup;
			//popup=null;
			return;
		}else popup.document.open();
	}else{
			popup.focus();
		if( (sTitle=="" || sTitle=="NewPopup" || sTitle=="Arcade Game") && url==popup.location.href) return;
// if the popup is exist then clear it
			popup.document.close();
			popup.document.open();
	}
// write content to popup window
	popup.document.write(html);
	popup.document.close();
}
//-->