function n() {
            if ( !arguments ) {
                return true;
            }

            var pageTracker = false;
            if ( arguments.length > 1 ) {
                pageTracker = _gat._getTracker("UA-9017715-5");
            }

            var msTimeout = 300;
            for ( var i = 1; i < arguments.length; i++ ) {
                var arg = arguments[ i ];
                
                if ( typeof arg == 'object' ) {
                    if ( arg.curl !== undefined ) {
                        if ( arg.curl.length > 0 ) {
                            arguments[0].href = arg.curl;
                            
                            if ( arg.track !== undefined && arg.track.length > 0 ) {
                                pageTracker._trackPageview("/zoeken.nl/"+arg.track);
                            }
                        }
                    } else {
                        var call = arg.shift()+'(';
                        if ( arg.length ) {
                            call += "'"+arg.join("', '" )+"'";
                        }
                        eval( call+');' );
                        msTimeout += 200;
                    }
                } else if ( typeof arg == 'string' && arg.length > 0 ) {
                    pageTracker._trackPageview("/zoeken.nl/"+arg);
                }
            }
            
            if ( typeof arguments[0] != 'undefined' && arguments[0] ) {
                if ( arguments[0].target && arguments[0].target == '_blank' ) {
                   return true;
                }
                setTimeout( 'document.location.href = \''+arguments[0].href+'\';', msTimeout );
                return false;
            }

            return true;
}


function filldiv(name, content)
	{
		if(document.getElementById(name + "div") != null)
		{
			document.getElementById(name + "div").innerHTML = content;
			document.getElementById(name + "div").style.display = "inline";
			document.getElementById(name + "iframe").style.display = "none";
		}
	}


function ggconv(){
               var writeconv = new Image();
               writeconv.src=("http://www.googleadservices.com/pagead/conversion/1070514945/?value=0.05&label=WVMfCMPMkQEQgYa7_gM&guid=ON&script=0");
               var writeconv = new Image();
               writeconv.src=("http://www.googleadservices.com/pagead/conversion/1021949031/?label=G9uvCLuXxwEQ5-im5wM&guid=ON&script=0");
               var writeconv = new Image();
               writeconv.src=("http://www.googleadservices.com/pagead/conversion/1001222106/?label=g35OCJ6v3gEQ2t-13QM&guid=ON&script=0");
               var writeconv = new Image();
               writeconv.src=("http://www.googleadservices.com/pagead/conversion/1000155406/?label=cpWyCKLrjwIQjtL03AM&guid=ON&script=0");
}


// Web tracking.

function cl(type,lnr){

   	if (type == "c"){
	typelink = "/click/paid/no";
	}
	else if (type == "sc"){
	typelink = "/click/paid/yes";
	}
	else if (type == "more"){
	typelink = "/click/option/morefrom";
	type = "s";
	lnr = "0";
	}
	else if (type == "simu"){
	typelink = "/click/option/simular";
	type = "s";
	lnr = "0";
	}
	else if (type == "xxx"){
	typelink = "/click/xxzoek";
	}	
	else if (type == "bol"){
	typelink = "/click/bol.com";
	}	

	var writeclick = new Image();
	writeclick.src=("http://stat.onestat.com/stat.aspx?tagver=2&sid=230658&js=No&section=zoekresultaten&url=http://www.zoeken.nl" + typelink);
//	alert (writeclick.src);
}


// Resultaten mouse-over effect.

function Hover(id)
{	
document.getElementById(id).className += "hover";
}

function Unhover(id)
{
	document.getElementById(id).className = document.getElementById(id).className.replace(/\s*hover/, "");
}


// Window Resize
function wrsize()
{
 var menu = document.getElementById('header');
	var menb = menu.offsetWidth;
	var bodb = document.body.offsetWidth;	
	if( !$("#logo").attr("orgSrc") ) {
		$("#logo").attr("orgSrc", $("#logo").attr("src") );
	}
	if (menb < 770)
	{
		document.getElementById('logo').src = "http://images.zoeken.nl/v2/logo_web_mini.png";
		document.getElementById('barlogo').style.width = "80px";
	}
	else if (menb >= 770)
	{
		document.getElementById('logo').src = $("#logo").attr("orgSrc");
		document.getElementById('barlogo').style.width = "22%";
	}
	
	if (bodb < 840)
	{
	if(document.getElementById('right')!=null){document.getElementById('right').style.display = "none"}
		document.body.className= "smal2";
	}
	else if (bodb < 960)
	{

	if(document.getElementById('right')!=null){document.getElementById('right').style.display = "block"}
		document.body.className= "smal";
	}
		
	else if (bodb >= 960)
	{

	if(document.getElementById('right')!=null){document.getElementById('right').style.display = "block"}
		document.body.className= "";
	}
	
	if (menb < 660)
	{

		document.getElementById('bar_opties').style.display = "none";

	}
	else if (menb >= 660)
	{

		document.getElementById('bar_opties').style.display = "block";

	}
	
}


window.onresize = wrsize;	



// Aansturing Uitklap menu's

var meerstat = 0;
var optiestat = 0;
var geschstat = 0;

function showMore(id)
	{ 
if (id == 'meer' || meerstat == 1 ){
		if (meerstat != 1) 
		{ document.getElementById('meerul').style.display = 'block'; meerstat = 1; document.getElementById('meerknop').style.fontWeight = 'bold'; document.getElementById('meerknop').style.background = 'url(http://images.zoeken.nl/v2/arrow_up.png) 37px 15px no-repeat'; }
		else
		{ document.getElementById('meerul').style.display = 'none'; meerstat = 0; document.getElementById('meerknop').style.fontWeight = 'normal'; document.getElementById('meerknop').style.background = 'url(http://images.zoeken.nl/v2/arrow_down.png) 35px 15px no-repeat'; } 
	} 
if (id == 'geschiedenis' || geschstat == 1 ){
		if (geschstat != 1) 
		{ document.getElementById('geschul').style.display = 'block'; geschstat = 1; document.getElementById('geschknop').style.background = 'url(http://images.zoeken.nl/v2/arrow_black_up.png) right 6px no-repeat'; }
		else
		{ document.getElementById('geschul').style.display = 'none'; geschstat = 0;  document.getElementById('geschknop').style.background = 'url(http://images.zoeken.nl/v2/arrow_black_down.png) right 7px no-repeat'; } 
	} 
if (id == 'optie' || optiestat == 1){
		if (optiestat != 1)
		{ document.getElementById('optieul').style.display = 'block'; optiestat = 1; document.getElementById('optieknop').style.background = 'url(http://images.zoeken.nl/v2/arrow_black_up.png) right 6px no-repeat'; }
		else
		{ document.getElementById('optieul').style.display = 'none'; optiestat = 0; document.getElementById('optieknop').style.background = 'url(http://images.zoeken.nl/v2/arrow_black_down.png) right 7px no-repeat'; } 
		} 
	}
