/// <reference path="jquery.js" />

$(document).ready(function() {
    if ($.browser.msie) {
        if ($.browser.version < 7) {
            DD_belatedPNG.fix('.png');            
            $("#acties > tbody > tr > td > img.png").each(function(i, val) {
                var src = $(val).attr("src");
                src = src.replace(/.png/, ".jpg");
                $(val).attr("src", src);
            });
        }
    }
	
	setMenu();

	if ($("#slideshow").length > 0) {
	    var flashvars = {};
	    flashvars.url = siteUrl;
	    var params = {};
	    params.wmode = "transparent";
	    params.allowScriptAccess = "sameDomain";
	    var attributes = {};
	    swfobject.embedSWF("" + siteUrl + "frame.swf?t=" + new Date().getTime(), "slideshow", "918", "156", "9.0.0", false, flashvars, params, attributes);
	}
});


function setMenu()
{				
	$('.menuItem')
		.css( {backgroundPosition: "0 0"} )
		
		.mouseover(function(){
			$(this).stop().animate(
				{backgroundPosition:"(-52px 0px)"}, 
				{duration:400})
			})
	
		.mouseout(function(){
			$(this).stop().animate(
				{backgroundPosition:"(0 0)"}, 
				{duration:500})
			})
		$(".menuItem").mouseover(function () {
      		$(this).css("color","#202020");
    	});
	  
	   $(".menuItem").mouseout(function () {
      		$(this).css("color","#424242");
    	});
}
