/*~~~~~~~~~~~~~~~~~~~~~

	PopUp Function
	Automatically hides
	named div in the new
	window. 
	
	The div name
	is passed in the 
	function call.
	
	This allows full 
	pages, complete 
	with fullscreen 
	features such as 
	navigation, 
	to be opened in 
	popup windows 
	and automatically
	tweaked to suit
	their new location
	
	dAN FARROW May 2006

~~~~~~~~~~~~~~~~~~~~~~*/

function popup(theURL,fullScreen,popUp,h,w,hideDiv) {
	if(popUp){
		if(!w){
			w = screen.width/2;
		}
		if(!h){
			h=screen.height/2;
		}
		newPopup=window.open(theURL,"newPopup",'width='+w+',height='+h+',screenX='+((screen.height-h)/2)+',screenY='+((screen.width-w)/2)+',resizable=1, directories=0, fullscreen=0,location=0,menubar=0,scrollbars=1,status=0,toolbar=0,top='+((screen.height-h)/2)+',left='+((screen.width-w)/2)+'');
		newPopup.focus();
	} else {
		if(fullScreen){
			newFull = window.open(theURL,'newFull','width='+(screen.width - 20)+',height='+(screen.height - 60)+',screenX=10,screenY=0,directories=0,fullscreen=1,location=0,menubar=0,scrollbars=0,status=0,toolbar=0,top=0,left=10');
	 		newFull.focus();
		} else {
			newWindow = window.open(theURL,"newWindow");
			newWindow.focus();
		}
	}
	return false;
}