function NewWindow(u,n,w,h,f,p,x,y){
/*  Copyright Eric King : http://www.ericking.us/ - &copy; 2000 - 2007
   	This script is free to use for any non profit website as long as this info is left in  */
	w=(w)?w:sw;h=(h)?h:sh;var ws=window.screen?1:0,m=Math,C='center',R='random',M='custom',sw=screen.availWidth,sh=screen.availHeight,T=(p==C&&ws||!p)?(sh-h)/2:(p==R&&ws)?(m.floor(m.random()*(sh-h))):(p==M&&h!=sh)?y:0,L=(p==C&&ws||!p)?(sw-w)/2:(p==R&&ws)?(m.floor(m.random()*(sw-w))):(p==M&&w!=sw)?x:0,s='width='+w+',height='+h+',top='+T+',screeny='+T+',left='+L+',screenx='+L;s+=(!f||f=='')?'':','+f;
	var win=window.open((u)?u:'http://www.ericking.us/',(n)?n:'',s);
	if(win && !win.closed){win.focus();return win;}
	if(!win){//alert('popup blocker!');
		document.location=u;
	}
	return false;
}

/*
	<a href="some_big_picture.jpg" onclick="NewWindow(this.href,'big_picture',640,480,'','center');return false;"> link text / image </a>
*/