// See the README.txt file included with the delivered site for a reference// to how this stuff all works =) ~jforcier@IconNicholson// Film object -- just a data placeholderfunction Film(title,director,country,blurb,still,nowPlaying,nowPlayingLink,moreLink,x,y) {	this.title = title; // Normal text	this.director = director; // Normal text	this.country = country; // Lowercase country name	this.blurb = blurb; // Normal text	this.still = still; // Lowercase still filename (minus extension, file must be .jpg)	this.nowPlaying = nowPlaying; // Normal text	this.nowPlayingLink = nowPlayingLink; // URL	this.moreLink = moreLink; // URL	this.pointX = x;	this.pointY = y;}// Films array - in order of film appearance in the filmstrip.// Change order of items in this array to change the filmstrip order.// Add new Film objects to add items to the filmstrip.// REMEMBER that last item should NOT have a trailing comma after its closing// parentheses!// NOTE that getting the X and Y values for the map location will take lots of trial and error!var Films = new Array(	new Film(		"Global Lens 2008",		"Trailer",		"usa",		"Every person has a voice! Every voice tells a story. Every story reveals a world. The Global Film Initiative proudly presents an extrordinary series of ten feature films.  &#40;For more viewing options, please click &quot;More Info&quot;&#41;",		"globallens2008",		"VIEW TRAILER",		"global_lens.htm",		"global_lens.htm",		3,		20	),	new Film(		"All For Free",		"Antonio Nui&#263;",		"croatia",		"Personal tragedy leads a young man to buy a mobile refreshment truck and embark on a darkly humorous and quixotic journey across post&#45;war Bosnia&#45;Herzegovina.",		"allforfree",		"Various Locations",		"http://www.globalfilm.org/calendar.php",		"http://www.globalfilm.org/lens08/all_for_free.htm",		105,		20	),	new Film(		"The Bet Collector",		"Jeffrey Jeturian",		"philippines",		"A resilient housewife&#39;s job of collecting cash bets on an illegal numbers&#45;game takes a psychological toll on her in the days before All Saints&#39 Day.",		"betcollector",		"Various Locations",		"http://www.globalfilm.org/calendar.php",		"http://www.globalfilm.org/lens08/bet_collector.htm",		175,		40	),	new Film(		"Bunny Chow",		"John Barker",		"southafrica",		"Three up&#45;and&#45;coming comedians head out on a road trip, abandoning rules, reason and girlfriends to find music and the meaning of life in the &lsquo;new&rsquo; South Africa. ",		"bunnychow",		"Various Locations",		"http://www.globalfilm.org/calendar.php",		"http://www.globalfilm.org/lens08/bunny_chow.htm",		110,		65	),	new Film(		"The Custodian",		"Rodrigo Moreno",		"argentina",		"A man&#39;s threshold for the mundane is chronicled by the uneventful days of his life as a bodyguard for a high profile politician.",		"custodian",		"Various Locations",		"http://www.globalfilm.org/calendar.php",		"http://www.globalfilm.org/lens08/custodian.htm",		45,		80	),	new Film(		"The Fish Fall In Love",		"Ali Raffi",		"iran",		"A resourceful woman uses food to persuade a former lover to allow her and her friends to continue operating a restaurant in a home he owns.",		"fishfallinlove",		"Various Locations",		"http://www.globalfilm.org/calendar.php",		"http://www.globalfilm.org/lens08/fish_fall_in_love.htm",		135,		35	),	new Film(		"Kept & Dreamless",		"Vera Fogwill and Mart&Iacute;n Desalvo",		"argentina",		"Set during Argentina&#39;s economic crisis of the &#39;90s, a drug&#45;addicted mother struggles to keep her life afloat with the aid of her fiercely affectionate nine year&#45;old daughter. ",		"kept&dreamless",		"Various Locations",		"http://www.globalfilm.org/calendar.php",		"http://www.globalfilm.org/lens08/kept_&_dreamless.htm",		45,		80	),	new Film(		"The Kite",		"Randa Chahal Sabbag",		"lebanon",		"A Lebanese girl, arranged to marry a stranger from a neighboring village, realizes she is in love with the Israeli solider guarding the border between her and her soon&#45;to&#45;be husband.",		"kite",		"Various Locations",		"http://www.globalfilm.org/calendar.php",		"http://www.globalfilm.org/lens08/kite.htm",		115,		32	),	new Film(		"Let The Wind Blow",		"Partho Sen&#45;Gupta",		"india",		"At the height of nuclear&#45;tensions between India and Pakistan, a restless group of friends weigh the bitter reality of their lives against fate and the philosophy of a nation.",		"letthewindblow",		"Various Locations",		"http://www.globalfilm.org/calendar.php",		"http://www.globalfilm.org/lens08/let_the_wind_blow.htm",		140,		40	),	new Film(		"Luxury Car",		"Wang Chao",		"china",		"A man travels to the city to visit his daughter&#151;a karaoke bar escort&#151;hoping to fulfill his wife&#39;s last wish of finding their missing son.",		"luxurycar",		"Various Locations",		"http://www.globalfilm.org/calendar.php",		"http://www.globalfilm.org/lens08/luxury_car.htm",		170,		30	),	new Film(		"Opera Jawa",		"Garin Nugroho",		"indonesia",		"In the lush interior of Java, a potter&#39;s wife is seduced into a tragic love triangle in this stylish adaptation of the Hindu epic,<em> The Ramayana</em>.",		"operajawa",		"Various Locations",		"http://www.globalfilm.org/calendar.php",		"http://www.globalfilm.org/lens08/opera_jawa.htm",		170,		55		));// Function to fill in filmstrip with images// Also doubles as initializer--sets elements to pre-click emptiness or defaultsfunction fillFilmstrip() {	// fills filmstrip	for(var i=0;i<Films.length;i++)		document.getElementById(i+'').src="img/stills/"+Films[i].still+".jpg";		// sets filmstrip length	document.getElementById("strip").style.width = ((Films.length * 151)+2) + "px";		// remove title left margin for initial setup (where there is no flag to the left)	document.getElementById("title").style.marginLeft = "0";		document.getElementById("bt").style.background = "none";	document.getElementById("bm").style.background = "none";	document.getElementById("bb").style.background = "none";		// sets initial background of film info area & removes display of elements 	/*document.getElementById("filmInfo").style.backgroundImage = "url(img/bg_message.gif)";	document.getElementById("filmInfo").style.backgroundPosition = "0 20px";	document.getElementById("filmInfo").style.backgroundRepeat = "no-repeat";*/	document.getElementById("filmInfo").style.background = "transparent url(img/bg_message.gif) 0 20px no-repeat";			}// Function to set film info area contents for a filmfunction setFilmInfo(index) {		// reverse styles / contents that are set on load	document.getElementById("title").style.marginLeft = "10px";	document.getElementById("np").innerHTML = "NOW PLAYING";	document.getElementById("moreLink").innerHTML = "More info &gt;";	document.getElementById("filmInfo").style.background = "none";		document.getElementById("bt").style.background = "transparent url(img/bg_blurb-top.gif) top left no-repeat";	document.getElementById("bm").style.background = "transparent url(img/bg_blurb.gif) top left repeat-y";	document.getElementById("bb").style.background = "transparent url(img/bg_blurb-bottom.gif) top left no-repeat";		// get the associated object	var f = Films[index];	// clear active-ness for all films	for(var i=0;i<Films.length;i++)		document.getElementById("ph"+i).className = "ph";			// set active-ness for the clicked film	document.getElementById("ph"+index).className = "ph active";		// set the info	document.getElementById("flag").src = "img/flags/"+f.country+".gif";	document.getElementById("title").innerHTML = f.title;	document.getElementById("director").innerHTML = f.director;	document.getElementById("blurb").innerHTML = f.blurb;	document.getElementById("nowPlaying").innerHTML = f.nowPlaying;	document.getElementById("nowPlaying").href = f.nowPlayingLink;	document.getElementById("moreLink").href = f.moreLink;			document.getElementById("point").src = "img/img_point.gif";	document.getElementById("point").style.left = f.pointX+"px";	document.getElementById("point").style.top = f.pointY+"px";		}