	// cycle through images

	$(document).ready(function() {

      $(".more").show();
      $(".product").hide();
      hide_detailed_prod_info();
      show_catagory("4")

      // hide the detailed product info and show brief info
      function hide_detailed_prod_info() {
         $(".product_brief_current").removeClass("product_brief_current");
         $(".product_brief").animate({width:'202px'},"fast", function() {
            $(".detailed_desc").hide();
            $(".brief_desc").show();
         });
      }
      
      // hide all info, and then show brief info for passed product
      function show_brand( brand ) {
         $("#brand_headline").html(brand+" Products");
         hide_detailed_prod_info();
         $(".product").hide();
         $("#logo-chooser > *").css("border-color", "#666");
         $("#"+brand.toLowerCase()+"_link").css("border-color", "#ccc");
         $("#"+brand).show("fast");
      }

      // hide all info, and then show brief info for passed product
      function show_catagory( catagory_num ) {
         hide_detailed_prod_info();
         $(".product").hide();
         $("#logo-chooser > *").css("border-color", "#666");
         $("#catagory"+catagory_num).show("fast");
      }

      $("#drysuits_link").click(function () { show_catagory( "4" ); });
      $("#computers_link").click(function () { show_catagory( "1" ); });
      $("#cameras_link").click(function () { show_catagory( "3" ); });
      $("#trident_link").click(function () { show_catagory( "4" ); });

      // show/hide product detailed/brief info
      $(".product_brief").click(function () {
         if( $(".product_brief").hasClass("product_brief_current") ) {
            hide_detailed_prod_info()
         } 
         else
         {
            $(this).addClass("product_brief_current");
            $(".product_brief:not(.product_brief_current)").hide();
            if ( $(this).hasClass("product_brief_current") ) {
               $(".brief_desc").hide();
               $(".detailed_desc").show("slow");
               $(this).animate({width:'640px'},"slow", function() {
               });
            };
         };
      });


      // hide flash messages after 10 seconds
      window.setTimeout(function() { $('#flash_notice').fadeOut(1000); }, 10000);
		
      // hide divs on load
      $('#lermontov_prop_info').hide();
		$('#lermontov_gash_info').hide();
		$('#lermontov_bridge_info').hide();
				
		//show initially hidden divs

      $('#slideshow').slideDown(1000, function() {
         $('.morefm_image_switcher').slideDown(1000, function() {
            $('.logo_switcher').fadeIn(1000, function() {
            });
         });
      });


 		$('.aquanaut_easter_sale_image_switcher').cycle( {
 			fx: 'zoom',
 			sync: 0,
 			timeout: 3000
 		});
		$('.aquanaut_easter_sale_image_switcher').mouseover( function() {
			$('.aquanaut_easter_sale_image_switcher').addClass('boxlinkover');
		});



 		$('.morefm_image_switcher').cycle( {
 			fx: 'fade',
 			delay: 1500,
 			timeout: 5000
 		});
 		
 		$('.lnav_image_switcher').cycle( {
 			fx: 'fade',
 			delay: 2000,
 			timeout: 4000
 		});

 		$('.logo_switcher').cycle( {
 			fx: 'blindY',
 			speed: 2000,
 			timeout: 6000
 		});
	
/*		$('#lermontov_prop').mouseover( function() {
			$('#lermontov_prop_info').slideDown(100);
		});
			$('#lermontov_prop_info').slideUp(80);
		});
		$('#lermontov_bridge').mouseover( function() {
			$('#lermontov_bridge_info').slideDown(100);
		});
		$('#lermontov_bridge').mouseout( function() {
			$('#lermontov_bridge_info').slideUp(80);
		});
		$('#lermontov_gash').mouseover( function() {
			$('#lermontov_gash_info').slideDown(100);
		});
		$('#lermontov_gash').mouseout( function() {
			$('#lermontov_gash_info').slideUp(80);
		});
*/
	
	
	
	});

