function menuClick(sChoice){	switch (sChoice){		case 'kies_sport':				vContainer=document.getElementById('sportmenuContainer');		gMainMenuItem = 'kiessport';		if (vContainer.style.display!='block'){			vContainer.style.display='block';			InitialiseScrollableArea();		} else {			vContainer.style.display!='none';		}		break;	case '3d_animaties':		//window.location.href = baseURL + 'wwwVwContent/l13-dannimaties.htm'		window.location.href = thisDb + 'wwwVwContent/l13-dannimaties.htm'	break;	case 'nieuws':		window.location.href = thisDb + 'wwwNieuws?ReadForm';	break;	case 'zoeken':		window.location.href = thisDb + '$$SearchTemplateDefault?ReadForm';	break;		case 'tell_a_friend':		window.location.href = thisDb + 'wwwTellafriend?ReadForm';	break;			case 'partners':		window.location.href = thisDb + 'wwwFreeText/Partners';	break;		case 'contact':		window.location.href = thisDb + 'wwwContact?ReadForm';	break;			default:		window.alert('clicked menu ' + sChoice)	};}// begin absolutely positioned scrollable area object scripts function lib_bwcheck(){ //Browsercheck (needed)	this.ver=navigator.appVersion	this.agent=navigator.userAgent	this.dom=document.getElementById?1:0	this.opera5=(navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?1:0	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;	this.ie=this.ie4||this.ie5||this.ie6	this.mac=this.agent.indexOf("Mac")>-1	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 	this.ns4=(document.layers && !this.dom)?1:0;	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)	return this}var bw=lib_bwcheck()var speed=50  var loop, timer    //Scrolling and stufffunction ConstructObject(obj,nest){     nest=(!nest) ? '':'document.'+nest+'.'     this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;     this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;     this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight     this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight     this.up=MoveAreaUp;this.down=MoveAreaDown;     this.MoveArea=MoveArea; this.x; this.y;     this.obj = obj + "Object"     eval(this.obj + "=this")     return this } function MoveArea(x,y){     this.x=x;this.y=y     this.css.left=this.x     this.css.top=this.y } function MoveAreaDown(move){ 	if(this.y>-this.scrollHeight+objContainer.clipHeight){     this.MoveArea(0,this.y-move)     if(loop) setTimeout(this.obj+".down("+move+")",speed) 	}}function MoveAreaUp(move){ 	if(this.y<0){     this.MoveArea(0,this.y-move)     if(loop) setTimeout(this.obj+".up("+move+")",speed) 	} } function PerformScroll(speed){ 	if(initialised){ 		loop=true; 		if(speed>0) objScroller.down(speed) 		else objScroller.up(speed) 	} } function CeaseScroll(){     loop=false     if(timer) clearTimeout(timer) } var initialised; function InitialiseScrollableArea(){     objContainer=new ConstructObject('SportMenuScrollContainer')     objScroller=new ConstructObject('SportMenuContent','SportMenuScrollContainer')     objScroller.MoveArea(0,0)     objContainer.css.visibility='visible'    objScroller.css.visibility='visible'    initialised=true; }var bRefreshed=false;function refreshScrollableArea() {	if (bRefreshed==false) {		objScroller.scrollHeight+=40		bRefreshed=true;	}}// end absolutely positioned scrollable area object scripts function openMenuInPostOpen() {	// Deze functie zorgt dat het juiste sport menu geopend wordt	// de variablen gWebKey, gCurrentPage en gCurrentFilmId moeten	// in de header een waarde krijgen.	menuClick('kies_sport');	var curMenuItem = document.getElementById( 'sport_' + gWebKey );	if (curMenuItem) {		selectSport(curMenuItem, gCurrentPage, gCurrentFilmId); 	} else {		alert( 'sport_' + gWebKey + ' not found');	}}