$(document).ready(function() {
		
		// Home highlights image and text effects
		$(".highlightsImgs a").hover(function(){
			 $(this).siblings("a").children("img").fadeTo(1, 0.33);
			 var theItem = $(this).attr("class");
			 $(".homeHighlights p." + theItem).css("display", "block");
		}, function() {
		   $(this).siblings("a").children("img").fadeTo(1, 1);
		   var theItem = $(this).attr("class");
		   $(".homeHighlights p." + theItem).css("display", "none");
		});
		
		// Home news heading arrow rollover
		$(".homeNews h2 a").mouseover(function(){
			imgsrc = $(this).children("img").attr("src");
			matches = imgsrc.match(/_on/);
			
			// don't do the rollover if state is already ON
			if (!matches) {
			imgsrcON = imgsrc.replace(/.gif$/ig,"_on.gif"); // strip off extension
			$(this).children("img").attr("src", imgsrcON);
			}
			
		});
		$(".homeNews h2 a").mouseout(function(){
			$(this).children("img").attr("src", imgsrc);
		});
		
		// Home RSS heading arrow rollover
		$(".homeRSS h2 a").mouseover(function(){
			imgsrc = $(this).children("img.linkArrow").attr("src");
			matches = imgsrc.match(/_on/);
			
			// don't do the rollover if state is already ON
			if (!matches) {
			imgsrcON = imgsrc.replace(/.gif$/ig,"_on.gif"); // strip off extension
			$(this).children("img.linkArrow").attr("src", imgsrcON);
			}
			
		});
		$(".homeRSS h2 a").mouseout(function(){
			$(this).children("img.linkArrow").attr("src", imgsrc);
		});
		
	});