var is_ns6 = false;
var is_moz = false;
var is_ie = false;
var is_mac = false;
var startoffset = 0
// Gebruikte browser checks.

if(typeof( window.innerWidth ) == 'number' )
{
    is_moz = true;
    startoffset = 6;
    if (navigator.userAgent.indexOf("Netscape") != -1)
    {
        is_ns6 = true;
    }
}
else
{
    startoffset = -1;
    is_ie = true;
    if (navigator.userAgent.indexOf("Mac") != -1)
    {
        is_mac = true;
    }
}

function highlight(id) {
    document.getElementById(id).className = 'clLevel0over fakemenu';
}


function dehighlight(id) {
    document.getElementById(id).className = 'clLevel0 fakemenu';
}

// als je skipmenu niet meegeeft, gaat hij coolmenu's tekenen. Anders
// niet (bijvoorbeeld bij dealershops)
function fixme(skipmenu) {

    var myHeight = 0;

    if(is_moz) {
        //Non-IE
        myHeight = window.innerHeight;
        myWidth = window.innerWidth;
     } else {
        //IE 6+ in 'standards compliant mode'
        myWidth = document.body.clientWidth;
        myHeight = document.body.clientHeight;
     }

    // Check voor scroolbar
    if (myHeight < document.body.scrollHeight) {
        myHeight = document.body.scrollHeight;
    }

    // set Items
	document.getElementById('contentmainframe').style.height = myHeight;

	if (!skipmenu)
	{
		currentocmenu.fromLeft = alignCoolMenu();
	}
}

    function alignCoolMenu() {
    // *****************************************************************************
    // * Omschrijving : Bepaald de linker start positie van het coolmenu door de breedte
    // *                van de browser te nemen minus de standaard grote, gedeeld door twee.
    // * output       : leftPos (integer): linker start positie coolmenu
    // * Auteur       : Aldo Quispel
    // * Aangemaakt   : 02-04-2004
    // *****************************************************************************

        if (!document.body.clientWidth) {
            //oude Netscape
            leftPos=Math.max(0,(window.innerWidth - 990) / 2) - 9;
        }
        else {
            //IE en overige browsers

            leftPos=Math.max(0,(document.body.clientWidth -990) / 2) + 1;

            if (navigator.appName == "Netscape") {
                leftPos = leftPos - 8; // <-- als er direct scrollbar op scherm staat
	            //leftPos = leftPos; // <-- als er geen scrollbar direct op scherm staat
            }
        }
        return leftPos;

    }


// *****************************************************************************
// Hoord hier niet gezien de naam, maar enige js die geinclude was
// *****************************************************************************

    function zetAantal(artid) {

        if (document.getElementById) {

            if (artid.substr(0,2) != 'm_') {
                aantal = document.getElementById('aantal_'+artid);
                link   = document.getElementById('blink_'+artid);
            }
            extra  = '';
            extra2  = '';

            inputboxes = document.getElementsByTagName('input');

            for(i=0; i<inputboxes.length; i++) {

                if (inputboxes[i].id.substr(0, 7) == 'aantal_') {
                    if (inputboxes[i].value != '') {

                        if (inputboxes[i].id.substr(7, inputboxes[i].id.length) != artid) {

                            if (extra == '') {
                                extra  = '&exarts=' + inputboxes[i].id.substr(7, inputboxes[i].id.length);
                                extra2 = '&exaantals=' + inputboxes[i].value;
                            } else {
                                extra  = extra  + ';' + inputboxes[i].id.substr(7, inputboxes[i].id.length);
                                extra2 = extra2 + ';' + inputboxes[i].value;
                            }
                        }
                    }
                }
            }

            if (artid.substr(0,2) != 'm_') {
                if (aantal.value != '') {
                    link.href = link.href + '&aantal='+aantal.value + extra + extra2;
                } else {
                    link.href = link.href + extra + extra2;
                }
            } else {
                document.getElementById(artid).href = document.getElementById(artid).href + extra + extra2;
            }
        }

    }
	

<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

