var act_page_img=0;
var act_spage_img=0;

function addEvent(el, type, fn){
	if (window.addEventListener){
		el.addEventListener(type, fn, false);
	} else if (window.attachEvent){
		var f = function(){
		  fn.call(el, window.event);
		};			
		el.attachEvent('on' + type, f)
	};
}

function hlon(img){
		
		if(!img.osrc){			
			img.osrc=img.src.slice(0,img.src.length-4);		
						
			ext='.'+ img.src.slice(  img.src.length-3,img.src.length);			
			
			
			
			img.hsrc=img.osrc+'_h'+ext;;			
			img.osrc+=ext;
			
			addEvent(img,'mouseout',hloff);

		}		
		if(img!=act_page_img && img!=act_spage_img ){
			img.src=img.hsrc;
		}
};			

function hloff(){
  if(this!=act_page_img && this!=act_spage_img){
		this.src=this.osrc;
	};
};
