function openBrWindow(theURL,winName,features) 
{
    var flength = features.length;
    var wlocate = features.indexOf('width=');
    var hlocate = features.indexOf(',height=');
    
    var w = features.substring(wlocate+6, hlocate);
    var h = features.substring(hlocate+8, flength);
    
   //confirm("width="+w+",height="+h);
    
    var winl = (screen.width - w)/2;
    var wint = (screen.height - h)/2;
    
    //confirm("top="+wint+",left="+winl);
    
    features += ",top="+wint;
    features += ",left="+winl;
    
    window.open(theURL,winName,features);

}

function popWallpaper(number, size)
{
	if(size==1) {
		var size_num="800x600";
	}else if(size==2) {
		var size_num="1024x768";
	}else {
		size_num="1280x1024";
	}
	popWindow(pageRoot + "downloads/wallpaper/wallpaper.html?wallpaper=wallpaper_"+number+"_"+size_num+".jpg");
}



<!--

website = "robotsmovie";

net = (document.layers && true);

widgetBuf = (net) ? 0:50

function popWin(url, name, width, height, scroll, resizable) {
	bWidth = (net) ? top.innerWidth:parseInt(top.document.body.clientWidth);
	bHeight = (net) ? top.innerHeight:parseInt(top.document.body.clientHeight);
	bLeft = (net) ? top.screenX:parseInt(top.screenLeft);
	bTop = (net) ? top.screenY:parseInt(top.screenTop);
	scroll = (scroll) ? scroll:"auto"
	resizable = (resizable) ? resizable:"yes"
	if (!bLeft) {
		bLeft = 0;
		bWidth = screen.width;
	}
	if (!bTop) {
		bTop = 0;
		bHeight = screen.height;
	}
	xer = bLeft + ((bWidth/2) - width/2);
	yer = (bTop - widgetBuf) + ((bHeight/2) - height/2);
	if (xer < 2) {
		xer = 2;
	}
	if (xer < 2) {
		xer = 2;
	}
	
	paramStr = "width=" + width + ",height=" + height + ",screenX=" + xer + ",screenY=" + yer + ",left=" + xer + ",top=" + yer + ",dependent=1,directories=0,location=0,menubar=0,resizable="+resizable+",scrollbars="+scroll+",toolbar=0";
	top[name] = window.open(url, name, paramStr);
	top[name].focus();
}

popups = new Object();

function launchPopUp(name, args) {
	tP = popups[name];
	if (args) {
		params = "?";
		for (var i in args) {
			params += i + "=" + args[i] + "&";
		}
	} else {
		params = "";
	}
	popWin(tP.url+params, website+tP.name, tP.width, tP.height, tP.scroll, tP.resizable);
	var tPath = 'pops/' + name;
	urchinTracker(tPath);
}

function newPopUp(argObj) {
	popups[argObj.name] = new Object();
	tP = popups[argObj.name];
	tP.name = argObj.name;
	tP.url = argObj.url;
	tP.width = argObj.width;
	tP.height = argObj.height;
	tP.scroll = argObj.scroll;
	tP.resizable = argObj.resizable;
}
	
//-->