$(window).ready(function(){
						 
						 
	function imgH(){
		
	}					 
					
	
	$('#mainMenu img.active').each(function(){
														src = ($(this).get(0).src);			  

			var ext = $(this).attr("src").substr($(this).attr("src").length-4); 
			var imgName = $(this).attr("src").substr(0,($(this).attr("src").length)-4);
			var imgHoberState = imgName+'_hover'+ext;
			$(this).attr("src",imgHoberState)
											})
	$('#footer #menu img.active').each(function(){
														src = ($(this).get(0).src);			  

			var ext = $(this).attr("src").substr($(this).attr("src").length-4); 
			var imgName = $(this).attr("src").substr(0,($(this).attr("src").length)-4);
			var imgHoberState = imgName+'_hover'+ext;
			$(this).attr("src",imgHoberState)
			})
			
			
	/********************************/
	
	$('#mainMenu img').not('.active').hover(function(){
			src = ($(this).get(0).src);			  
			var ext = src.substr($(this).attr("src").length-4); 
			var imgName = src.substr(0,($(this).attr("src").length)-4);
			var imgHoberState = imgName+'_hover'+ext;
			this.imagName = imgName+ext;;
			$(this).get(0).src = imgHoberState 





	  },function(){
		  $(this).get(0).src = this.imagName 
		
		  })					 
						 
						 
	$('#footer #menu img').not('.active').hover(function(){
								  
			var ext = $(this).attr("src").substr($(this).attr("src").length-4); 
			var imgName = $(this).attr("src").substr(0,($(this).attr("src").length)-4);
			var imgHoberState = imgName+'_hover'+ext;
			this.imagName = imgName+ext;;
			$(this).attr("src",imgHoberState)





	  },function(){
		  $(this).attr("src",this.imagName)
		
		  })					 
						 
/*						 
						 
						 function menuImgState(){
	imgs = getByClass('menuImgState');
	for(var i=0;i<imgs.length;i++){
		imgs[i].onmouseover = function(){
			EXT = this.src.substr((this.src.length)-4);
			imgName = this.src.substr(0,(this.src.length)-4);
			this.setAttribute("src",imgName+'_over'+EXT);
			this.onmouseout = function(){ 
				this.setAttribute("src",imgName+EXT);
			}
			this.onmousedown = function(){ 
				this.setAttribute("src",imgName+'_on'+EXT);
			}
		};
	}
}
*/
						 
						 
						 
						 })
