﻿$(document).ready(function() {		  
	if ($.browser.msie) {	
		function sfChangeStyle(sfEls){
	        for (var i=0; i<sfEls.length; i++) {
	            sfEls[i].onmouseover = function() {
	                this.className += " sfhover";}         
	            sfEls[i].onmouseout = function() {
	                this.className = this.className.replace(new RegExp(" sfhover\\b"), "");}
			}
		}

	    sfHover = function() {
			//adminLinks were removed from page
	        //var sfEls = document.getElementById("adminLinks").getElementsByTagName("LI");
	        //sfChangeStyle(sfEls);
		}

	    if (window.attachEvent) {
	        window.attachEvent("onload", sfHover);
		}
	} else {
		$('#adminLinks li').hover(
			function() { $('ul', this).css('display', 'block'); },
			function() { $('ul', this).css('display', 'none'); }
		);
	}
	
	$("body img[id $= '_imgHelp']").each(function() {
		$(this).css("display", "none");
	});
	
	$("#printPage").click( function() {
    	$('#detailBodyRightInhoud').jqprint({operaSupport: true});
		
		return false;
 	});
});

$('.progress').ajaxStart(function() {
	$(this).css("display", "block");
}).ajaxStop(function() {
	$(this).css("display", "none");
});
