var trailer = "trailer", trailer2 = "trailer2", poster = "poster", mastermind = "mastermind",trailerWin, posterWin, mastermindWin;function popup(){	var myURL, popupName, popupWidth, popupHeight, mypopup, myX;		if(arguments[0] == 'trailer') { 			myURL = 'http://oceans12.warnerbros.com/cmp/teaser.html?id=teaser', popupName = 'trailerWin', popupWidth = 550, popupHeight = 500, mypopup = trailerWin, myX = 7, details = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width='+popupWidth+',height='+popupHeight+',top='+popupY+',left='+popupX;		} else if (arguments[0] == 'trailer2'){				myURL = 'http://oceans12.warnerbros.com/cmp/trailer.html?id=trailer', popupName = 'trailer2Win', popupWidth = 550, popupHeight = 500, mypopup = trailerWin, myX = 7, details = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width='+popupWidth+',height='+popupHeight+',top='+popupY+',left='+popupX;			} else if (arguments[0] == 'mastermind'){				myURL = 'http://www2.warnerbros.com/web/oceans12/sweeps/enter.jsp', popupName = 'mastermindWin', popupWidth = 800, popupHeight = 600, mypopup = mastermindWin, myX = 7, details = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width='+popupWidth+',height='+popupHeight+',top='+popupY+',left='+popupX;			} else if (arguments[0] == 'poster'){			myURL = 'posters/Red_Poster.html', popupName = 'posterWin', popupWidth = 565, popupHeight = 600, mypopup = posterWin, myX = 2, details = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+popupWidth+',height='+popupHeight+',top='+popupY+',left='+popupX;		}	var popupX = (screen.availWidth)? ((screen.availWidth - popupWidth) / myX): 20;	var popupY = (screen.availHeight)? ((screen.availHeight - popupHeight) / 3):20;	mypopup = window.open(myURL,popupName,details);	mypopup.focus();};function launchOceans12(){	openNewWindow('home.html','thewin','height='+ screen.availHeight + ',width='+ screen.availWidth + ',toolbar=no,scrollbars=no,resizable=yes');};function popupDesktops(sUrl){	sUrl = (typeof(sUrl) != 'undefined')?sUrl:'home.html';	openNewWindow(sUrl,'popwin','height=600,width=800,toolbar=no,scrollbars=yes,resizable=yes');};function popupShowtimes(sUrl){	sUrl = (typeof(sUrl) != 'undefined')?sUrl:'home.html';	openNewWindow(sUrl,'popwin','height=260,width=425,toolbar=no,scrollbars=no,resizable=no,statusbar=no');};function openNewWindow(URLtoOpen, windowName, windowFeatures) {	newWindow=window.open(URLtoOpen, windowName, windowFeatures);};function newImage(arg) {	if (document.images) {		rslt = new Image();		rslt.src = arg;		return rslt;	}};function changeImages() {	if (document.images && (preloadFlag == true)) {		for (var i=0; i<changeImages.arguments.length; i+=2) {			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];		}	}};function openPhotoGallery(photoId) {	var galleryWin = window.open("photo/photos_popup_"+photoId+".html","galleryWin","width=800,height=520,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no,status=yes");};function thumbHandler(event){	var evt = window.event?window.event:event;	var bOver = evt.type == 'mouseover';	this.childNodes[0].className = bOver?'on':'off';};function initThumbHandlers(){	var aLinks = document.getElementById('thumblinks').getElementsByTagName('a');	for (var i = 0; i < aLinks.length; i++){		aLinks[i].onmouseover = thumbHandler;		aLinks[i].onmouseout = thumbHandler;	}}