$(document).ready(function(){
	$('.menuitem img').animate({width: 50}, 0);
	$('.menuitem').mouseover(function(){
			gridimage = $(this).find('img');
			gridimage.stop().animate({width: 150}, 150);
		}).mouseout(function(){
			gridimage.stop().animate({width: 50}, 150);
	});
}); 
/* -------------------- */
$(document).ready(function(){	
	$("#slider").easySlider({
		auto: true, 
		continuous: true,
		numeric: true
	});
});	
/* ------------------------ */ 
$(document).ready(function() {
    $('.slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
});
/* ------------------------ */


  // This function returns Internet Explorer's major version number,
   // or 0 for others. It works by finding the "MSIE " string and
   // extracting the version number following the space, up to the decimal
   // point, ignoring the minor version number
   function msieversion()
   {
      var ua = window.navigator.userAgent
      var msie = ua.indexOf ( "MSIE " )

      if ( msie > 0 )      // If Internet Explorer, return version number
         return parseInt (ua.substring (msie+5, ua.indexOf (".", msie )))
      else                 // If another browser, return 0
         return 0

   }

 if ( msieversion() <= 6 && msieversion() != 0 )

      document.write ( "<script type='text/javascript' src='/scripts/cartdock-ie6.js'></script>" );

   else

      document.write ( "<script type='text/javascript' src='/scripts/cartdock.js'></script>" );
