window.onload = function(){
	$S('.fadeonroll').each(function(el){

			var imgfade= new fx.Style(el, 'opacity', {duration:250}).set(.01);

			  el.onmouseover = function(){ 
			  	imgfade.clearTimer();
			 	imgfade.goTo(1); 
			  	return false;
			   };
			   
			   	el.onmouseout = function(){ 
				imgfade.clearTimer();
			 	imgfade.goTo(.01); 
			  	return false;
			   };


		}, this);
		
		
			$S('#inspiresubnav .othercat .roll, #connectsubnav .othercat .roll').each(function(el){

			var colorswitch= new fx.Color(el, 'background-color', {duration:250}).toColor('004b8d');
			//var scoot = new fx.Style(el, 'padding-left', {duration:250}).set(15);
			
			  el.onmouseover = function(){ 
			  	colorswitch.clearTimer();
			 	colorswitch.toColor('005b9e'); 
				//scoot.clearTimer();
				//scoot.goTo(20); 
			  	return false;
			   };
			   
			   	el.onmouseout = function(){ 
				colorswitch.clearTimer();
			 	colorswitch.toColor('004b8d'); 
				//scoot.clearTimer();
				//scoot.goTo(15); 
			  	return false;
			   };


		}, this);
			
			
			
			
			$S('#inspiresubnav .samecat .roll, #connectsubnav .samecat .roll').each(function(el){
			var colorswitch= new fx.Color(el, 'background-color', {duration:250}).toColor('005b9e');
			  el.onmouseover = function(){  return false; };
			   	el.onmouseout = function(){ return false;};
		}, this);
		
		
		
		$S('.thumbimg').each(function(el){

			//el.setStyle('opacity', .5);
			var imgfade= new fx.Style(el, 'opacity', {duration:250}).set(.7);
			 //el.onmouseover = function(){ slideTo.goTo(scrollpositions[i]); return false; };
			  el.onmouseover = function(){ 
			  	imgfade.clearTimer();
			 	imgfade.goTo(1); 
			  	return false;
			   };
			   
			   	el.onmouseout = function(){ 
				imgfade.clearTimer();
			 	imgfade.goTo(.7); 
			  	return false;
			   };

		}, this);
}