jQuery(document).ready(function($) {
    // $() will work as an alias for jQuery() inside of this function


$(document).ready(function(){
	$(".pageimg img").fadeTo("slow", 0.8); // This sets the opacity of the thumbs to fade down to 60% when the page loads

	$(".pageimg img").hover(function(){
		$(this).fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
	},function(){
   		$(this).fadeTo("slow", 0.8); // This should set the opacity back to 60% on mouseout
	});
});

$(document).ready(function(){
	$("#logo img").fadeTo("slow", 0); // This sets the opacity of the thumbs to fade down to 60% when the page loads

	$("#logo img").hover(function(){
		$(this).fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
	},function(){
   		$(this).fadeTo("slow", 0); // This should set the opacity back to 60% on mouseout
	});
});

$(document).ready(function(){
thewidth = 860;
thiswidth = $(".entry p img.aligncenter").width();
if (thiswidth == thewidth){
$(".entry p img.aligncenter").wrap("<div class='imgfooterwrap'></div>");
}
else
thewidth = 1;
});

});