/*Rollover function for main navigation*/
$(document).ready(function() {
		
		// Preload all rollovers
		$("#nav img").each(function() {
			// Set the original src
			rollsrc = $(this).attr("src");
			rollON = rollsrc.replace(/.png$/ig,"_green.png");
			$("<img>").attr("src", rollON);
		});
		
		// Navigation rollovers
		$("#nav a").mouseover(function(){
			imgsrc = $(this).children("img").attr("src");
			matches = imgsrc.match(/_over/);
			
			// don't do the rollover if state is already ON
			if (!matches) {
			imgsrcON = imgsrc.replace(/.png$/ig,"_green.png"); // strip off extension
			$(this).children("img").attr("src", imgsrcON);
			}
			
		});
		$("#nav a").mouseout(function(){
			$(this).children("img").attr("src", imgsrc);
		});
		
	
	});
	

/*Rollover function for rss button*/	
$(document).ready(function() {
		
		// Preload all rollovers
		$("#rss img").each(function() {
			// Set the original src
			rollsrc = $(this).attr("src");
			rollON = rollsrc.replace(/.jpg$/ig,"_green.jpg");
			$("<img>").attr("src", rollON);
		});
		
		// Navigation rollovers
		$("#rss a").mouseover(function(){
			imgsrc = $(this).children("img").attr("src");
			matches = imgsrc.match(/_over/);
			
			// don't do the rollover if state is already ON
			if (!matches) {
			imgsrcON = imgsrc.replace(/.jpg$/ig,"_green.jpg"); // strip off extension
			$(this).children("img").attr("src", imgsrcON);
			}
			
		});
		$("#rss a").mouseout(function(){
			$(this).children("img").attr("src", imgsrc);
		});
		
	
	});
	
	
	
/*Rollover function for ajax box buttons*/
/*buttonone*/
$(document).ready(function() {
		
		// Preload all rollovers
		$(".buttonone img").each(function() {
			// Set the original src
			rollsrc = $(this).attr("src");
			rollON = rollsrc.replace(/.jpg$/ig,"_roll.jpg");
			$("<img>").attr("src", rollON);
			
			
		});
		
		// Navigation rollovers
		$(".buttonone a").mouseover(function(){
			imgsrc = $(this).children("img").attr("src");
			matches = imgsrc.match(/_over/);
			
			// don't do the rollover if state is already ON
			if (!matches) {
			imgsrcON = imgsrc.replace(/.jpg$/ig,"_roll.jpg"); // strip off extension
			$(this).children("img").attr("src", imgsrcON);
			}
			
		});
		$(".buttonone a").mouseout(function(){
			$(this).children("img").attr("src", imgsrc);
		});
		
	
	});

/*buttontwo*/
$(document).ready(function() {
		
		// Preload all rollovers
		$(".buttontwo img").each(function() {
			// Set the original src
			rollsrc = $(this).attr("src");
			rollON = rollsrc.replace(/.jpg$/ig,"_roll.jpg");
			$("<img>").attr("src", rollON);
			
			
		});
		
		// Navigation rollovers
		$(".buttontwo a").mouseover(function(){
			imgsrc = $(this).children("img").attr("src");
			matches = imgsrc.match(/_over/);
			
			// don't do the rollover if state is already ON
			if (!matches) {
			imgsrcON = imgsrc.replace(/.jpg$/ig,"_roll.jpg"); // strip off extension
			$(this).children("img").attr("src", imgsrcON);
			}
			
		});
		$(".buttontwo a").mouseout(function(){
			$(this).children("img").attr("src", imgsrc);
		});
		
	
	});
	
/*buttonthree*/	
$(document).ready(function() {
		
		// Preload all rollovers
		$(".buttonthree img").each(function() {
			// Set the original src
			rollsrc = $(this).attr("src");
			rollON = rollsrc.replace(/.jpg$/ig,"_roll.jpg");
			$("<img>").attr("src", rollON);
			
			
		});
		
		// Navigation rollovers
		$(".buttonthree a").mouseover(function(){
			imgsrc = $(this).children("img").attr("src");
			matches = imgsrc.match(/_over/);
			
			// don't do the rollover if state is already ON
			if (!matches) {
			imgsrcON = imgsrc.replace(/.jpg$/ig,"_roll.jpg"); // strip off extension
			$(this).children("img").attr("src", imgsrcON);
			}
			
		});
		$(".buttonthree a").mouseout(function(){
			$(this).children("img").attr("src", imgsrc);
		});
		
	
	});
	
	




	
