Array.prototype.append=function(item){this[this.length]=item;};Array.prototype.clear=function(){this.length=0;};function StringBuffer(){this.buffer=[];}StringBuffer.prototype.append=function append(string){this.buffer.push(string);return this;};StringBuffer.prototype.toString=function toString(){return this.buffer.join("");
};trim=function(value){value=value.replace(/^\s+/,"");value=value.replace(/\s+$/,"");return value;};openMediaPopupPlayer=function(href,title,options){var mediatheekWindow;pauseActiveFlash();title="VideoZone";if(options!=null&&options!=""){mediatheekWindow=window.open(href,title,options);}else{mediatheekWindow=window.open(href,title,"menubar=0,resizable=1,width=970,height=665");
}if(window.focus){mediatheekWindow.focus();}return false;};var activeFlashId=null;var oldMediaContent="";var oldMediaContentId=null;var oldMediaView;function unloadVideo(){if(oldMediaContentId!=null){pauseActiveFlash();resizeFlashBlock(oldMediaContentId,oldMediaView,"false");$("#"+oldMediaContentId).html(oldMediaContent);
oldMediaContentId=null;oldMediaContent="";oldMediaView="";$(".embedExpand").removeClass("embedExpand");}}function loadVideo(vars){var agent=navigator.userAgent.toLowerCase();if(agent.indexOf("iphone")!=-1||agent.indexOf("ipad")!=-1){var src=vars["src"];if(src.indexOf("/GEO")!=-1){src=src.replace("http://media.vrtnieuws.net","http://iphone.streampower.be/vrtnieuws_geo/_definst_");
src=src.replace(".GeoFLVLong.flv",".GeoMP4_H.264.m4v");}else{src=src.replace("http://media.vrtnieuws.net","http://iphone.streampower.be/vrtnieuws_nogeo/_definst_");src=src.replace(".urlFLVLong.flv",".urlMP4_H.264.m4v");}window.location=src+"/playlist.m3u8";}else{unloadVideo();if($("#"+vars["divId"]+" embed, #"+vars["divId"]+" object").size()==0){var parent=$(this);
oldMediaContentId=vars["divId"];oldMediaContent=$("#"+vars["divId"]).html();oldMediaView=vars["view"];$("#"+vars["divId"]).html("");var flashvars;if(vars["type"]=="YouTubeVideo"){$("#"+vars["divId"]).flash({src:vars["src"],width:vars["w"],height:vars["h"],id:vars["flashId"],wmode:"transparent",allowfullscreen:"true",flashvars:{autoplay:1}});
}else{$("#"+vars["divId"]).flash({src:"/html/flash/common/videoPlayer.swf",width:vars["w"],height:vars["h"],id:vars["flashId"],wmode:"transparent",allowfullscreen:"true",flashvars:{v_divId:vars["divId"],v_flashId:vars["flashId"],v_videoUrl:vars["src"],v_thumbUrl:vars["thumb"],v_autoStart:(vars["autoStart"]=="false")?"false":"true",v_title:vars["title"],v_subtitle:"",v_formatInit:vars["format"],v_duration:"",v_copyright:vars["copyright"],v_popup:vars["popup"],v_statProgram:vars["statProgram"],v_statPlaylist:vars["statPlaylist"],v_statType:vars["statType"],v_statSite:vars["statSite"]}});
if(vars["view"]=="paragraphResource"||vars["view"]=="eyecatcherEmbeddedL"||vars["view"]=="eyecatcherL"||vars["view"]=="default12"){resizeFlashBlock(vars["divId"],"paragraphResource","true");}}}var divParts=vars["divId"].split("div_");$("#flashPlayerBlock_"+divParts[1]).addClass("embedExpand");}}setActiveFlashId=function(id){if(activeFlashId!=null&&activeFlashId!=id){pauseActiveFlash();
}activeFlashId=id;};pauseActiveFlash=function(){if(oldMediaContentId!=null){try{var $activeFlashPlayer=$("#"+oldMediaContentId).find("embed");if($activeFlashPlayer!=null){try{var activeFlashPlayer=document.getElementById($($activeFlashPlayer).attr("id"));activeFlashPlayer.pauseResume();activeFlashPlayer=null;
}catch(e){}}}catch(e){}}};function startFullScreen(){var activeFlashPlayer=document.getElementById(activeFlashId);try{activeFlashPlayer.pauseResume();activeFlashPlayer=null;}catch(e){}}function exitFullscreen(){}resizeFlashBlock=function(divId,view,enlarge){if(view=="paragraphResource"){var containerDiv=$("#"+divId);
var divParts=divId.split("div_");var flashId="flash_"+divParts[1];var flashDiv=$("#"+flashId);var flashPlayerBlockId="flashPlayerBlock_"+divParts[1];switch(view,enlarge){case"paragraphResource","true":width=468;height=264+25;$(flashDiv).css("margin-left","0px");$("#"+flashPlayerBlockId).parent(".paragraph-resource").addClass("expanded");
$("#"+flashPlayerBlockId).parent(".paragraph-resource").removeClass("collapsed");break;case"paragraphResource","false":width="100%";height="100%";$(flashDiv).css("margin-left","15px");$("#"+flashPlayerBlockId).parent(".paragraph-resource").removeClass("expanded");$("#"+flashPlayerBlockId).parent(".paragraph-resource").addClass("collapsed");
break;}$("#"+flashPlayerBlockId).width(width);$("#"+flashPlayerBlockId).height(height);$(flashDiv).width(width);$(flashDiv).height(height);try{var flashObject=containerDiv.find("embed");flashObject.width(width);flashObject.height(height);if(flashObject.length=0){flashDiv.focus();}}catch(e){}}};Array.prototype.appendIfNotInArray=function(value){if(!this.isInArray(value)){this[this.length]=value;
}};Array.prototype.removeFromArray=function(value){for(var i=0;i<this.length;i++){if(this[i]==value){this.splice(i,1);}}};Array.prototype.isInArray=function(value){for(var i=0;i<this.length;i++){if(this[i]==value){return true;}}return false;};var arrayDelimiter=",";Array.prototype.toString=function(){return this.join(arrayDelimiter);
};String.prototype.toArray=function(){return this.split(arrayDelimiter);};appendToCookie=function(cookieName,value){var cookieValue=$.cookie(cookieName);var cookieValueArray=(cookieValue==null||cookieValue=="")?new Array():cookieValue.toArray();cookieValueArray.appendIfNotInArray(value);var newCookieValue=cookieValueArray.toString();
$.cookie(cookieName,newCookieValue,{expires:365});};removeFromCookie=function(cookieName,value){var cookieValue=$.cookie(cookieName);if(cookieValue!=null&&cookieValue!=""){var cookieValueArray=cookieValue.toArray();cookieValueArray.removeFromArray(value);$.cookie(cookieName,cookieValueArray,{expires:365});
}};numberOfItemsInCookie=function(cookieName){var cookieValue=$.cookie(cookieName);if(cookieValue!=null&&cookieValue!=""){var cookieValueArray=cookieValue.toArray();return cookieValueArray.length;}return 0;};function setTextSize(fontSize){var pct;switch(fontSize){case"a":pct="85";break;case"aa":pct="100";
break;case"aaa":pct="120";break;}document.getElementById("aside").style.fontSize=pct+"%";document.getElementById("main").style.fontSize=pct+"%";document.getElementById("bottom").style.fontSize=pct+"%";setCookie("nbfsize",fontSize);}function setAsHome(myLink){try{myLink.style.behavior="url(#default#homepage)";
myLink.setHomePage(location.href);}catch(e){var msg="";var browserNaam=navigator.appName;if(browserNaam=="Netscape"){msg="Sleep deze link naar het homepage ";msg+="icoontje (het huisje) om deze pagina in te stellen als ";msg+="startpagina!";}else{if(browserNaam=="Opera"){msg="Ga naar Extra of Tools (bij de Engelstalige versie)";
msg+="Kies Voorkeuren of Preferences";msg+="Bij Startpagina of Home Page geef je het adres van deze website";msg+="Klik op OK";}else{if(browserNaam=="Microsoft Internet Explorer"){msg="Ga naar Extra of Tools (bij de Engelstalige versie)";msg+="Kies Internet-opties/Internet-options.";msg+="Bij Startpagina of Home Page geef je het adres van deze website";
}else{msg="ik weet niet welke browser dit is...";}}}alert(msg);}}function openPopup(url,title,x,y,width,height,resizable,menubar,scrollbars){window.open(url,title,"menubar="+menubar+",resizable="+resizable+",width="+width+",height="+height+",left="+x+",top="+y+",scrollbars="+scrollbars);}function vrtbalk_gotoURL(siteURL,siteName,openNewWindow){var destinationURL=null;
var nedstatURL_to_site=null;if(vrtbalk_isNedstatEnabled()){switch(siteName){case"Nieuws":nedstatURL_to_site="www-deredactie-be.index";break;case"Sport":nedstatURL_to_site="www-sporza-be";break;case"Cultuur":nedstatURL_to_site="www-klara-be";break;case"Weer":nedstatURL_to_site="www-deredactie-be.weer";
break;case"Verkeer":nedstatURL_to_site="www-deredactie-be.verkeer";break;case"Webshop":nedstatURL_to_site="www-cosmox-be.vrtshop";break;default:return true;break;}destinationURL=vrtbalk_getNedstatPrefixURL()+nedstatURL_to_site+vrtbalk_getNedstatSuffixURL()+siteURL;}else{destinationURL=siteURL;}if(openNewWindow==false){document.location.href=destinationURL;
}else{var u=new Date();window.open(destinationURL,"vrtbalkWindow"+u.getTime());}return false;}function vrtbalk_openRadiospeler(){try{var siteURL="http://internetradio.vrt.be/player_detection.html?qsbrand=";var radiospelerId=null;var regioName=null;var destinationURL=null;if(vrtbalk_vars.radiospelerId!=null||vrtbalk_vars.radiospelerId!=undefined||vrtbalk_vars.radiospelerId!=""){radiospelerId=vrtbalk_vars.radiospelerId;
}else{radiospelerId=11;}siteURL+=radiospelerId;if(vrtbalk_isNedstatEnabled()){if(radiospelerId>=20&&radiospelerId<30){switch(vrtbalk_vars.radiospelerId){case 21:regioName="antwerpen";break;case 22:regioName="vlaamsbrabant";break;case 23:regioName="limburg";break;case 24:regioName="oostvlaanderen";break;
case 25:regioName="westvlaanderen";break;default:regioName="nationaal";break;}}destinationURL=vrtbalk_getNedstatPrefixURL()+"internetradiospeler-be";if(regioName!=null){destinationURL+=".regio."+regioName;}destinationURL+=vrtbalk_getNedstatSuffixURL()+siteURL;}else{destinationURL=siteURL;}var u=new Date();
window.open(destinationURL,"vrtwindow"+u.getTime(),"resizable=0,toolbar=0,scrollbars=0,location=0,status=0,menubar=0,width=787,height=433,left=301,top=232");return false;}catch(e){return true;}}function vrtbalk_getNedstatSiteName(){if(vrtbalk_vars.nedstatSiteName==null||vrtbalk_vars.nedstatSiteName==undefined||vrtbalk_vars.nedstatSiteName==""){return"vrt-be";
}else{return nedstatSiteName=vrtbalk_vars.nedstatSiteName;}}function vrtbalk_getNedstatPrefixURL(){return"http://be.sitestat.com/vrt/"+vrtbalk_getNedstatSiteName()+"/s?clickout.VAN.navigatiebalk.NAAR.";}function vrtbalk_getNedstatSuffixURL(){return"&ns_type=clickout&ns_url=";}function vrtbalk_isNedstatEnabled(){if(vrtbalk_vars.enableNedstat!=null&&vrtbalk_vars.enableNedstat!=undefined&&vrtbalk_vars.enableNedstat!=""){return true;
}else{return false;}}$(document).ready(function(){$("#vrthead").children(".hnav").children("li").children("a").click(function(e){var sn=$(this).children("span").html();var shref=$(this).attr("href");if(sn=="Radiospeler"){vrtbalk_openRadiospeler(shref);}else{if(sn=="Webshop"){vrtbalk_gotoURL(shref,sn,true);
}else{vrtbalk_gotoURL(shref,sn,false);}}e.stopPropagation();e.preventDefault();});});$("#bottomnav li a").click(function(){$(this).parent().siblings(".current").removeClass("current");$(this).parent().addClass("current");});