$(document).ready(function(){
	
	$("#valuecourse1>a>img").hover(
		function(){
			var updateWidth = $(this).width()-6;
			var updateHeight = $(this).height()-6;
			$(this).css("width", updateWidth+"px");
			$(this).css("height", updateHeight+"px");
			$(this).css("border", "3px solid #FF6600");
			$(this).addClass("mouseHovered");
		},
		function(){
			if($(this).hasClass("mouseHovered")){
				var updateWidth = $(this).width()+6;
				var updateHeight = $(this).height()+6;
				$(this).css("width", updateWidth+"px");
				$(this).css("height", updateHeight+"px");
				$(this).css("border", "none");
				$(this).removeClass("mouseHovered");
			}
		}
	);
	
	$("#valuecourse2>a>img").hover(
		function(){
			var updateWidth = $(this).width()-6;
			var updateHeight = $(this).height()-6;
			$(this).css("width", updateWidth+"px");
			$(this).css("height", updateHeight+"px");
			$(this).css("border", "3px solid #FF6600");
			$(this).addClass("mouseHovered");
		},
		function(){
			if($(this).hasClass("mouseHovered")){
				var updateWidth = $(this).width()+6;
				var updateHeight = $(this).height()+6;
				$(this).css("width", updateWidth+"px");
				$(this).css("height", updateHeight+"px");
				$(this).css("border", "none");
				$(this).removeClass("mouseHovered");
			}
		}
	);
	
	$(function() {
		$(".container").jCarouselLite({
			btnNext: ".next",
			btnPrev: ".prev",
			auto: 5000,
			speed: 1000,
			scroll: 3,
			visible: 5
	
		});
	});
	
	$("#slideshow_box .slide_box").hover(
		function(){
			$(this).addClass("slide_box_hover");
		},
		function(){
			$(this).removeClass("slide_box_hover");
		}
	);

});
