	day=new Array("zon","maan","dins","woens","donder","vrij","zater");	
	month=new Array("januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december");
	now=new Date();
	d=document;

	function chcolumn1(){	
	// start column 1 //
ch(2);
clch(2,"Nieuws & Kranten","o");
ch(4);
clch(4,"Auto","o");
ch(20);
clch(20,"Verkeer & route","o");
ch(7);
clch(7,"Sport","o");
ch(14);
clch(14,"Wintersport","o");
ch(15);
clch(15,"Vakantie","o");
ch(16);
clch(16,"Hotels","o");
ch(17);
clch(17,"Vliegtickets","o");
ch(18);
clch(18,"Vakantiehuizen","o");
ch(61);
clch(61,"Weblogs","o");
ch(9);
clch(9,"Communities","o");
ch(8);
clch(8,"Chatten","o");
ch(35);
clch(35,"Internet","o");
ch(36);
clch(36,"Webhosting","o");

// end column 1 //
	}

	function chcolumn2(){
	// start column 2 //
ch(19);
clch(19,"Zoeken","o");
ch(22);
clch(22,"Tweedehands","o");
ch(6);
clch(6,"Vacatures","o");
ch(5);
clch(5,"Dating","o");
ch(46);
clch(46,"Woningen","o");
ch(50);
clch(50,"Televisie","o");
ch(52);
clch(52,"Radio / muziek","o");
ch(53);
clch(53,"Downloaden","o");
ch(11);
clch(11,"Kaarten","o");
ch(32);
clch(32,"Gratis / prijsvragen","o");
ch(10);
clch(10,"Spelletjes","o");
ch(37);
clch(37,"Erotiek 18+","o");

// end column 2 //
	}

	function chcolumn3(){
	// start column 3 //
ch(40);
clch(40,"Vandaag","o");
ch(74);
clch(74,"Verstuur een...","o");
ch(21);
clch(21,"Gsm","o");
ch(24);
clch(24,"Telefonie","o");
ch(23);
clch(23,"Vergelijk producten","o");
ch(87);
clch(87,"Vergelijk diensten","o");
ch(26);
clch(26,"Webwinkelen","o");
ch(29);
clch(29,"Fotografie","o");
ch(25);
clch(25,"Boeken / CD / DVD","o");
ch(27);
clch(27,"Elektronica","o");
ch(30);
clch(30,"Supermarkt aanbiedingen","o");
ch(33);
clch(33,"Consumenten","o");
ch(84);
clch(84,"Overheid","o");
ch(31);
clch(31,"Korting","o");

// end column 3 //
	}
	function chcolumn4(){
	// start column 4 //
ch(76);
clch(76,"Spaarprogramma","o");
ch(39);
clch(39,"Favoriete sites","o");
ch(42);
clch(42,"E-mail","o");
ch(43);
clch(43,"Internetbankieren","o");
ch(83);
clch(83,"Bestel online","o");
ch(44);
clch(44,"Financieel / beurs","o");
ch(47);
clch(47,"Hypotheek","o");
ch(45);
clch(45,"Geld","o");
ch(72);
clch(72,"Verzekeringen","o");
ch(49);
clch(49,"Taal","o");
ch(56);
clch(56,"Eten / drinken","o");
ch(55);
clch(55,"Gezondheid","o");
ch(54);
clch(54,"Vrouwen","o");
ch(12);
clch(12,"Humor","o");
ch(13);
clch(13,"Uitgaan","o");

// end column 4 //
	}

	function n() {
            if ( !arguments ) {
                        return true;
            }
            
            for ( var i = 1; i < arguments.length; i++ ) {
                        pageTracker._trackPageview( arguments[ i ] );
            }
            
            if ( typeof arguments[0] != 'undefined' && arguments[0] ) {
                        if ( arguments[0].target && arguments[0].target == '_blank' ) {
                                   return true;
                        }
                        
                        setTimeout( 'document.location.href = \''+arguments[0].href+'\';', 300 );
                        return false;
            }
            return true;
	}

	function p(blocknr,blockvalue){
		if(navigator.appName!="Microsoft Internet Explorer"||parseInt(navigator.appVersion) >= 4)
		{q[blocknr]=blockvalue
		setCookie('r',q.join(";"))
		top.location="/"}
		}
		
	function GetCookie(name){
		arg=name+"=";i=0
		while(i<d.cookie.length){
		j=i+arg.length
		if(d.cookie.substring(i,j)==arg)
		{endstr=d.cookie.indexOf(";",j)
		if(endstr==-1)endstr=d.cookie.length
		return unescape(d.cookie.substring(j,endstr))}
		i=d.cookie.indexOf(" ", i)+1
		if(i==0)break}return null}
		
		
	function setCookie(name,value){
		if(value!=null&&value!="")
		{var today=new Date();var expiry=new Date(today.getTime()+31536000000)
		d.cookie=name+"="+escape(value)+";expires="+expiry.toGMTString()+";path=/"}}

	function hide(rubrieknaam)
		{aggg=document.getElementById(rubrieknaam);aggg.style.display ="none";}

	function ch(value)
		{if (q[value]=="Y") hide("r"+value)}

	function clch(value,naam,color){
		if (q[value]=="Y"){
		document.write("<div class=\"cb\" id=\"r"+value+"_off\"><div class=\"cbtitle cbtitle_off\" id=\"r"+value+"_title_off\"><img class=\"x\" src=\"http://images.vinden.nl/new_o.gif\" alt=\"\" onclick='p("+value+")'><h2>"+naam+"</h2></div></div>")
		document.write("<div class=\"terug\" id=\"r"+value+"_select_off\"><a href=\"javascript: terugMenu();\" onmouseover=\"self.status='Terug naar het menu';return true\" onmouseout=\"self.status='';return true\">Terug naar het menu</a></div>")
		}
		}
	
	function favoriete(){
		if(GetCookie("favo0") != null){UrlData = GetCookie('favo0').split("¶¶");
		for (i=0; i < UrlData.length; i++){
		temppers="";
		pr = UrlData[i].split("  ");
		temppers=pr[1];
		temppers=temppers.replace(/'/g, " ");temppers=temppers.replace(/&apos;/g, " ");
		temppers=temppers.replace(/"/g, " ");
		document.write("<li><a href=\""+pr[0]+"\" id=\"plink"+i+"\" target=\"_blank\" onclick=\"return n(this, 'hp/favo-"+i+"',['hltr'])\">"+pr[1]+"</a></li>")}}}

	function sethp(){
		if(navigator.appName=='Microsoft Internet Explorer'&&parseInt(navigator.appVersion)>=4){
		document.write("<a href='/' onclick=n(\"sethp\"),this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.vinden.nl/')>instellen als startpagina</a>")
		}  else {document.write("<a href='ff-startpagina' onclick=n(\"sethp-firefox\") target=_blank>instellen als startpagina</a>")}}

	function sethplinksum(){
		if(navigator.appName=='Microsoft Internet Explorer'&&parseInt(navigator.appVersion)>=4){
		document.write("<a href='/' onclick=n(\"sethp\"),this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.vinden.nl/?mdc=y&refer=linksum')>instellen als startpagina</a>")
		}  else {document.write("<a href='ff-startpagina' onclick=n(\"sethp-firefox\") target=_blank>instellen als startpagina</a>")}}

	function sethpfooter(){
		if(navigator.appName=='Microsoft Internet Explorer'&&parseInt(navigator.appVersion)>=4){
		document.write("<a href='/' onclick=n(\"sethpfooter\"),this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.vinden.nl/')>Instellen als startpagina?</a> &nbsp;-&nbsp; ")
		}  else {document.write("<a href='ff-startpagina' onclick=n(\"sethpfooter-firefox\") target=_blank>Instellen als startpagina?</a> &nbsp;-&nbsp; ")}}

	function plugin(){
		if(navigator.appName=="Microsoft Internet Explorer" && parseFloat(navigator.appVersion.split("MSIE")[1])>=7){
		document.write("<li><a href=# onClick=\"n('tools-ie7plugin');window.external.AddSearchProvider(&quot;/Addons/IE7/Vinden.xml&quot;);\")>zoekplugin internet explorer 7</a> <span class=tip>tip!</span></li>");
		}
		else if(navigator.appName=="Microsoft Internet Explorer" && parseInt(navigator.appVersion)>=4){
	        document.write("<li><a href='/?sttname=tools#ieplugin' onclick=n(\"tools-ieplugin\")>zoekplugin internet explorer</a> <span class=tip>tip!</span></li>");
		}
		else if(navigator.userAgent.indexOf("Firefox")!=-1 && parseFloat(navigator.userAgent.split("Firefox/")[1])>=1){
		document.write("<li><a href='/?sttname=tools#ffplugin' onclick=n(\"tools-ffplugin\")>zoekplugin voor firefox</a> <span class=tip>tip!</span></li>")
		}
		}

	function geschievddag(){
		geschiedenisvandedag="http://nl.wikipedia.org/wiki/"+now.getDate()+"_"+month[now.getMonth()];
		document.getElementById("geschiedenisvandedag").href=geschiedenisvandedag;}

	function geschievddagdate(){
		document.write(""+now.getDate()+" "+month[now.getMonth()]+"");}	
	
	
	var lastValueNr;
  var idLastClassName;
  var idLast_titleClassName;
  
  function ScrollTo(valueNr,selectedIndex){
    if (selectedIndex > 0){
  	  if(lastValueNr)
  			oudeClass();
  		id1 = document.getElementById(valueNr);
  		if(id1.style.display=='none'){
  		  nieuweClass(valueNr, '_off');
  			window.location='#'+valueNr +'_off';
  		}else{
  		  nieuweClass(valueNr, '');
  			window.location='#'+valueNr;
  		}
    }
  	window.focus();
  }
  
  function terugMenu(){
  	oudeClass();
  	document.getElementById('select1').selectedIndex = 0;
  	document.getElementById('select1').focus();
    window.location='#';
  }
  
  function oudeClass(){
    id1 = document.getElementById(lastValueNr);
  	if(id1.style.display=='none'){
  	  addOff = "_off";
  	}else{
  	  addOff = "";
  	}
  	idLast = document.getElementById (lastValueNr + addOff);
  	idLast_title = document.getElementById (lastValueNr + "_title" + addOff);
    idLast_select = document.getElementById(lastValueNr + "_select" + addOff);
  		
  	idLast.className = idLastClassName;   
  	idLast_title.className = idLast_titleClassName; 
    idLast_select.style.display = "none";
  }
  
  function nieuweClass(valueNr, addOff){
    
    id1 = document.getElementById(valueNr + addOff);
    id1 = document.getElementById(valueNr + addOff);
   	id1_title = document.getElementById(valueNr + "_title" + addOff);
   	id1_select = document.getElementById(valueNr + "_select" + addOff);
  	lastValueNr = valueNr;
  	idLastClassName = id1.className;
  	idLast_titleClassName = id1_title.className;
  	
  	id1.className = "cb cb_selected"; 
  	id1_title.className = "cbtitle cbtitle_selected"; 
  	id1_select.style.display = "block";
  }
  


 
  
  var news_toggle = 'small';

    function toggleDiv(div_id, toggle)
    {
        var div_to_detoggle = document.getElementById(div_id + '1');
        var div_to_toggle = document.getElementById(div_id + '2');
        if(div_to_toggle != null && div_to_detoggle != null)
        {
            if(toggle == '0')
            {    
                news_toggle = 'small';
                div_to_toggle.style.display = 'none';
                div_to_detoggle.style.display = 'block';
            }
            else
            {    
                news_toggle = 'big';
                div_to_toggle.style.display = 'block';
                div_to_detoggle.style.display = 'none';
            }
        }
    }

	function hideAllShow(idNews){
      hideNews('algemeen')
      hideNews('sport')
      hideNews('economie')
      hideNews('binnenland')
      hideNews('buitenland')
      hideNews('entertainment')
      hideNews('weer')
      hideNews('video')
      hideNews('opmerkelijk')
      hideNews('cultuur')
      hideNews('topnieuws')
      showNews(idNews)
    }


    function showNews(id){
      document.getElementById(id).style.display = 'block';
      if(news_toggle == 'big' && id != 'weer')
      {    
          document.getElementById(id+'1').style.display = 'none';
          document.getElementById(id+'2').style.display = 'block';
      }
  }
    
  function hideNews(id){
        if (document.getElementById(id) ) { 
    document.getElementById(id).style.display = 'none';
    if(id != 'weer')
    {    
        document.getElementById(id+'1').style.display = 'block';
        document.getElementById(id+'2').style.display = 'none';
    }
        }
  }

  
  function getImage(pExistingImageID, pImageURL) {
        if (document.getElementById(pExistingImageID) ) {
          document.getElementById(pExistingImageID).src= pImageURL;
        }
  }
