// JavaScript Document

function flace(id,w,h){
	var o = document.getElementById(id);
	o.style.width = w+'px';
	o.style.height = h+'px';
	o.style.overflow = 'hidden';
}

function launchInteractive(w, h, u){
	var windowWidth = w;
	var screenX = (screen.width - windowWidth)/2;
	// Can't make window height match entire screen height.
	// On the PC, if the taskbar is set to be always visible,
	// the window will dip beneath the taskbar.  Also a 
	// problem on Macs.
	//var windowHeight = screen.height - 70;
	var windowHeight = h;
	var screenY = (screen.height - windowHeight)/2
	var windowOptions = "toolbar=0,menubar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,width=" + windowWidth + ",height=" + windowHeight + ",top=" + screenY + ",left=" + screenX + ",screeny=" + screenY + ",screenx=" + screenX;
	var windowName = "NGCDinos"+w;
	var URL = u;
	URL += window.location.search;
	remoteWindow = window.open(URL,windowName,windowOptions);
}