var imgSpacer,imgArrow
function addFav(n,t) {
		tw=window.open("/addfav.php?id="+n+"&t="+t,"addfav",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=300,height=300');
    tw.focus();
}

function open_game(u,w,h) {
		w+=5;h+=8;
		window.open(""+u,"Game",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width='+w+',height='+h);
}
function open_gameSC(u,w,h) {
		w+=5;h+=8;
		window.open(""+u,"Game",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='+w+',height='+h);
}

function wopen(url,x,y){
	var w;
	w=window.open(url,"mkpage","width="+x+",height="+y+",resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes");
	w.window.focus();
}

function wopenNS(url,x,y){
	var w;
	w=window.open(url,"mkpage","width="+x+",height="+y+",resizable=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no");
	w.window.focus();
}

function imgSwap(n,val){ if(document.images)document.images[n].src=eval(val).src;}
function imgLoad(){
	if(document.images){
		imgSpacer=new Image; imgSpacer.src='/images/spacer.gif';
		imgArrow=new Image; imgArrow.src='/images/arrow11.gif';
	}
}
function getCookie(name) {
    var start = document.cookie.indexOf(name+"=");
    var len = start+name.length+1;
    if (start == -1) return '<a href="/members/"><font color=ffef55>login</font></a>';
    if ((!start) && (name != document.cookie.substring(0,name.length))) return '<a href="/members/"><font color=ffef55>login</font></a>';
    var end = document.cookie.indexOf(";",len);
    if (end == -1) end = document.cookie.length;
    return unescape(document.cookie.substring(len,end))+' : <a href="/members/logout.php"><font color=ffef55>logout</font></a>';
}
imgLoad();
//this.name="apod";
