function loadpic(pic) {
	parent.document.getElementById('pictures').innerHTML='<img src=../gfx/photos/'+pic+'>'
}

	//Funciones para el Rollover de imagenes
	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.0
	  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 && document.getElementById) x=document.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 confirmation()
{
	var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;
	if(document.getElementById('mailinglist').value.match(emailExp))
	{
		var answer = confirm("Confirm the information below \n e-mail: "+document.getElementById('mailinglist').value)
		if (answer)
		{
			window.location = "mailinglist.php?email="+document.getElementById('mailinglist').value
		}
	}
	else
	{
		alert('Not a valid e-mail');
		document.getElementById('mailinglist').focus();
		return false;
	}
}

function mailinglist()
{
	document.write('<form action="webs/mailinglist.php" method="post">');
	document.write('<table cellpadding=5 cellspacing=0 border=0 align=left width=90 bordercolor=#A25553 style={border-collapse:collapse}>');
	document.write('<tr><td><font size=1>&nbsp;&nbsp;</td>');
	document.write('<Td align=center>');
	document.write('<font size=1>');
	document.write('<b>JOIN OUR MAILING LIST</b><BR>');
	document.write('<div align=justify><font color=#aaaaaa>Now you can <u>join the CFF mailing list</u> and be able to keep up-to-date on all the new and exciting stuff we have coming your way. Just type in your e-mail and hit the join button.</div>');
	document.write('<font style="font-size:5px"><br><br></font>');
	document.write('e-mail address');
	document.write('<font style="font-size:2px"><br><br></font>');
	document.write('<input class=text type="text" name="email" size=13 id="mailinglist">');
	document.write('<font style="font-size:2px"><br><br></font>');
	document.write('<input class=join type="button" onclick="confirmation()" value="JOIN">');
	document.write('</td></tr>');
	document.write('</table>');
	document.write('</form>');
}

function cffheader()
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="750" height="156" id="CanFilmFest" align="middle">')
	document.write('	<param name="allowScriptAccess" value="sameDomain" />')
	document.write('	<param name="movie" value="../gfx/swf/cffheader-ini.swf" />')
	document.write('	<param name="quality" value="high" />')
	document.write('	<param name="wmode" value="transparent" />')
	document.write('	<embed src="../gfx/swf/cffheader-ini.swf" quality="high" wmode="transparent" width="750" height="156" name="CanFilmFest" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
	document.write('</object>')
}

function cffsponsors()
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="91" height="430" id="CanFilmFest" align="middle">')
	document.write('	<param name="allowScriptAccess" value="sameDomain" />')
	document.write('	<param name="movie" value="../gfx/swf/sponsors.swf" />')
	document.write('	<param name="quality" value="high" />')
	document.write('	<param name="wmode" value="transparent" />')
	document.write('	<embed src="../gfx/swf/sponsors.swf" quality="high" wmode="transparent" width="91" height="430" name="CanFilmFest" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
	document.write('</object>')
}

function spots()
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="350" height="550" id="CanFilmFest" align="middle">')
	document.write('	<param name="allowScriptAccess" value="sameDomain" />')
	document.write('	<param name="movie" value="../pub/cffspots/CFFvideos.swf" />')
	document.write('	<param name="quality" value="high" />')
	document.write('	<param name="wmode" value="transparent" />')
	document.write('	<embed src="../pub/cffspots/CFFvideos.swf" quality="high" wmode="transparent" width="350" height="550" name="CanFilmFest" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
	document.write('</object>')
}

if (document.images)
{
  //Preload de los botones del header
  pic01= new Image();pic01.src="../gfx/filmbg.gif"; 
  pic02= new Image();pic02.src="../gfx/menubg.jpg"; 
  pic03= new Image();pic02.src="../gfx/cornisa2008.gif"; 

  pic11= new Image();pic11.src="../gfx/menuit-01-12.gif"; 
  pic12= new Image();pic12.src="../gfx/menuit-01-22.gif"; 
  pic13= new Image();pic13.src="../gfx/menuit-01-32.gif"; 
  pic14= new Image();pic14.src="../gfx/menuit-01-42.gif"; 
  pic15= new Image();pic15.src="../gfx/menuit-01-52.gif"; 
  pic16= new Image();pic16.src="../gfx/menuit-01-62.gif"; 
  pic17= new Image();pic17.src="../gfx/menuit-01-72.gif"; 
  pic18= new Image();pic18.src="../gfx/menuit-01-82.gif"; 
  pic19= new Image();pic19.src="../gfx/menuit-01-92.gif"; 
  pic1a= new Image();pic1a.src="../gfx/menuit-01-a2.gif"; 

  pic21= new Image();pic21.src="../gfx/menuit-02-12.gif"; 
  pic22= new Image();pic22.src="../gfx/menuit-02-22.gif"; 
  pic23= new Image();pic23.src="../gfx/menuit-02-32.gif"; 
  pic24= new Image();pic24.src="../gfx/menuit-02-42.gif"; 

  pic31= new Image();pic31.src="../gfx/menuit-03-12.gif"; 

  pic41= new Image();pic41.src="../gfx/menuit-04-12.gif"; 
  pic42= new Image();pic42.src="../gfx/menuit-04-22.gif"; 

  pic51= new Image();pic51.src="../gfx/menuit-05-12.gif"; 

  pic61= new Image();pic61.src="../gfx/menuit-06-12.gif"; 
  pic62= new Image();pic62.src="../gfx/menuit-06-22.gif"; 
  pic63= new Image();pic63.src="../gfx/menuit-06-32.gif"; 

  picA= new Image();picA.src="../gfx/menutit-links2.jpg"; 
  picB= new Image();picB.src="../gfx/menutit-home2.jpg";
}

function menu()
{
	document.write('<TD valign="top" width="172" align=left background="../gfx/menubg.gif"><table cellpadding=0 cellspacing=0 border=0><tr><td bgcolor=#000000 width=17></td><td width=148>');

	document.write('<img name="Image10" border="0" src="../gfx/menutit-festival1.jpg" height="21" width="148" alt="The Festival"><br>');
	document.write('<a href="about.htm" onfocus=this.blur() onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image11\',\'\',\'../gfx/menuit-01-12.gif\',1)"><img name="Image11" border="0" src="../gfx/menuit-01-11.gif" height="21" width="148" alt="About the CFF"></a><br>');
	document.write('<a href="filmschedule.php" onfocus=this.blur() onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image12\',\'\',\'../gfx/menuit-01-22.gif\',1)"><img name="Image12" border="0" src="../gfx/menuit-01-21.gif" height="21" width="148" alt="Film Schedule"></a><br>');
	document.write('<a href="tickets.htm" onfocus=this.blur() onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image13\',\'\',\'../gfx/menuit-01-32.gif\',1)"><img name="Image13" border="0" src="../gfx/menuit-01-31.gif" height="21" width="148" alt="Tickets"></a><br>');
	document.write('<a href="venues.htm" onfocus=this.blur() onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image14\',\'\',\'../gfx/menuit-01-42.gif\',1)"><img name="Image14" border="0" src="../gfx/menuit-01-41.gif" height="21" width="148" alt="Venues"></a><br>');
	document.write('<a href="parties.htm" onfocus=this.blur() onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image15\',\'\',\'../gfx/menuit-01-52.gif\',1)"><img name="Image15" border="0" src="../gfx/menuit-01-51.gif" height="21" width="148" alt="Parties"></a><br>');
	document.write('<a href="meridian.htm" onfocus=this.blur() onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image1a\',\'\',\'../gfx/menuit-01-a2.gif\',1)"><img name="Image1a" border="0" src="../gfx/menuit-01-a1.gif" height="36" width="148" alt="Meridian Artists Mentorship Program"></a><br>');
	document.write('<a href="workshops.htm" onfocus=this.blur() onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image16\',\'\',\'../gfx/menuit-01-62.gif\',1)"><img name="Image16" border="0" src="../gfx/menuit-01-61.gif" height="36" width="148" alt="Workshops/Panels"></a><br>');
	document.write('<a href="testimonials.htm" onfocus=this.blur() onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image17\',\'\',\'../gfx/menuit-01-72.gif\',1)"><img name="Image17" border="0" src="../gfx/menuit-01-71.gif" height="21" width="148" alt="Testimonials"></a><br>');
//	document.write('<a href="guests.htm" onfocus=this.blur() onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image18\',\'\',\'../gfx/menuit-01-82.gif\',1)"><img name="Image18" border="0" src="../gfx/menuit-01-81.gif" height="21" width="148" alt="Guests of the Festival"></a><br>');
	document.write('<a href="thecrew.htm" onfocus=this.blur() onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image19\',\'\',\'../gfx/menuit-01-92.gif\',1)"><img name="Image19" border="0" src="../gfx/menuit-01-91.gif" height="21" width="148" alt="The Crew"></a><br>');

	document.write('<img name="Image20" border="0" src="../gfx/menutit-media1.jpg" height="23" width="148" alt="Film Schedule"><br>');
	document.write('<a href="pressreleases.php" onfocus=this.blur() onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image21\',\'\',\'../gfx/menuit-02-12.gif\',1)"><img name="Image21" border="0" src="../gfx/menuit-02-11.gif" height="21" width="148" alt="Press Releases"></a><br>');
	document.write('<a href="accreditation.htm" onfocus=this.blur() onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image22\',\'\',\'../gfx/menuit-02-22.gif\',1)"><img name="Image22" border="0" src="../gfx/menuit-02-21.gif" height="21" width="148" alt="Media Acreditation"></a><br>');
	document.write('<a href="presskit.htm" onfocus=this.blur() onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image23\',\'\',\'../gfx/menuit-02-32.gif\',1)"><img name="Image23" border="0" src="../gfx/menuit-02-31.gif" height="21" width="148" alt="Press Kit"></a><br>');
	document.write('<a href="contacts.htm" onfocus=this.blur() onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image24\',\'\',\'../gfx/menuit-02-42.gif\',1)"><img name="Image24" border="0" src="../gfx/menuit-02-41.gif" height="21" width="148" alt="Contacts"></a><br>');

//	document.write('<img name="Image30" border="0" src="../gfx/menutit-volunteer1.jpg" height="23" width="148" alt="Volunteer"><br>');
//	document.write('<a href="volunteer.htm" onfocus=this.blur() onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image31\',\'\',\'../gfx/menuit-03-12.gif\',1)"><img name="Image31" border="0" src="../gfx/menuit-03-11.gif" height="21" width="148" alt="Become a Volunteer"></a><br>');

	document.write('<img name="Image40" border="0" src="../gfx/menutit-sponsors1.jpg" height="23" width="148" alt="Sponsors"><br>');
	document.write('<a href="sponsors.htm" onfocus=this.blur() onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image41\',\'\',\'../gfx/menuit-04-12.gif\',1)"><img name="Image41" border="0" src="../gfx/menuit-04-11.gif" height="21" width="148" alt="Our Sponsors"></a><br>');
	document.write('<a href="becomesponsor.htm" onfocus=this.blur() onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image42\',\'\',\'../gfx/menuit-04-22.gif\',1)"><img name="Image42" border="0" src="../gfx/menuit-04-21.gif" height="21" width="148" alt="Become a Sponsor"></a><br>');

	document.write('<img name="Image50" border="0" src="../gfx/menutit-submissions1.jpg" height="23" width="148" alt="Submissions"><br>');
	document.write('<a href="submissions.htm" onfocus=this.blur() onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image51\',\'\',\'../gfx/menuit-05-12.gif\',1)"><img name="Image51" border="0" src="../gfx/menuit-05-11.gif" height="21" width="148" alt="Submit your film"></a><br>');

	document.write('<img name="Image60" border="0" src="../gfx/menutit-gallery1.jpg" height="23" width="148" alt="Gallery"><br>');
	document.write('<a href="videos.htm" onfocus=this.blur() onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image61\',\'\',\'../gfx/menuit-06-12.gif\',1)"><img name="Image61" border="0" src="../gfx/menuit-06-11.gif" height="21" width="148" alt="Videos"></a><br>');
	document.write('<a href="pictures.htm" onfocus=this.blur() onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image62\',\'\',\'../gfx/menuit-06-22.gif\',1)"><img name="Image62" border="0" src="../gfx/menuit-06-21.gif" height="21" width="148" alt="Pictures"></a><br>');
	document.write('<a href="posters.htm" onfocus=this.blur() onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image63\',\'\',\'../gfx/menuit-06-32.gif\',1)"><img name="Image63" border="0" src="../gfx/menuit-06-31.gif" height="21" width="148" alt="Posters"></a><br>');

	document.write('<a href="links.php" onfocus=this.blur() onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image70\',\'\',\'../gfx/menutit-links2.jpg\',1)"><img name="Image70" border="0" src="../gfx/menutit-links1.jpg" height="23" width="148" alt="Links"></a><br>');
	document.write('<a href="../index.php" onfocus=this.blur() onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image80\',\'\',\'../gfx/menutit-home2.jpg\',1)"><img name="Image80" border="0" src="../gfx/menutit-home1.jpg" height="23" width="148" alt="Home Page"></a><br>');

	document.write('<Br></td><td width=7 background="../gfx/menubgd.gif"></td></tr></table></TD><td bgcolor="#222222" width="443">');
}
