$(function() {
    $(".carousel").jCarouselLite({
        btnNext: ".next_small",
        btnPrev: ".prev_small",
    	visible: 4
    });
});

$(document).ready(function(){
	// Change the image of hoverable images
	$(".imgHoverable").hover( function(){
		if(!$(this).hasClass('disabled')){
			this.src = this.src.replace(".png","_hover.png");
		}
	},
	function(){
		if(!$(this).hasClass('disabled')){
			this.src = this.src.replace("_hover.png",".png");
		}
	});

	$(".imgHoverabled").hover( function() {
		var hoverImg = HoverImgOf($(this).attr("src"));
		$(this).attr("src", hoverImg);
	}, function() {
		var normalImg = NormalImgOf($(this).attr("src"));
		$(this).attr("src", normalImg);
	});
});


$(document).ready(function(){
	$("ul.sub_login").hide();
	$("li.login_drop").hover(
		function(){	$("ul.sub_login").slideDown();	},
		function(){	$("ul.sub_login").slideUp(); 	
	});
});
