var QUALITY = {


    start: function(){
        Cufon.replace('h1, h2, h3');
        Cufon.replace('#mainMenu li a');
        Cufon.replace('p.contactinfo span.title');
        QUALITY.pageHit();
        QUALITY.banner();

    
    },
    

    pageHit: function(){
        p = escape(document.location.href);
        rfr = escape(document.referrer);
        if (rfr == "undefined"){ rfr = "";}
        sx = screen.width;
        sy = screen.height;
        sc = (navigator.appName.indexOf("Microsoft") > -1) ? screen.colorDepth : screen.pixelDepth;
        src = 'stats.php?p=' + p + '&rfr=' + rfr + '&sx=' + sx + '&sy=' + sy + '&sc=' + sc;
        src = '<img style="position:absolute;left:-10px;top:-10px;" src="' + src + '" width="1" height="1" border="0" alt="" />';
        document.getElementById('counter').innerHTML = src;    
    },
    
    banner: function(){
        swfobject.embedSWF("flash/actiebanner.swf", "header_picture", "727", "122", "9.0.0");   
    }
    
}

var timer;
function setFieldBg(oObj){
    oObj.style.border = "1px thin #AE0000"
}
function unsetFieldBg(oObj){
    oObj.style.border = "1px thin #000" 
}

function showMedereizigers(sLocation, iValue){
    clearTimeout(timer);
    if(iValue > 0){
    //console.log(iValue);
        var timer = setTimeout('doMedeReizigers("'+sLocation+'",'+iValue+')', 10);
    }
}

function doMedeReizigers(sLocation, iValue){
     document.location = sLocation + iValue + "/"; 
}


onload = QUALITY.start;
