<!--
var agt=navigator.userAgent.toLowerCase();
var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
var is_major = parseInt(navigator.appVersion);
var is_minor = parseFloat(navigator.appVersion);
var is_nav6up = (is_nav && (is_major >= 5));
var is_ie4up  = (is_ie && (is_major >= 4));
var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
var is_ie4up  = (is_ie && (is_major >= 4));
var lastclicked = "none";

var pointcursor = "";
if(is_nav6up){pointcursor = "pointer";}
if(is_ie4up){pointcursor = "hand";}

function check_menu_over(td){
	td.className = "menu_over";
	td.style.cursor = pointcursor;
} // check_menu_over

function check_menu_out(td){
	if (td != lastclicked){
		td.className = "menu_out";
	}
}

function check_click(page){
	document.location.href = "/pagina/"+page;
}

// deze functie wordt bij het inladen van een pagina aangeroepen en zorgt dat de juiste menu knop ingedrukt staat
function check_button(tdname){
	if (tdname!='none' && tdname != 'undefined'){
		document.getElementById(tdname).className = "menu_over";
		lastclicked = document.getElementById(tdname);
	}
}

function openWin(file){
	myWin = window.open(file,"Popup","toolbar=no,status=no,width=250,height=400");
	myWin.moveTo(0,0);
}

function get_browser_height(){
	var myWidth = 0, myHeight = 0;
	if(typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else {
		if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			//IE 6+ in 'standards compliant mode'
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
		} else {
			if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
				//IE 4 compatible
				myWidth = document.body.clientWidth;
				myHeight = document.body.clientHeight;
			}
		}
	}
	
	myHeight = myHeight - 30;
	return(myHeight);
}


function toggle_div(divname){
    if (document.getElementById(divname).style.display == 'block'){
        document.getElementById(divname).style.display = 'none';
        document.getElementById('image_' + divname).src = 'images/plusje.gif';
    } else {
        document.getElementById(divname).style.display = 'block';
        document.getElementById('image_' + divname).src = 'images/minnetje.gif';
    }
} 

function toggle_reactie(divid){
    if(window.document.getElementById("reactie_" + divid)){
        if(window.document.getElementById("reactie_" + divid).style.display == 'block'){
            window.document.getElementById("reactie_" + divid).style.display = 'none';
            window.document.getElementById("plusje_minnetje_" + divid).src = 'images/plusje.gif';
        } else {
            window.document.getElementById("reactie_" + divid).style.display = 'block';
            window.document.getElementById("plusje_minnetje_" + divid).src = 'images/minnetje.gif';
        }
    } 
} // function toggle_reactie(divid)

function plaatsCookie(actie, path, domain, secure){

    var today = new Date();
    today.setTime( today.getTime() );
    expires = 1000 * 60 * 60 * 24;
    var expires_date = new Date( today.getTime() + (expires) );

    window.document.cookie = "alle_reacties_open=" + actie +
    ( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + 
    ( ( path ) ? ";path=" + path : "" ) + 
    ( ( domain ) ? ";domain=" + domain : "" ) +
    ( ( secure ) ? ";secure" : "" );

    getReactieCookie();
}

function getReactieCookie(){
    var divs = window.document.getElementById('alle_reacties').getElementsByTagName('div');
    var divs_images = window.document.getElementById('alle_reacties').getElementsByTagName('img');
    var open_close = getCookie('alle_reacties_open');
    //alert(open_close);
    if(open_close == 'open'){
        var block_none = 'block';
        var plus_min = 'images/minnetje.gif';
        window.document.getElementById('alles_open_dicht').innerHTML = '&nbsp;<input class="text" id="alles_open" type="button" name="alles_open_dicht" onclick="plaatsCookie(\'dicht\',\'/\',\'\',\'\')" value="Alle reacties inklappen">';
    } else {
        var block_none = 'none';
        var plus_min = 'images/plusje.gif';
        window.document.getElementById('alles_open_dicht').innerHTML = '&nbsp;<input class="text" id="alles_open" type="button" name="alles_open_dicht" onclick="plaatsCookie(\'open\',\'/\',\'\',\'\')" value="Alle reacties uitklappen">';
    }

    for(var i = 0; i < divs.length; i++){
        divs[i].style.display = block_none;
        divs_images[i].src = plus_min;
    }
}
function getCookie(c_name){
    if (window.document.cookie.length>0){
        c_start=window.document.cookie.indexOf(c_name + "=")
        
        if (c_start!=-1){ 
            c_start=c_start + c_name.length+1 
            c_end=window.document.cookie.indexOf(";",c_start)
            
            if (c_end==-1) c_end=window.document.cookie.length
                return unescape(window.document.cookie.substring(c_start,c_end))
        } 
    }

}

function checkAnchor(){
    if(location.hash){
        var element = location.hash.replace('#','');
        if(window.document.getElementById("reactie_" + element)){
            window.document.getElementById("reactie_" + element).style.display = 'block';
            window.document.getElementById('plusje_minnetje_' + element).src = 'images/minnetje.gif';
        }
    }
}
//-->
//-->