$(document).ready(function()
    {

//main menu
    $("#main-menu li:has(ul)").hover(function()
        {
 		if (!$(this).children("ul").is(':animated'))
     	 {
			$(this).children("ul").css("display", "none");
        	$(this).children("ul").slideDown("normal");
        	$(this).addClass("active");
     	 }
        },
     function()
     {
        $(this).children("ul").slideUp("fast");
        $(this).removeClass("active");
     });

//main menu


    });

function check_product(el,id) {
    var value = $(el).attr('checked') ? 1 : -1;
    $('#hidden' + id).val(parseInt($('#hidden' + id).val()) + value);
}

function basket_product(id) {
    var number = parseInt($('#qty' + id).val());

    if (isNaN(number) || number == 0)
        number = 1

    $('#hidden' + id).val(parseInt($('#hidden' + id).val()) + number).parent().parent().submit();
}

// lightbox - pretty photo
$(document).ready(function(){
    $("a[rel^='lightbox']").prettyPhoto({default_width: 600,overlay_gallery:false});
    $(".default-value").addDefaultText();
    $('img[usemap]').maphilight(
        {fill: true,
    	fillColor: 'E0E0E0',
    	fillOpacity: 0.4,
    	stroke: false,
    	strokeColor: 'A7A7A7',
    	strokeOpacity: 0.3,
    	strokeWidth: 3,
    	fade: true,
    	alwaysOn: false,
    	neverOn: false,
    	groupBy: false}
    );
});



