    $(document).ready(function() {

        //Hoofdnavigatie mouseovers
        $("#menu li").hover(
		    function() {
		        var thisclass = $(this).find('img').attr("class");
		        if (!thisclass) thisclass = '';
		        if (thisclass.indexOf('current') == -1) {
		            var imgsrc = $(this).find('img').attr("src");

		            if (!imgsrc) imgsrc = '';

		            if (imgsrc.indexOf('-on.gif') == -1 && imgsrc.indexOf('_a.gif') == -1) {
		                imgsrc = imgsrc.replace('.gif', '-on.gif');
		                $(this).find('img').attr('src', imgsrc);
		            }
		            $(this).attr('class', 'active hover');
		        }
		    },
		    function() {
		        var thisclass = $(this).find('img').attr("class");
		        if (!thisclass && thisclass != 'nochange') thisclass = '';
		        if (thisclass.indexOf('current') == -1) {		    
	                if (thisclass.indexOf('active') == -1) {
	                    var imgsrc = $(this).find('img').attr("src");
	                    if (imgsrc) $(this).find('img').attr('src', imgsrc.replace('-on.gif', '.gif'));
	                }

	                $(this).attr('class', '');		        
		        }
		    }
	    );

    })

    function swapClassName(obj, className){obj.className = className;}

    //checkt een checkbox.....
    function checkBox(checkBox, check){document.getElementById(checkBox).checked = check;}

    function replaceText(obj, strReplace, strDefault, clear)
    {	

	    switch(clear)
	    {
		    case true:obj.value = (obj.value==strDefault) ? strReplace : obj.value;break;
		    default:obj.value = (obj.value=="") ? strDefault : obj.value;break;
	    }
    }

    function mOn(obj) {
	    var ext = obj.src.slice(-3)
	    if(obj.src.indexOf('-on.'+ ext)==-1)
	    {
		    //obj.src=obj.src.replace('.'+ ext,'-on.'+ ext)
	    }
    }
    function mOut(obj) {
	    var ext = obj.src.slice(-3)
	    //obj.src=obj.src.replace('-on.'+ext,'.'+ext)
    }