var imgToUpdate;var imgUpdateInterval;var currentPic;var prevPIC;var nextPIC;var totalPic;function initUpdate(whichIMG,interval) {	imgUpdateInterval = interval;	imgToUpdate = whichIMG;	upDateLoop();}function updateLiveImage() {			myImg = document.images[imgToUpdate];	myImg.src = "model.jpg?refresh="+Math.ceil(Math.random()*20000000033);		}function upDateLoop() {	updateLiveImage();	setTimeout("upDateLoop()", imgUpdateInterval);}/////////////// OPEN CONSOLE ///////////////function popLiveConsole() {	w = 820;	h = 640;	l = Math.ceil((screen.width-w)/2);	t = Math.ceil((screen.height-h)/3);	proj = 'liveConsole';	consoleURL = '/projects/cannes06/live/';	arg = 'width='+w+',height='+h+',left='+l+',top='+t+', scrollbars=no';	popup = (document.layers) ? window.open(consoleURL, proj, arg) : window.open(consoleURL, proj, arg);	popup.focus();	}///////////// GALLERY PREV/NEXT ///////////////currentPic = 1;prevPIC = 1;nextPIC = 1;totalPic = 12;function prev() {	if (currentPic>1) {		currentPic--;	} else {		currentPic=totalPic;	}	for (i=1;i<=totalPic;i++) {		hidePIC = 'gallery'+i;		if(document.getElementById) {			document.getElementById(hidePIC).style.visibility = 'hidden';		} else if(document.layers) {			document.layers[hidePIC].style.visibility = 'hidden';		} else {			document.all[hidePIC].style.visibility = 'hidden';		}			}	prevPIC = 'gallery'+currentPic;	if(document.getElementById) {		document.getElementById(prevPIC).style.visibility = 'visible';		document.getElementById('navnum').innerHTML = '('+currentPic+' of '+totalPic+')';	} else if(document.layers) {		document.layers[prevPIC].style.visibility = 'visible';		document.layers['navnum'].innerHTML = '('+currentPic+' of '+totalPic+')';	} else {		document.all[prevPIC].style.visibility = 'visible';		document.all['navnum'].innerHTML = '('+currentPic+' of '+totalPic+')';	}}function next() {	if (currentPic<totalPic) {		currentPic++;	} else {		currentPic=1;	}	for (i=1;i<=totalPic;i++) {		hidePIC = 'gallery'+i;		if(document.getElementById) {			document.getElementById(hidePIC).style.visibility = 'hidden';		} else if(document.layers) {			document.layers[hidePIC].style.visibility = 'hidden';		} else {			document.all[hidePIC].style.visibility = 'hidden';		}	}	nextPIC = 'gallery'+currentPic;	if(document.getElementById) {		document.getElementById(nextPIC).style.visibility = 'visible';		document.getElementById('navnum').innerHTML = '('+currentPic+' of '+totalPic+')';	} else if(document.layers) {		document.layers[nextPIC].style.visibility = 'visible';		document.layers['navnum'].innerHTML = '('+currentPic+' of '+totalPic+')';	} else {		document.all[nextPIC].style.visibility = 'visible';		document.all['navnum'].innerHTML = '('+currentPic+' of '+totalPic+')';	}}