/*
 * Slider
 */

jQuery(window).bind("load", function() { 
    jQuery("div#basic").slideViewerPro({
		galBorderWidth: 0, 
    autoslide: true,  
		thumbs: 3,  
    thumbsPercentReduction: 30, 
		thumbsBorderColor: "#e1e1e1",
		thumbsActiveBorderColor: "#13bdee",
		thumbsActiveBorderOpacity: 0.8,
		buttonsTextColor: "#13bdee",
	}
	
	); 
}); 

jQuery(document).ready(function() {


  
      /*
       * Manufacturers dropdown
       */
      
      
      
            jQuery(".dropdown img.flag").addClass("flagvisibility");

            jQuery(".dropdown dt a").click(function() {
                jQuery(".dropdown dd ul").toggle();
            });
                        
            jQuery(".dropdown dd ul li a").click(function() {
                var text = $(this).html();
                jQuery(".dropdown dt a span").html(text);
                jQuery(".dropdown dd ul").hide();
                jQuery("#result").html("Selected value is: " + getSelectedValue("sample"));
            });
                        
            function getSelectedValue(id) {
                return jQuery("#" + id).find("dt a span.value").html();
            }

            jQuery(document).bind('click', function(e) {
                var $clicked = jQuery(e.target);
                if (! $clicked.parents().hasClass("dropdown"))
                    jQuery(".dropdown dd ul").hide();
            });


            jQuery("#flagSwitcher").click(function() {
                jQuery(".dropdown img.flag").toggleClass("flagvisibility");
            });
      
      
      
        });
