function popvideo(cominFrom, altTag, video) {
	// set url for popup window
	var url = "filmmakersforumpopup.asp?cominFrom="+ escape(cominFrom) +"&altTag="+ escape(altTag) +"&video="+ escape(video);
	
	// set width and height
	var width = "500";
	var height = "324";
	
	// open window
	PopUp(url, width, height);
}


function JavaScriptPopUp(url,width,height) {
	PopUp(url,width,height);
}

function PopUp(url,width,height) {
	var tiffpop = window.open(url,'tiffpop','width='+ width +',height='+ height +',toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,left=40,top=300');
	tiffpop.focus();
}

function MaxtixPopUp(url,width,height) {
	var tiffpop = window.open(url,'tiffpop','width='+ width +',height='+ height +',toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,left=40,top=0');
	tiffpop.focus();
}

function PopUp2(url,width,height) {
	var tiffpop = window.open(url,'tiffpop','width='+ width +',height='+ height +',toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no');
	tiffpop.focus();
}

function DOMGetElement(o) {
  if (document.getElementById) return document.getElementById(o);
  else if (document.all)             return document.all[o];
  else if (document.layers)          return document.layers[o];
  return null;
}

function DOMWindowGetXOffset() {
  if (document.getElementById || document.layers) return window.pageXOffset;
  else if (document.all)                          return document.body.scrollLeft;
}

function DOMWindowGetYOffset() {
  if (document.all)                                    return document.body.scrollTop;
  else if (document.getElementById || document.layers) return window.pageYOffset;
}

function DOMElementSetTopPos(o,aNum, val) {
  if (document.getElementById || document.all) {
    o.style.top = nav2LayerArray[1][aNum]+val;
  }
  else if (document.layers)                    o.pageY = val;
}

function DOMElementSetLeftPos(o,val) {
  if (document.getElementById || document.all) o.style.left = val;
  else if (document.layers)                    o.pageX = val;
}

function DOMElementSetVisible(o,val) {
  if (document.getElementById) o.style.visibility = val;
  else if (document.layers) {
    if (val == 'visible') val = 'show';
    o.visibility = val;
  }
}

function DOMWindowGetInnerWidth() {
  if (document.all)                                    return document.body.clientWidth;
  else if (document.getElementById || document.layers) return window.innerWidth;
}

function DOMWindowGetInnerHeight() {
  if (document.all)                                    return document.body.clientHeight;
  else if (document.getElementById || document.layers) return window.innerHeight;
}

function DOMElementGetHeight(o) {
  if (document.all)                 return o.clientHeight;
  else if (document.getElementById) return parseInt(o.offsetHeight);
  else if (document.layers)         return o.document.height;
}

function DOMElementGetWidth(o) {
  if (document.all)                 return o.clientWidth;
  else if (document.getElementById) return parseInt(o.offsetWidth);
  else if (document.layers)         return o.document.width;
}

/********* image preloader ***********/
function preloadImages() {
	var imgArray = document.images;
	var preloadImgArray = new Array();
	var regExp = /_off./g
	
	for (i = 0; i < imgArray.length; i++) {
		if (imgArray[i].src.indexOf("_off.") > -1) {
			preloadImgArray[i] = new Image();
			preloadImgArray[i].src = imgArray[i].src.replace(regExp, "_on.");
		}
	}
}

/********* code for handling flyout menus ***********/
var layerTimeout=0;
var firstLevelNavButton = null;
var secondLevelNavButton = null;

function showLayer(layerName,arrayNum, subHeight) {
  DOMElementSetLeftPos(DOMGetElement(layerName), DOMWindowGetInnerWidth()/2-((browser.isNS6up || browser.isMozilla) ? 261 : 252));
  DOMElementSetTopPos(DOMGetElement(layerName), arrayNum, subHeight);
  DOMElementSetVisible(DOMGetElement(layerName),"visible");
}

function clearTimer() {
	window.clearInterval(layerTimeout);
}

function setTimer() {
	layerTimeout = window.setTimeout('resetAllLayers()',20);
}

function resetAllLayers() {
	for (i=0; i<=nav2LayerArray[0].length-1; i++) {
		layerVal = nav2LayerArray[0][i];
    DOMElementSetVisible(DOMGetElement(layerVal),"hidden");
	}
	if (firstLevelNavButton != null){
		swapImageBack(firstLevelNavButton);
		firstLevelNavButton = null;
	}
}

function cleanupLayers(){
	window.clearInterval(layerTimeout);
	resetAllLayers();
}

function buttonRolloverOn(name){
	swapImage(name);
}

function buttonRolloverOnTop(name, top){
	swapImage(name);
	swapImage(top);
}

function buttonRolloverOff(name){
	var imageSrc = eval('document.images["'+name+'"].src');
	var newImageSrc = imageSrc.replace("_on.","_off.");
	document.images[name].src = newImageSrc;
}

function buttonRolloverOffTop(name, top){
	var timage = $("#" + top);
	var tlink  = $("#" + top).parent();
	var tpath = timage.attr("src");
	var tlinkpath = tlink.attr("href");
	
	var path = document.location.pathname;
	var indxresult=path.indexOf(tlinkpath);

/*	alert("img:"+tpath);
	alert("linkpath:"+tlinkpath);
	alert("currentpath:"+path);
	alert("index:"+indxresult); */
	
	var imageSrc = eval('document.images["'+name+'"].src');
	var newImageSrc = imageSrc.replace("_on.","_off.");
	document.images[name].src = newImageSrc;
	

	
	if ( path.indexOf(tlinkpath) < 0 ) {	
		buttonRolloverOff(top);
	}
}

function swapImageBack(name) {
	var imageSrc = eval('document.images["'+name+'"].src');
	var newImageSrc = imageSrc.replace("_on.","_off.");
	document.images[name].src = newImageSrc;
}

function swapImage(name) {
	var imageSrc = eval('document.images["'+name+'"].src');
	var newImageSrc = imageSrc.replace("_off.","_on.");
	document.images[name].src = newImageSrc;
}

function swap2ndLevelImage(name,layer) {
	if (browser.isIE5up||browser.isNS6up||browser.isMozilla||browser.isOpera) {
		var imageSrc = eval('document.images["'+name+'"].src');
		var newImageSrc = imageSrc.replace("_off.","_on.");
		eval('document.images["'+name+'"].src = newImageSrc');
	}else{
		var imageSrc = eval('document.menu'+layer+'.document.'+name+'.src');
		var newImageSrc = imageSrc.replace("_off.","_on.");
		eval('document.menu'+layer+'.document.'+name+'.src = newImageSrc');
	}
}

function swap2ndLevelImageBack(name,layer){
	if (browser.isIE5up||browser.isNS6up||browser.isMozilla||browser.isOpera) {
		var imageSrc = eval('document.images["'+name+'"].src');
		var newImageSrc = imageSrc.replace("_on.","_off.");
		eval('document.images["'+name+'"].src = newImageSrc');
	}else{
		var imageSrc = eval('document.menu'+layer+'.document.'+name+'.src');
		var newImageSrc = imageSrc.replace("_on.","_off.");
		eval('document.menu'+layer+'.document.'+name+'.src = newImageSrc');
	}
}

function openWindow(objPage, popW, popH, bScroll) {
  var w = 450, h = 340;
  if (document.all) {
    /* the following is only available after onLoad */
    w = document.body.clientWidth;
    h = document.body.clientHeight;
  } else if (document.layers) {
    w = window.innerWidth;
    h = window.innerHeight;
  }
  var leftPos = (w-popW)/2, topPos = (h-popH)/2;
  if (!window.windowRef) {
    // has not yet been defined
    windowRef = window.open(objPage,'popup','toolbar=0,scrollbars='+bScroll+',location=0,statusbar=0,menubar=0,resizable=no,width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos);
  } else {
    // has been defined
    if (!windowRef.closed) {
      // still open
      windowRef.focus();
    } else {
      windowRef = window.open(objPage,'popup','toolbar=0,scrollbars='+bScroll+',location=0,statusbar=0,menubar=0,resizable=no,width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos);
    }
  }
}
function popvideo(cominFrom, altTag, video) {
	// set url for popup window
	var url = "video_popup.asp?cominFrom="+ escape(cominFrom) +"&altTag="+ escape(altTag) +"&video="+ escape(video);
	
	// set width and height
	var width = "602";
	var height = "500";
	
	// open window
	PopUp(url, width, height);
}

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];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

// *** FUNCTION: Swap images for any Menu specified rollovers ***************** //

function swapMenuImage(imgDiv, imgName, newImg) {
  if (document.images) {
    if (document.layers) {
      eval('document.' + imgDiv + '.document.' + imgName + '.src = "' + newImg + '"');
    } else {
      eval('document.' + imgName + '.src = "' + newImg + '"');
    }
  }
}

function displayBio(bioArg) {
	switch(bioArg) {
		case "tb_aubreynealon":
			var bio = "<div class=\"divider\" style=\"margin-left: -2em;\"><br></div><p><br></p><h3>Aubrey Nealon</h3><p><img src=\"images/panel/aubreynealon_tb_on.jpg\"  class=\"floatl\">Aubrey Nealon grew up in the Slocan Valley in British Columbia. He graduated from the Canadian Film Centre and made the short films <i>Abe&rsquo;s Manhood</i> (00) and <i>In Memoriam</i> (01), which screened to acclaim around the world. At the 2005 Toronto International Film Festival&reg;, he premiered his first feature,<br><i><a href=\"http://www.topten.ca/2005/content/thelist/simplecurve.asp\" target=\"_blank\" class=\"red\">A Simple Curve (05)</a></i>, which was selected as one of Canada&rsquo;s Top Ten. He&rsquo;s currently directing episodic television and writing his next feature, a comedy called <i>A Man of Letters</i>.</p><br><p>"
			break
		case "tb_davidhamilton":
			var bio = "<div class=\"divider\" style=\"margin-left: -2em;\"><br></div><p><br></p><h3>David Hamilton</h3><p><img src=\"images/panel/davidhamilton_tb_on.jpg\"  class=\"floatl\">David Hamilton was the producer on <i><a href=\"http://www.topten.ca/2005/content/thelist/water.asp\" target=\"_blank\" class=\"red\">Water</a></i> when it was shut down by Hindu fundamentalist factions during the attempted shooting in India in 2000 and has worked together with Deepa Mehta over the past five years to re-assemble the production that was ultimately shot in Sri Lanka in 2004. He previously produced Deepa Mehta&rsquo; s critically acclaimed feature films <i>Fire</i> and <i>Earth</i> which he sold in conjunction with United Artists to over 40 countries worldwide. Following the original shutdown of <i><a href=\"http://www.topten.ca/2005/content/thelist/water.asp\" target=\"_blank\" class=\"red\">Water</a></i>, Hamilton collaborated once again with Mehta by producing <i>Bollywood/Hollywood,</i> which was shot in Toronto in late 2001, and the following year opened Perspective Canada at the Toronto International Film Festival. It was a box office success in Canada and sold in over 20 countries worldwide. He has also executive produced <i>Lunch With Charles</i>, a Hong Kong-Canadian co-production starring Sean Lau, Theresa Lee, Nicholas Lea and Bif Naked.</p><br><p>"
			break
		case "tb_helendutoit":
			var bio = "<div class=\"divider\" style=\"margin-left: -2em;\"><br></div><p><br></p><h3>Helen du Toit </h3><p><img src=\"images/panel/helendutoit_tb_on.jpg\"  class=\"floatl\">Helen du Toit is Program Director of the Vancouver Film and Television Forum. She has over 15 years experience in independent film and TV production, international festival programming and consulting. Du Toit has programmed for the Toronto and Palm Springs International Film Festivals, held the position of Artistic Director for the Palm Springs International Short Film Festival, has created and hosted panels of international experts and taught Independent Producing for the Canadian Screen Training Centre. As a producer, she has developed original ideas with writers and directors, worked closely with distributors and sales agents and pitched projects at international film financing conferences. Du Toit produced <i>Treed Murray</i>, a Genie award-winning feature film distributed internationally by Alliance Atlantis.</p><br><p>"
			break
		case "tb_jeanmarcvallee":
			var bio = "<div class=\"divider\" style=\"margin-left: -2em;\"><br></div><p><br></p><h3>Jean-Marc Vall&eacute;e</h3><p><img src=\"images/panel/jeanmarcvallee_tb_on.jpg\"  class=\"floatl\">Montreal filmmaker Jean-Marc Vall&eacute;e made his ground-breaking feature debut with <i>Liste Noire</i> (<i>Black List</i>) in 1995. The strikingly stylish erotic thriller was a first for its genre in Quebec cinema, and was honored with nine Genie Award nominations. Ten years later, he returned to French-language features with the internationally acclaimed hit, <i><a href=\"http://www.topten.ca/2005/content/thelist/crazy.asp\" target=\"_blank\" class=\"red\">C.R.A.Z.Y.</a></i> Blending a beguiling coming-of-age tale with a magical ode to outsiders of all ages, the powerful yet poignant <i><a href=\"http://www.topten.ca/2005/content/thelist/crazy.asp\" target=\"_blank\" class=\"red\">C.R.A.Z.Y.</a>&rsquo;s</i> intensely personal story embraces universal themes. The picture became a phenomenon; distributed in over fifty countries and winning some twenty international festival awards &ndash; including the prestigious &ldquo;Toronto-City Award for Best Canadian Feature&rdquo; at the 2005 Toronto International Film Festival, 11 Genie Awards, 15 Jutra Awards, and the Golden Reel Award as Canada&rsquo;s top-performer at the domestic box office.</p><p>Jean-Marc Vall&eacute;e has also flirted with Hollywood (<i>Strangers &ndash;1996, Los Locos-1997</i>), as well as completing the first two installments of his short film trilogy devoted to father-son relationships; a theme very close to the filmmaker&rsquo;s heart. <i>Les Fleurs magiques</i> (<i>Magical Flowers</i>, 1995)and <i>Les Mots magiques </i>(<i>Magical Words</i>, 1998) are individual pieces unified by a dream-like quality, and an eye for their subjects that is both tender and tortured. Both shorts were awarded numerous festival prizes at home, and abroad.</p><br><p>"
			break
		case "tb_lizjarvis":
			var bio = "<div class=\"divider\" style=\"margin-left: -2em;\"><br></div><p><br></p><h3>Liz Jarvis</h3><p><img src=\"images/panel/lizjarvis_tb_on.jpg\"  class=\"floatl\">Liz Jarvis is a co-founder of Buffalo Gal Pictures. She develops and produces challenging and diverse projects by creating collaborative relationships with creative talent and building successful co-production partnerships. Buffalo Gal Pictures has completed nine feature films, five television dramas, eight documentaries, and over 50 hours of television series. Recent credits - Guy Maddin&rsquo;s <i><a href=\"http://www.topten.ca/2003/content/10.html\" target=\"_blank\" class=\"red\">The Saddest Music in the World</a></i> with Isabella Rossellini and Seven Times Lucky, with Kevin Pollak. Both films played at the Toronto International Film Festival and the Sundance Film Festival.</p><br><p>"
			break
		case "tb_lorraineclark":
			var bio = "<div class=\"divider\" style=\"margin-left: -2em;\"><br></div><p><br></p><h3>Lorraine Clark</h3><p><img src=\"images/panel/lorraineclark_tb_on.jpg\"  class=\"floatl\">Lorraine Clark worked on the internationally syndicated show MovieTelevision for the past 17 years. That was where she developed her love of Canadian film. She spent a good part of her time on the show covering and spending time with Canadian actors and filmmakers. She was also one of the producers of the annual CityTV Festival Schmooze which champions independent Canadian film. She enjoys watching a good blockbuster every now and then as well. Lorraine is now a freelance TV producer.</p><br><p>"
			break
		case "tb_manondumais":
			var bio = "<div class=\"divider\" style=\"margin-left: -2em;\"><br></div><p><br></p><h3>Manon Dumais</h3><p><img src=\"images/panel/manondumais_tb_on.jpg\"  class=\"floatl\">Based in Montreal, the city of 1001 film festivals, journalist Manon Dumais is the film editor of weekly <i>Voir</i>, which she joined in 2001. Over the years, she has also written film reviews for <i>La Presse, S&eacute;quences</i> and the press agency M&eacute;diafilm. In 2000, she published a book on writer/filmmaker/film producer Hubert Aquin. When she's not writing entries on her brand new blog, she's trying to finish her second book on Aquin.</p><br><p>"
			break
		case "tb_margueritepigott":
			var bio = "<div class=\"divider\" style=\"margin-left: -2em;\"><br></div><p><br></p><h3>Marguerite Pigott</h3><p><img src=\"images/panel/margueritepigott_tb_on.jpg\"  class=\"floatl\"><p>Marguerite is a Programmer on the Canadian Feature Film Selection Committee at the Toronto International Film Festival. She is also a consultant focusing on story development, project marketability and production financing. Recent clients include Alberta Filmworks, Amaze Film + TV, CBC, Conquering Lion, CTV, Screen Sirens and Slanted Wheel. She is accepted by Telefilm Canada as a Market Expert for the Packaging phase. Previously, Marguerite was Vice President of Development and Production for Odeon Films, an Alliance Atlantis Company. In this capacity, she oversaw the evaluation, selection, development and production of Canadian projects acquired for distribution. She Executive Produced <i><a href=\"http://www.topten.ca/2004/content/ralph.asp\" target=\"_blank\" class=\"red\">Saint Ralph</a></i>, <i>Fubar</i>, <i><a href=\"http://www.filmreferencelibrary.ca/index.asp?layid=44&csid1=111&navid=46\" target=\"_blank\" class=\"red\">waydowntown</a></i>, <i><a href=\"http://www.topten.ca/2002/content/03.html\" class=\"red\">Flower and Garnet</a></i> and others.&nbsp;&nbsp;</p></p><br><p>"
			break
		case "tb_raymondmassey":
			var bio = "<div class=\"divider\" style=\"margin-left: -2em;\"><br></div><p><br></p><h3>Raymond Massey</h3><p><img src=\"images/panel/raymondmassey_tb_on.jpg\"  class=\"floatl\">Raymond Massey has been pursuing filmmaking since 1983 and in 1989 he produced his first feature. He has since completed another 20 movies in varying capacities as producer, executive producer, and line producer. In 1989 Massey completed a producer residency at the Canadian Film Centre. Award-winning titles by Massey include <i>Impolite</i>, <i>Whale Music</i>, <i>Lives of Girls &amp; Women</i>, <i>My Father&rsquo;s Angel</i>, <i>Spirit Bear</i>, <i>Long Life Happiness &amp; Prosperity</i> and Lynne Stopkewich&rsquo;s <i>Suspicious River</i>. In recent years, Massey has line produced several movies including <i>Gray Matters</i> and <i>Kickin&rsquo; It Old Skool</i> for the Yari Film Group. Massey now produces movies and television with Network Entertainment in Vancouver.</p><br><p>"
			break
		case "tb_thomfitzgerald":
			var bio = "<div class=\"divider\" style=\"margin-left: -2em;\"><br></div><p><br></p><h3>Thom Fitzgerald</h3><p><img src=\"images/panel/thomfitzgerald_tb_on.jpg\"  class=\"floatl\">Thom Fitzgerald was born and raised in New Rochelle, New York. He studied at Cooper Union College, then moved to Halifax to attend the Nova Scotia College of Art and Design. He has remained active in the city's film and video community and worked extensively with the Charlatan Theatre Collective. His feature<i> <a href=\"http://www.filmreferencelibrary.ca/index.asp?layid=44&csid1=78&navid=46\" class=\"red\">The Hanging Garden (97)</a></i> won four Genie Awards and was the first English-Canadian film to win the most popular film award at the Festival. His other features include <i>Beefcake</i> (99), <i>The Wild Dogs</i> (02), <i>The Event</i> (02) and <i>3 Needles </i>(05).</p><br><p>"
			break
		default: 
			var bio = ""
	}
	//
	if (document.getElementById) {//newer browsers
 		document.getElementById("biotag").innerHTML=bio;
	} else if (document.all) {// IE4(obsolete really)
 		document.all.imagetext.innerText=bio;
	} else if (document.layers) {//NS4.x
		var d=document.shell.document.layers["inside"];
		 d.document.write(bio);
		 d.document.close();
	}
}


function displayFevent(feventArg) {
	switch(feventArg) {
		case "ev_awayfromher":
			var fevent = "<p><a href=\"awayfromher.asp\"><h4 class=\"red\">Away From Her</h4></a>Directed by Sarah Polley<br><br>Screening: <h4 class=\"red\" align=\"center\">Friday, February 2 at 8:15 PM</h4><center>Sarah Polley in person.</center></p><br>Sarah Polley’s fiercely intelligent and nuanced work as an actor has made a significant contribution to the rise of cinema in English Canada. Her feature debut as director gives us something more: a tremendous, touching film showcasing two other phenomenal actors at their best...<br><br><a href=\"javascript:PopUp('away1.html',400,275);\"><img src=\"images/film/awayfromher_tb1.jpg\" alt=\"Away From Her\" border=\"0\" class=\"eventr\"></a></p></p>"
			break
		case "ev_congorama":
			var fevent = "<p><a href=\"congorama.asp\"><h4 class=\"red\">Congorama</h4></a>Directed by Philippe Falardeau <br><br>Screening: <h4 class=\"red\" align=\"center\">Thursday, February 1 at 8:45 PM</h4><center>Philippe Falardeau in person.</center></p><br>The beautifully realized Congorama interweaves families, fathers and sons, secrets and discoveries, unknown possibilities – and an emu. A down-on-his-luck Belgian inventor whose work never seems to pan out as expected, Michel learns from his successful but now paralyzed father that he was adopted...<br><br><img src=\"images/buytickets_button.jpg\" /><br /><br /></p>"
			break
		case "ev_dimanche":
			var fevent = "<p><a href=\"undimancheakigali.asp\"><h4 class=\"red\">Un Dimanche a Kigali</h4></a>Directed by Robert Favreau <br><br>Screening: <h4 class=\"red\" align=\"center\">Saturday, February 3 at 8:30 PM</h4><center>Robert Favreau in person.</center></p><br>Un Dimanche à Kigali moves between two time periods – before the Rwandan genocide and after – and the juxtaposition starkly reveals the devastation that took place over one hundred days. In the days leading up to the atrocities, journalist Bernard Valcourt meets Gentille, a waitress at a hotel, and they become involved...<br><br><img src=\"images/buytickets_button.jpg\" /></p>"
			break
		case "ev_journals":
			var fevent = "<p><a href=\"thejournalsofknudrasmussen.asp\"><h4 class=\"red\">The Journals of Knud Rasmussen</h4></a>Directed by Zacharias Kunuk, Norman Cohn<br><br>Screening: <h4 class=\"red\" align=\"center\">Friday, January 26 at 6:30 PM</h4></p><br>A poetic, elliptical account of the first contact between European explorers and the Inuit, The Journals of Knud Rasmussen is quite likely the first feature film depiction of this encounter from the Inuit perspective; the film is not only a startling work of art but a cultural and historical event...<br><br><img src=\"images/buytickets_button.jpg\" /><br /><br /></p>"
			break
		case "ev_manufactured":
			var fevent = "<p><a href=\"manufacturedlandscapes.asp\"><h4 class=\"red\">Manufactured Landscapes</h4></a>Directed by Jennifer Baichwal<br><br>Screening: <h4 class=\"red\" align=\"center\">Tuesday, January 30 at 8:45 PM</h4><center>Jennifer Baichwal in person.</center></p><br>The powerful and compelling Manufactured Landscapes is ostensibly a portrait of Edward Burtynsky, the celebrated Canadian photographer who specializes in large-scale studies of industrial vistas. But as anyone who’s seen Baichwal’s previous work would expect, the film is far more...<br><br><img src=\"images/buytickets_button.jpg\" /><br /><br /></p>"
			break
		case "ev_monkey":
			var fevent = "<p><a href=\"monkeywarfare.asp\"><h4 class=\"red\">Monkey Warfare</h4></a>Directed by Reginald Harkema <br><br>Screening: <h4 class=\"red\" align=\"center\">Saturday, January 27 at 8:45 PM</h4><center>Reginald Harkema & guests in person.</center></p><br>In his third film, director Reginald Harkema transplants Jean-Luc Godard’s La Chinoise to a ramshackle house in Toronto, where bohemians Dan and Linda eke out an existence scavenging in garbage dumps and rummaging through yard sales. Their evenings are spent getting listlessly baked...<br><br><img src=\"images/buytickets_button.jpg\" /><br /><br /></p>"
			break
		case "ev_radiant":
			var fevent = "<p><a href=\"radiantcity.asp\"><h4 class=\"red\">Radiant City</h4></a>Directed by Gary Burns, Jim Brown <br><br>Screening: <h4 class=\"red\" align=\"center\">Monday, January 29 at 8:45 PM</h4><center>Gary Burns & Jim Brown in person</center></p><br>Gary Burns and Jim Brown peer into the windows – and lives – of those who call suburbia home. Suburban communities are examined and criticized by experts like University of Toronto’s Mark Kingwell and author James Howard Kunstler. The legacy of the suburbs is traced from the rise...<br><br><img src=\"images/buytickets_button.jpg\" /><br /><br /></p>"
			break
		case "ev_sharkwater":
			var fevent = "<p><a href=\"sharkwater.asp\"><h4 class=\"red\">Sharkwater</h4></a>Directed by Rob Stewart<br><br>Screening: <h4 class=\"red\" align=\"center\">Sunday, January 28 at 1:00 PM</h4></p><br>The gifted underwater photographer Rob Stewart – whose work is all over prominent wildlife magazines – spent years making this inspirational documentary. An achingly beautiful plea for conservation, Sharkwater is also a reasoned defense of the shark’s place in our ecosystem...<br><br><img src=\"images/buytickets_button.jpg\" /><br /><br /></p>"
			break
		case "ev_rizzi":
			var fevent = "<p><a href=\"surlatracedigorrizzi.asp\"><h4 class=\"red\">Sur la trace d'Igor Rizzi</h4></a>Directed by Noël Mitrani <br><br>Screening: <h4 class=\"red\" align=\"center\">Wednesday, January 31 at 8:45 PM</h4><center>Noël Mitrani in person.</center></p><br>Twelve years after his star has faded, Jean-Marc Thomas is a destitute, former pro soccer player who is heartbroken over the death of his lost love and haunted by the regret of never having told her his true feelings...<br><br><img src=\"images/buytickets_button.jpg\" /><br /><br /></p>"
			break
		case "ev_trailer":
			var fevent = "<p><a href=\"trailerparkboysthemovie.asp\"><h4 class=\"red\">Trailer Park Boys: The Movie</h4></a>Directed by Mike Clattenburg<br><br>Screening: <h4 class=\"red\" align=\"center\">Friday, January 26 at 9:00 PM</h4></p><br>Clattenburg’s adaptation of his beloved cult hit TV show is simultaneously hilarious, caustic, raucous, and touching. Focusing on the misadventures of three lifelong pals who have basically spent their entire lives either in the Sunny Vale Trailer Park or the nearest prison....<br><br><img src=\"images/buytickets_button.jpg\" /><br /><br /></p>"
			break
		default: 
			var fevent = ""
	}
	//
	if (document.getElementById) {//newer browsers
 		document.getElementById("feventtag").innerHTML=fevent;
	} else if (document.all) {// IE4(obsolete really)
 		document.all.imagetext.innerText=fevent;
	} else if (document.layers) {//NS4.x
		var d=document.shell.document.layers["inside2"];
		 d.document.write(fevent);
		 d.document.close();
	}
}

function moveDivUp()
{
  // get the stylesheet  //
  var the_style = getStyleObject("menu1");
  if (the_style)
  {
    // get the current coordinate and add 5    //
    var current_top = parseInt(the_style.top);
    var new_top = current_top - 11;
  	a = 1;
    // set the left property of the DIV, add px at the   // end unless this is NN4    //
    if (document.layers) 
    {
      the_style.top = new_top;
    }
    else 
    {  
      the_style.top = new_top + "px";
    }
    
    // if we haven't gone to far, call moveDiv() again in a bit    // 
    if (new_top > -210)
    {
      the_timeout = setTimeout('moveDivUp();',30);

    }
  }
}

function moveDivDwn()
{
  // get the stylesheet  //
  var the_style = getStyleObject("menu1");
  if (the_style)
  {
    // get the current coordinate and add 5    //
    var current_top = parseInt(the_style.top);
    var new_top = current_top + 11;
 	a = 2;
    // set the left property of the DIV, add px at the  // end unless this is NN4   //
    if (document.layers) 
    {
      the_style.top = new_top;
    }
    else 
    {  
      the_style.top = new_top + "px";
    }
    
    // if we haven't gone to far, call moveDiv() again in a bit   //    
	if (new_top < -20)
    {
      the_timeout = setTimeout('moveDivDwn();',30);
	 
    }
  }
}

function moveDiv() {
	if(a == 1)
	{
	moveDivDwn(), 80
	}
	else if (a == 2)
	{
	moveDivUp(), 80
	}
}

function getStyleObject(objectId) {
    // cross-browser function to get an object's style object given its
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
} // getStyleObject


function hideLayer(whichLayer) {

	if (document.getElementById) {
	// this is the way the standards work
	document.getElementById(whichLayer).style.display = "none";
	}
	else if (document.all) {
	// this is the way old msie versions work
	document.all[whichlayer].style.display = "none";
	}
	else if (document.layers) {
	// this is the way nn4 works
	document.layers[whichLayer].display = "block";
	}

}

function showLayer(whichLayer) {

	if (document.getElementById) {
	// this is the way the standards work
	document.getElementById(whichLayer).style.display = "inline";
	}
	else if (document.all) {
	// this is the way old msie versions work
	document.all[whichlayer].style.display = "inline";
	}
	else if (document.layers) {
	// this is the way nn4 works
	document.layers[whichLayer].display = "inline";
	}

}

function handleClick(whichClick) {

	if (whichClick == "hide it") {
	// then the user wants to hide the layer
	hideLayer("screenmore");
	hideLayer("hidebutton");
	showLayer("showbutton");
	}
	else if (whichClick == "show it") {
	// then the user wants to show the layer
	showLayer("screenmore");
	showLayer("hidebutton");
	hideLayer("showbutton");
	}

}
