// <![CDATA[
$(function() {
	
		//Adds an ID for the SWF to target. This code can be removed if header includes are reworked.
		$("div.mastheadImage").attr("id","flash-content-top");
	
		//Suckerfish for product-grid li:hover
		$("#product-grid ul li").hover(
	      function () {
	        $(this).addClass("active");
	      }, 
	      function () {
	        $(this).removeClass("active");
	      }
	    );
	
		$.ui.accordion.animations.superfast = function(options) {
			this.slide(options, {
				//easing: options.down ? "elasin" : "elasout",
				duration: options.down ? 100 : 100
			});
		};
	
		//Uses Accordian Plugin from jQuery UI
		$('ul.drawers').accordion({
			//active: ".default-drawer",
            header: 'h3.drawer-handle',
            selectedClass: 'open',
			animated: 'superfast',
			//animated: false,
            event: 'mouseover', //or 'click'
			autoHeight: false
        });

		//If javascript is enabled, stop those hrefs on the drawer H3s
		$("ul.drawers li h3 a").click(function(event){
		  event.preventDefault();
		});
		
		//If Javascript is enabled, but there is no compatible version of Flash available,
		//the main eStore banner shows. The image source is hidden at first, so that the load time
		//is increased and the picture does not flicker on right before swfObject does its thing.
		//Note: #flash-content-main will not be vailable if swfObject loads first. That's good.
		$("#flash-content-main a img").attr('src', '/prxm/prxm_img/home/print-banner-estore.jpg');
		$("#flash-content-main a").show();
		
	});
// ]]>