/* Author:
*/

$("#show-cart").click(function(event) {
    $("#cart").toggle('fast');
    return false;
});

$("#promotion .promoted").hover(function() {
    $("#promotion .promoted a img").height('180px');
	$("#promotion .promoted .product-description").fadeIn(100);
    },
    function() {
    if ( $(".wrapper").first().height() == '850px') {
        $("#promotion .promoted a img").height('250px');
    } else {
        $("#promotion .promoted a img").height('auto');
    }
	$("#promotion .promoted .product-description").fadeOut(1000);
    }
);
// What is $(document).ready ? See: http://flowplayer.org/tools/documentation/basics.html#document_ready
$(document).ready(function() {
    // initialize scrollable together with the autoscroll plugin
    if( $("#promotion").length > 0 ){
	var root = $("#promotion").scrollable({circular: true}).navigator(".navi").autoscroll({ autoplay: true, interval: 3500 });
    }
});






