

function restoretext(thisfilm) {
	document.getElementById('desc' + thisfilm).style.display = 'none';
	document.getElementById('desc0').style.display = 'block';
}



// show appropriate description & award on image rollover
function doroll(thisfilm) {
	document.getElementById('desc0').style.display = 'none';
	document.getElementById('desc' + thisfilm).style.display='block';	
}




// change movies on click
function changemovie(thisfilm) {


	document.getElementById('fest0').style.display = 'none';
	var i = 501;	
	while(i <= 516)	{
		document.getElementById('fest' + i).style.display = 'none';
		i++;	
	}

	document.getElementById('fest' + thisfilm).style.display='block';


	if (navigator.appVersion.indexOf("Macintosh")!=(-1)) {
		if (navigator.appVersion.indexOf("MSIE 5.")!=(-1)) { }
		else if ( navigator.appVersion.split("/").pop() < 126 ) { }
		else {	
	  		document.qt.Stop();
		}
	}


	var quickLoUrl=new Array();
	
	quickLoUrl[501]='http://www2.mediathatmattersfest.org/mtm05/film/501_lo.mov';
	quickLoUrl[502]='http://www2.mediathatmattersfest.org/mtm05/film/502_lo.mov';
	quickLoUrl[503]='http://www2.mediathatmattersfest.org/mtm05/film/503_lo.mov';
	quickLoUrl[504]='http://www2.mediathatmattersfest.org/mtm05/film/504_lo.mov';
	quickLoUrl[505]='http://www2.mediathatmattersfest.org/mtm05/film/505_lo.mov';
	quickLoUrl[506]='http://www2.mediathatmattersfest.org/mtm05/film/506_lo.mov';
	quickLoUrl[507]='http://www2.mediathatmattersfest.org/mtm05/film/507_lo.mov';
	quickLoUrl[508]='http://www2.mediathatmattersfest.org/mtm05/film/508_lo.mov';
	quickLoUrl[509]='http://www2.mediathatmattersfest.org/mtm05/film/509_lo.mov';
	quickLoUrl[510]='http://www2.mediathatmattersfest.org/mtm05/film/510_lo.mov';
	quickLoUrl[511]='http://www2.mediathatmattersfest.org/mtm05/film/511_lo.mov';
	quickLoUrl[512]='http://www2.mediathatmattersfest.org/mtm05/film/512_lo.mov';
	quickLoUrl[513]='http://www2.mediathatmattersfest.org/mtm05/film/513_lo.mov';
	quickLoUrl[514]='http://www2.mediathatmattersfest.org/mtm05/film/514_lo.mov';
	quickLoUrl[515]='http://www2.mediathatmattersfest.org/mtm05/film/515_lo.mov';
	quickLoUrl[516]='http://www2.mediathatmattersfest.org/mtm05/film/516_lo.mov';
	

	var quickHiUrl=new Array();
	
	quickHiUrl[501]='http://www2.mediathatmattersfest.org/mtm05/film/501_hi.mov';
	quickHiUrl[502]='http://www2.mediathatmattersfest.org/mtm05/film/502_hi.mov';
	quickHiUrl[503]='http://www2.mediathatmattersfest.org/mtm05/film/503_hi.mov';
	quickHiUrl[504]='http://www2.mediathatmattersfest.org/mtm05/film/504_hi.mov';
	quickHiUrl[505]='http://www2.mediathatmattersfest.org/mtm05/film/505_hi.mov';
	quickHiUrl[506]='http://www2.mediathatmattersfest.org/mtm05/film/506_hi.mov';
	quickHiUrl[507]='http://www2.mediathatmattersfest.org/mtm05/film/507_hi.mov';
	quickHiUrl[508]='http://www2.mediathatmattersfest.org/mtm05/film/508_hi.mov';
	quickHiUrl[509]='http://www2.mediathatmattersfest.org/mtm05/film/509_hi.mov';
	quickHiUrl[510]='http://www2.mediathatmattersfest.org/mtm05/film/510_hi.mov';
	quickHiUrl[511]='http://www2.mediathatmattersfest.org/mtm05/film/511_hi.mov';
	quickHiUrl[512]='http://www2.mediathatmattersfest.org/mtm05/film/512_hi.mov';
	quickHiUrl[513]='http://www2.mediathatmattersfest.org/mtm05/film/513_hi.mov';
	quickHiUrl[514]='http://www2.mediathatmattersfest.org/mtm05/film/514_hi.mov';
	quickHiUrl[515]='http://www2.mediathatmattersfest.org/mtm05/film/515_hi.mov';
	quickHiUrl[516]='http://www2.mediathatmattersfest.org/mtm05/film/516_hi.mov';	
	
	//assemble movie player html
   	var movieContent;

	if (document.mtm.videoplayer[0].checked == true) {
		movieContent = '<embed src="' + quickLoUrl[thisfilm] + '" width="320" height="252" scale="tofit" autoplay="true" controller="true" pluginspage="http://www.apple.com/quicktime/download/" name="qt" id="qt"></embed>';
	} else if (document.mtm.videoplayer[1].checked == true) {
		movieContent = '<embed src="' + quickHiUrl[thisfilm] + '" width="320" height="252" scale="tofit" autoplay="true" controller="true" pluginspage="http://www.apple.com/quicktime/download/" name="qt" id="qt"></embed>';
	}



	// IE4+
  	if (document.all)
		playerbox.innerHTML=movieContent;
		
  	// NS 6 (supports new DOM)
  	else if (document.getElementById){

    pageRange = document.createRange();
    pageElement = document.getElementById("playerbox");
    pageRange.setStartBefore(pageElement);
    htmlFrag = pageRange.createContextualFragment(movieContent);
    
    while (pageElement.hasChildNodes())
    	pageElement.removeChild(pageElement.lastChild);
    	pageElement.appendChild(htmlFrag);
    }


}