$(document).ready(function(){	
	$("#popularbox>a").hover(
		function(){
			var updateWidth = $(this).children("img").width()-6;
			var updateHeight = $(this).children("img").height()-6;
			$(this).children("img").css("width", updateWidth+"px");
			$(this).children("img").css("height", updateHeight+"px");
			$(this).children("img").css("margin", "3px");
			$(this).children("img").addClass("mouseHovered");
		},
		function(){
			if($(this).children("img").hasClass("mouseHovered")){
				var updateWidth = $(this).children("img").width()+6;
				var updateHeight = $(this).children("img").height()+6;
				$(this).children("img").css("width", updateWidth+"px");
				$(this).children("img").css("height", updateHeight+"px");
				$(this).children("img").css("margin", "0px");
				$(this).children("img").removeClass("mouseHovered");
			}
		}
	);
	
	$(function() {
		$(".container").jCarouselLite({
			btnNext: ".next",
			btnPrev: ".prev",
			auto: 5000,
			speed: 1000,
			scroll: 2,
			visible: 5
	
		});
	});
	
	$("#slideshow_box .slide_box").hover(
		function(){
			$(this).addClass("slide_box_hover");
		},
		function(){
			$(this).removeClass("slide_box_hover");
		}
	);

	$("#month_specs_content img").hover(
		function(){
			$(this).addClass("hover");
			$(this).parent().parent().addClass("spec_image_box_hover");
		},
		function(){
			$(this).removeClass("hover");
			$(this).parent().parent().removeClass("spec_image_box_hover");
		}
	);

});
