$(document).ready(function(){
            $("a.group").fancybox({'hideOnContentClick': false });                              //start Fancybox for product image preview
            
//function calls for product page menu            
            $('.menu_overview').click(function()                                                
            {
                $('.features, .soundclips, .videoclips, .manual, .warranty').hide();
                $('.overview').show();
              });
            $('.menu_features').click(function()
            {
                $('.overview, .soundclips, .videoclips, .manual, .warranty').hide();
                $('.features').show();
              });
            $('.menu_soundclips').click(function()
            {
                $('.overview, .features, .videoclips, .manual, .warranty').hide();
                $('.soundclips').show();
              });
            $('.menu_videoclips').click(function()
            {
                $('.overview, .features, .soundclips, .manual, .warranty').hide();
                $('.videoclips').show();
              });
            $('.menu_manual').click(function()
            {
                $('.overview, .features, .soundclips, .videoclips, .warranty').hide();
                $('.manual').show();
              });
            $('.menu_warranty').click(function()
            {
                $('.overview, .features, .soundclips, .manual, .videoclips').hide();
                $('.warranty').show();
              });
            
//Functions for Footer

			$(".carousel li").hover(function() {
                        $(this).find("a").prev("table").animate({opacity: "show"}, "fast");
                        }, function() {
                        $(this).find("a").prev("table").animate({opacity: "hide"}, "fast");
            });



//Functions for dealer pages            
            $(".usacanada").click(function()
            {
                $('#usacanada').toggle();
              });
            $(".europe").click(function()
            {
                $('#europe').toggle();
              });
            $(".others").click(function()
            {
                $('#others').toggle();
              });
            $(".subtitle_canada").click(function()
            {
                $('#canada').toggle();
              });
            $(".subtitle_usa").click(function()
            {
                $('#usa').toggle();
              });
        });
