var screenHeight = screen.height;
var screenWidth = screen.width;

var winHeight = 420;
var winWidth = 760;
var winTop = (screenHeight/2) - (winHeight/2); 
var winLeft = (screenWidth/2) - (winWidth/2); 


function openWin(url) {
	var win = open(url,'newWin','height='+winHeight+',width='+winWidth+',scrollbars=no,directories=no,status=yes,top='+winTop+',left='+winLeft)
	win.focus();
}

if (document.images) {
	var imageNames = new Array("story","trailer","photos","poster","message_board","flash_site","screensaver","from_the_producer","aboutdvd");
	var imagePath = "images-nav/";
	var imageExtension = ".gif";
	var allMyImages = new Array(imageNames.length);
	var curName = "";
	var gWhichGlowing = "";
	
	for (var i=0; i<imageNames.length; i++) {
		curName = imageNames[i];
		allMyImages[curName] = new Array("off","on");
		allMyImages[curName]["off"] = new Image();
		allMyImages[curName]["off"].src = imagePath+curName+"-off"+imageExtension;
		allMyImages[curName]["on"] = new Image();
		allMyImages[curName]["on"].src = imagePath+curName+"-on"+imageExtension;
	}
}

function Glow(whichImage) {
	if (document.images) {
		document[whichImage].src = allMyImages[whichImage]["on"].src;
		gWhichGlowing = whichImage;
	}
}

function DeGlow(){
	if (document.images) {
		document[gWhichGlowing].src = allMyImages[gWhichGlowing]["off"].src;
		gWhichGlowing = "";
	}
}

function popWin(url) {
	var win = open(url,'','height=362,width=524');
}

function popPoster() {
	var poster = open('popPoster.html','','height=770,width=520,resizable=yes,scrollbars=yes');
}	

function popTrailer() {
	window.open('http://queenofthedamned.warnerbros.com/cmp/trailer.html','pop','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=524,height=394');
}	

function popClip3() {
	window.open('http://queenofthedamned.warnerbros.com/cmp/clip3.html','pop','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=524,height=394');
}

function popDvd(url) {
	var win = open(url,'','height=475,width=490');
}

function popAncients() {
	window.open('http://queenofthedamned.warnerbros.com/cmp/ancients_rise.html','pop','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=524,height=394');
}

function popOpening() {
	window.open('http://queenofthedamned.warnerbros.com/cmp/original_opening.html','pop','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=524,height=394');
}