	//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 = "webs/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?ini=index" />')
	document.write('	<param name="quality" value="high" />')
	document.write('	<param name="wmode" value="transparent" />')
	document.write('	<embed src="gfx/swf/cffheader-ini.swf?ini=index" 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 spots2()
{
	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="400" id="CanFilmFest" align="middle">')
	document.write('	<param name="allowScriptAccess" value="sameDomain" />')
	document.write('	<param name="movie" value="pub/cffspots/CFFspots.swf" />')
	document.write('	<param name="quality" value="high" />')
	document.write('	<param name="wmode" value="transparent" />')
	document.write('	<embed src="pub/cffspots/CFFspots.swf" quality="high" wmode="transparent" width="350" height="400" 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.gif"; 
	  pic03= new Image();pic03.src="gfx/cornisa2008.gif"; 
	  pic04= new Image();pic04.src="gfx/bottom.jpg"; 

	  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"; 

	  picCFF1= new Image();picCFF1.src="gfx/cffheader.swf"; 
	  picCFF2= new Image();picCFF2.src="gfx/cffheader-ini.swf"; 
	  picCFF3= new Image();picCFF3.src="gfx/sponsors.swf"; 

	}