///// Image rollover functions

$(document).ready(function() {
	
	// Set up opacity vars
	var full = 1.0;
	var fade = 0.6;
	var speed = "fast";
	
	// header images Hover toggle
	$("#header img").hover(function(){
		$(this).fadeTo(speed, fade);
	},function(){
		$(this).fadeTo(speed, full);
	});
	$("#dynamicLinkTxt").hover(function(){
		$("#dynamicLinkArrow img").fadeTo(speed, fade);
	},function(){
		$("#dynamicLinkArrow img").fadeTo(speed, full);
	});
	$("#readMoreText a").hover(function(){
		$("#readMoreArrow img").fadeTo(speed, fade);
	},function(){
		$("#readMoreArrow img").fadeTo(speed, full);
	});
	
	// mainContent Hover toggle
	$(".mainColumn img").hover(function(){
		$(this).fadeTo(speed, fade);
	},function(){
		$(this).fadeTo(speed, full);
	});
		
	// mainColumnAlt Hover toggle
	$("#mainColumnAlt img").hover(function(){
		$(this).fadeTo(speed, fade);
	},function(){
		$(this).fadeTo(speed, full);
	});
	
	// mainColumnBlog Hover toggle
	$("#mainColumnBlog img").hover(function(){
		$(this).fadeTo(speed, fade);
	},function(){
		$(this).fadeTo(speed, full);
	});
	
	// mainColumnC Hover toggle
	$("#mainColumnC img").hover(function(){
		$(this).fadeTo(speed, fade);
	},function(){
		$(this).fadeTo(speed, full);
	});
	
	// mainColumnD Hover toggle
	$("#mainColumnD img").hover(function(){
		$(this).fadeTo(speed, fade);
	},function(){
		$(this).fadeTo(speed, full);
	});
	
	// mainColumnForum Hover toggle
	$("#mainColumnForum img").hover(function(){
		$(this).fadeTo(speed, fade);
	},function(){
		$(this).fadeTo(speed, full);
	});

	// mainColumnGallery Hover toggle
	$("#mainColumnGallery img").hover(function(){
		$(this).fadeTo(speed, fade);
	},function(){
		$(this).fadeTo(speed, full);
	});
	
	// footer images Hover toggle
	$("#footer img").hover(function(){
		$(this).fadeTo(speed, fade);
	},function(){
		$(this).fadeTo(speed, full);
	});
	
	// back to top images Hover toggle
	$("#backText").hover(function(){
		$("#backArrow img").fadeTo(speed, fade);
	},function(){
		$("#backArrow img").fadeTo(speed, full);
	});
	$("#backArrow img").hover(function(){
		$(this).fadeTo(speed, fade);
	},function(){
		$(this).fadeTo(speed, full);
	});
	
	// back to top images Hover toggle
	$("#readMoreArrow img").hover(function(){
		$(this).fadeTo(speed, fade);
	},function(){
		$(this).fadeTo(speed, full);
	});
	
	// share images Hover toggle
	$(".shareImages img").hover(function(){
		$(this).fadeTo(speed, fade);
	},function(){
		$(this).fadeTo(speed, full);
	});
	
	// blog comments Hover toggle
	$(".commentsMoreText").hover(function(){
		$(this).fadeTo(speed, fade);
		$(".commentsMoreArrow img").fadeTo(speed, fade);
	},function(){
		$(this).fadeTo(speed, full);
		$(".commentsMoreArrow img").fadeTo(speed, full);
	});
	
	// blog nav
	$(".navImgLeft img").hover(function(){
		$(this).fadeTo(speed, fade);
	},function(){
		$(this).fadeTo(speed, full);
	});
	$(".navImgRight img").hover(function(){
		$(this).fadeTo(speed, fade);
	},function(){
		$(this).fadeTo(speed, full);
	});
	$(".alignleft").hover(function(){
		$(".navImgLeft img").fadeTo(speed, fade);
	},function(){
		$(".navImgLeft img").fadeTo(speed, full);
	});
	$(".alignright").hover(function(){
		$(".navImgRight img").fadeTo(speed, fade);
	},function(){
		$(".navImgRight img").fadeTo(speed, full);
	});
	$(".navImgLeftAlt img").hover(function(){
		$(this).fadeTo(speed, fade);
	},function(){
		$(this).fadeTo(speed, full);
	});
	$(".navTxtLeft").hover(function(){
		$(".navImgLeft img").fadeTo(speed, fade);
	},function(){
		$(".navImgLeft img").fadeTo(speed, full);
	});
	$(".navTxtLeftAlt").hover(function(){
		$(".navImgLeftAlt img").fadeTo(speed, fade);
	},function(){
		$(".navImgLeftAlt img").fadeTo(speed, full);
	});
	
	// work logos
	$(".workImg img").hover(function(){
		$(this).fadeTo(speed, fade);
	},function(){
		$(this).fadeTo(speed, full);
	});
	
	//rss
	$("#generalSubParagraph img").hover(function(){
		$(this).fadeTo(speed, fade);
	},function(){
		$(this).fadeTo(speed, full);
	});
	$("#generalSubParagraphAlt img").hover(function(){
		$(this).fadeTo(speed, fade);
	},function(){
		$(this).fadeTo(speed, full);
	});
	
	// gallery thumbs
	/*$("ul.thumb li").hover(function(){
		$(this).fadeTo(speed, fade);
	},function(){
		$(this).fadeTo(speed, full);
	});*/

});
