var RollOver = function(hoverFon, outFon, currentId, countLink) {
	var hoverFon = hoverFon;
	var outFon = outFon;
	var currentId = currentId;
	var countLink = countLink;
	
	window.onload = function() {		
		document.getElementById(currentId + 'a').style.background = "url(_mod_files/ce_images/menucurr.jpg)";
	
		for (var i = 1; i <= countLink; i++ ) {
			document.getElementById('link' + i).onmouseover = function() {
				this.style.backgroundImage = hoverFon;
			}	
			document.getElementById('link' + i).onmouseout = function() {
				this.style.backgroundImage = '';
			}	
		}
	}
}
