$(document).ready(function(){
//Page Peel
$(".pagePeel").hover(function() { //On hover...
	$(".pagePeel img , .msgBlock").stop()
		.animate({
			width: '307px',
			height: '319px'
		}, 500);
	} , function() {
	$(".pagePeel img").stop()
		.animate({
			width: '50px',
			height: '52px'
		}, 220);
	$(".msgBlock").stop()
		.animate({
			width: '50px',
			height: '50px'
		}, 200);
});

// Thubmnail Animated Hover
$("ul.modules li").hover(function() { //On hover...

		var thumbOver = $(this).find("img").attr("src"); //Get image url and assign it to 'thumbOver'

		//Set a background image(thumbOver) on the <a> tag - Set position to bottom
		$(this).find("a.moduleLink").css({'background' : 'url(' + thumbOver + ') no-repeat center bottom'});

		//Animate the image to 0 opacity (fade it out)
		$(this).find("span").stop().fadeTo('normal', 0 , function() {
			$(this).hide() //Hide the image after fade
		});
	} , function() { //on hover out...
		//Fade the image to full opacity 
		$(this).find("span").stop().fadeTo('normal', 1).show();
	});

// Twitter Updates
jQuery.fn.exists = function(){return jQuery(this).length>0;}

if ($('.twtr-hd h3').is(':empty')) {
	$('#twtr-widget-1').prepend('<p>Loading Tweets...</p>');
}
else {
	
}
$('.twtr-join-conv').text('Follow Us');

//Contact Page
$('b:contains("Main Office")').addClass('contactMain');
$('b:contains("Main Office")').append('<img class="contactPic" src=\"images/office-door.jpg\" alt=\"\" width=\"359\" height=\"437\" />');
$('body.contact a:contains("Allyson T DeHart")').addClass('pad');
});

