//This sets a date variable

var     oneDate        = new Date();

var     theYear         = oneDate.getFullYear();

var     terms  = "2003-"+ theYear +""

var infohmcopyright = "<p><table width='610'><tr><td class='copy'><a href='/html/info/webmaster.htm' class='home'>Contact us</a> | <a href='/html/info/sitemap.htm' accesskey='2' class='home'>Site map</a> | <a href='/html/info/access.htm' accesskey='0' class='home'>Accessibility</a> | <a href='/html/info/privacy.htm' class='home'>Privacy policy</a></td><td class='copy' align='left'><table cellpadding='5'><tr><td align='left'><a href='http://www.proquest.co.uk' target='_blank'><img src='/images/chhome.gif' alt='Chadwyck-Healey logo' title='Chadwyck-Healey logo' width='48' height='33' border='0'></a></td><td><a href='http://www.bfi.org.uk' target='_blank' class='home'><img src='/images/bfilogobwbg.gif' alt='British Film Institute logo' title='British Film Institute logo' width='77' height='43' border='0'></a></td></tr></table></td></tr><tr><td class='copy' colspan='2'><a href='/html/info/terms.htm' class='home'>Data copyright</a> &copy; <SCRIPT>document.writeln(terms);</SCRIPT> British Film Institute.<br><a href='/html/info/terms.htm' class='home'>Data arrangement and software copyright</a> &copy; <SCRIPT>document.writeln(terms);</SCRIPT> ProQuest LLC.<br>Images &copy; Getty Images.<br>All Rights Reserved. </td></tr></table></p>";

var help = "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td class='ltBlue'><img src='/images/lt66ccff.gif' width='60' height='10' alt=''></td><td class='dkBlue' width='99%'>&nbsp;</td></tr><tr><td class='dkBlue'><a href='/'><img src='/images/logo1.gif' alt='Film Index International logo' title='Film Index International logo' width='60' height='63' border='0'></a></td><td class='ltBlue'><a href='/'><img src='/images/logo2.gif' alt='logo' title='logo' width='140' height='63' border='0'></a></td></tr><tr><td class='ltBlue' width='60'>&nbsp;</td><td valign='middle' class='dkBlue'><table cellspacing='0' cellpadding='5'><tr><td><a href='/' class='nav' accesskey='1'>Home</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='/html/info/index.htm' class='nav'>About</a></td></tr></table></td></tr></table>";

var copyright = "<br><br><img src='/images/dk3399ff.gif' width='610' height='1' alt=''><br><br><table width='610'><tr><td class='xSmall'><a href='/html/info/webmaster.htm'>Contact us</a> | <a href='/html/info/sitemap.htm' accesskey='2'>Site map</a> | <a href='/html/info/access.htm' accesskey='0'>Accessibility</a> | <a href='/html/info/privacy.htm'>Privacy policy</a></td><td class='xSmall' align='left'><table cellpadding='5'><tr><td><a href='http://www.proquest.co.uk' target='_blank'><img src='/images/ch.gif' alt='Chadwyck-Healey logo' title='Chadwyck-Healey logo' width='48' height='33' border='0'></a></td><td><a href='http://www.bfi.org.uk' target='_blank'><img src='/images/bfilogocmyk.gif' alt='British Film Institute logo' title='British Film Institute logo' width='77' height='43' border='0'></a></td></tr></table></td></tr><tr><td class='xSmall' colspan='2'><a href='/html/info/terms.htm'>Data copyright</a> &copy; <SCRIPT>document.writeln(terms);</SCRIPT>British Film Institute.<br><a href='/html/info/terms.htm'>Data arrangement and software copyright</a> &copy; <SCRIPT>document.writeln(terms);</SCRIPT> ProQuest LLC. <br>All Rights Reserved. </td></tr></table>";

var newWin = null;
function popUp(strURL, strType, strWidth, strHeight) {  
	if (newWin != null && !newWin.closed)    
	newWin.close();  
	var strOptions="";
	  
	if (strType=="promo")
	strOptions="top=50,left=50,width="+strWidth+",height="+strHeight; 
 
	newWin = window.open(strURL, 'newWin', strOptions);  
	newWin.focus();
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}	

/* This is the array which hold the images. Because of the way the script is currently working the second image in the array is the one which is visible first, sort of. I don't think this has much effect on the visual impact though*/
	
	aadImages = new Array("/images/home/laconfidential.jpg","/images/home/laconfidential.jpg","/images/home/motorcyclediaries.jpg","/images/home/standbyme.jpg","/images/home/shrek.jpg","/images/home/timburton.jpg","/images/home/holygrail.jpg","/images/home/nicole2.jpg","/images/home/sidjames.jpg","/images/home/nyman.jpg","/images/home/bardot.jpg","/images/home/luhr.jpg","/images/home/greenaway.jpg","/images/home/vitti.jpg","/images/home/ua.jpg","/images/home/chow.jpg","/images/home/bogart.jpg","/images/home/audrey.jpg","/images/home/buster.jpg","/images/home/dench.jpg","/images/home/garbo.jpg","/images/home/jack.jpg","/images/home/singin.jpg","/images/home/audreyt.jpg","/images/home/fellini.jpg","/images/home/spanish.jpg","/images/home/brando.jpg","/images/home/goran.jpg","/images/home/kane.jpg","/images/home/rai.jpg","/images/home/lifebrian.jpg","/images/home/merchantivory.jpg","/images/home/orlando.jpg","/images/home/boy.jpg","/images/home/spacey.jpg","/images/home/ingmar.jpg","/images/home/rashomon.jpg","/images/home/connery.jpg","/images/home/spiel.jpg","/images/home/chinese.jpg","/images/home/jackie.jpg","/images/home/ingrid.jpg","/images/home/kingkong.jpg","/images/home/lumiere.jpg","/images/home/olivier.jpg","/images/home/egypt.jpg","/images/home/superman.jpg","/images/home/davika.jpg","/images/home/eisen.jpg","/images/home/jackie.jpg")
	thisAd = 0
	imgCt = aadImages.length

/* There is a rotate function set for each of the arrays. The only code that'll need tweaking here will be the last line of the function in each case: setTimeout("rotate1()", 1 * 1000) to break this down "rotate1()" is the name of the function, 1 * 1000 is setting the time on the rotation to 1 * 1000 millisceonds = 1 second. Only the 1 needs to be changed depending on how fast you want the rotation to be.*/

	function rotate1() {
		if (document.images) {
			if (document.ro1.complete) {
					thisAd++
				if (thisAd == imgCt) {
					thisAd = 0
				
				}
				document.ro1.src=aadImages[thisAd]
			}
		  	setTimeout("rotate1()", 3 * 1000)
		}
	}