
sfHover = function() {
if(document.getElementById("mainMenu")){
	
	var sfEls = document.getElementById("mainMenu").getElementsByTagName("LI");
	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"), ""); }
	}
}
 
}



cImgToHoverPng = function(e){
    current=e.src;	   
    if(current.indexOf("_hover.png")<0) {
	    current=current.replace(".png","_hover.png");    	   
	    e.src = current;
    }	
}
chImgToNormalPng = function(e){
    current=e.src;	    
    current=current.replace("_hover.png",".png");
    e.src = current;
}


specialMLink = function(m){
    emailE= m + '@' + 'prime-games.de';
    document.write('<A href="mailto:' + emailE + '">' + emailE + '</a>');   
}

imageChange = function(n) {
	var img = document.getElementById("bigimg"); 
	img.src=n;
}

if (window.attachEvent) {
	window.attachEvent("onload", sfHover)	
};


