function site_OpenWindow(p_name, p_url, p_width, p_height, p_scrollbars) { var wleft, wtop; if (window.screen != null) { wleft = Math.ceil(eval((screen.width-p_width)/2)); wtop = Math.ceil(eval((screen.height-p_height)/2)); } else { wleft = 150; wtop = 150; } newWindow = window.open(p_url, p_name, 'resizable=no,toolbar=no,scrollbars='+p_scrollbars+',menubar=no,status=no,width='+p_width+',height='+p_height+',top='+wtop+',left='+wleft); } 

/*-------------------------*/

function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
if (which2.style.MozOpacity)
which2.style.MozOpacity=0.4
else if (which2.filters)
which2.filters.alpha.opacity=40
}

function highlightit(cur2){
if (cur2.style.MozOpacity<1)
cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1
else if (cur2.filters&&cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}

/*-------------------------*/

function BLNSL_trim(p_obj) {strIn=p_obj.value;while(cChar=strIn.charAt(0),(cChar=="\n")||(cChar=="\r")||(cChar=="\t")||(cChar==" ")) strIn=strIn.substring(1,strIn.length-1);while(cChar=strIn.charAt(strIn.length-1),(cChar=="\n")||(cChar=="\r")||(cChar=="\t")||(cChar==" ")) strIn=strIn.substring(0,strIn.length-2);p_obj.value=strIn; }
function BLNSL_checkField(p_form,p_name) {ret=true,objIn=eval('document.forms[\''+p_form+'\'].'+p_name);if(objIn.type=='text'){BLNSL_trim(objIn);if(objIn.value=='')ret=false;}if(objIn.type=='textarea'){if(objIn.value=='')ret=false;}if(objIn.type=='checkbox'){ret=objIn.checked;}if(objIn.type=='select-one'){ret=(objIn.selectedIndex>0);}return(ret);}
function BLNSL_formSubmitTest(p_name,p_text) {var retVal=true,strMsg='';if(p_name=='contact'&&BLNSL_checkField(p_name,'firstname')==false){retVal=false;strMsg+='* Voornaam\n';};if(p_name=='contact'&&BLNSL_checkField(p_name,'lastname')==false){retVal=false;strMsg+='* Naam\n';};if(p_name=='contact'&&BLNSL_checkField(p_name,'email')==false){retVal=false;strMsg+='* E-mail\n';};if(retVal==false)alert(p_text+'\n\n'+strMsg+'\n');return(retVal);}

/*-------------------------*/

function flashObjJSKlik(movie, locatie){
	var fo = new FlashObject(movie, "externalInterface", "420", "260", "8.0.23", "#292929", true);
	fo.addParam("scale", "noscale");
	fo.addParam("quality", "high");
	fo.addParam("menu", "false");
	fo.addParam("wmode", "transparent");
	fo.addParam("autoplay", "true");
	fo.addParam("loop", "false");	
	fo.write(locatie);
}

function randomMovieUrl()
{
movie = new Array()
movie[0] = "90_ope.flv"
movie[1] = "34_the.flv"
movie[2] = "82_tax.flv"
movie[3] = "56_cra.flv"
movie[4] = "raul02.flv"
movie[5] = "raul01.flv"
movie[6] = "40_the.flv"
movie[7] = "35_sud.flv"
movie[8] = "54_bab.flv"
movie[9] = "14_You.flv"

movieStill = new Array()
movieStill[0] = "90_ope.jpg"
movieStill[1] = "34_the.jpg"
movieStill[2] = "82_tax.jpg"
movieStill[3] = "56_cra.jpg"
movieStill[4] = "raul02.jpg"
movieStill[5] = "raul01.jpg"
movieStill[6] = "40_the.jpg"
movieStill[7] = "35_sud.jpg"
movieStill[8] = "54_bab.jpg"
movieStill[9] = "14_You.jpg"



var l = movie.length;
var rnd_no = Math.round((l-1)*Math.random());
//alert("/content/design/anims/canvas.swf?movURL=http://212.113.83.16/video/award2010/" + movie[rnd_no] + "&TCAstill=/content/assets/images/nominee-stills/" + movieStill[rnd_no]);

flashObjJSKlik("/content/design/anims/canvas.swf?movURL=http://212.113.83.16/video/award2010/" + movie[rnd_no] + "&TCAstill=/content/assets/images/nominee-stills/" + movieStill[rnd_no],"mainmovie");

}


function toggleList(id){
    if(document.getElementById) {
        var le = document.getElementById(id);
        le.style.display = (le.style.display == 'none') ? 'block' : 'none';
    }
}