// JavaScript Document
var titreFilm = "Titre du film | Etc...";

function popSite() { mWindow.openCenterScroll("home.html",titreFilm,mScreen.getWidth(),mScreen.getHeight());};
function popWindow($s){	mWindow.openCenter("http://url.com",titreFilm,width=550,height=500);};
function popfull(){ window.open("http://url.com",'titre'); }

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 newImage(arg) {
	if (document.images) {
		reslt = new Image();
		reslt.src = arg;
		return reslt;
	}
}
var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		enter_over = newImage("imgs/enter-over.jpg");
		preloadFlag = true;
	}
}
/* 
Methods for resizing the flash stage at runtime.

setFlashWidth(divid, newW)
divid: id of the div containing the flash movie.
newW: new width for flash movie

setFlashWidth(divid, newH)
divid: id of the div containing the flash movie.
newH: new height for flash movie

setFlashSize(divid, newW, newH)
divid: id of the div containing the flash movie.
newW: new width for flash movie
newH: new height for flash movie

canResizeFlash()
returns true if browser supports resizing flash, false if not. 
*/
function setFlashWidth(divid, newW){
	document.getElementById(divid).style.width = newW+"px";
}
function setFlashHeight(divid, newH){
	document.getElementById(divid).style.height = newH+"px";		
}
function setFlashSize(divid, newW, newH){
	setFlashWidth(divid, newW);
	setFlashHeight(divid, newH);
}
function canResizeFlash(){
	var ua = navigator.userAgent.toLowerCase();
	var opera = ua.indexOf("opera");
	if( document.getElementById ){
		if(opera == -1) return true;
		else if(parseInt(ua.substr(opera+6, 1)) >= 7) return true;
	}
	return false;
}