$(document).ready(function(){
$(".jqzoom").jqueryzoom({
				xzoom: 300, //zooming div default width(default width value is 200)
				yzoom: 300, //zooming div default width(default height value is 200)
				offset: 10, //zooming div default offset(default offset value is 10)
				position: "left", //zooming div position(default position value is "right")
 				preload:1,
				lens:1,
				popwidth:100,  // popup width
				popheight:100  // popup height
				
			});

});

$(document).ready(function(){
			$(".nav")
			.superfish({
				animation : { opacity:"show",height:"show"}
			});
});

$(document).ready(function() { 
    $("table#powerSuppliesSearch") 
    .tablesorter({
    	headers: {7:{sorter:false}},
    	widthFixed: true, 
    	widgets: ['zebra']
    }) 
    .tablesorterPager({
    	container: $("#pager"),
    	positionFixed: false
    }); 
}); 

$(document).ready(function() { 
    $("table#fansBlowersSearch") 
    .tablesorter({
    	headers: {7:{sorter:false}},
    	widthFixed: true, 
    	widgets: ['zebra']
    }) 
    .tablesorterPager({
    	container: $("#pager"),
    	positionFixed: false
    }); 
}); 



$(document).ready(function () {
	$('table.tablesorter tbody tr').hover(function () {
		$(this).addClass("hover");
	},function() {
		$(this).removeClass("hover");
	});
});



	
/*	
$(document).ready(function(){
	$('#powerSuppliesSearch a.slideDown').livequery('click',function(){
		$('.showPSDetails')
		.hide()
		.load('ajax/getPSDetails.php',{'id':$(this).attr('id')},function(){
			$(this).slideDown("slow");
		});
		return false;
	});
});

$(document).ready(function(){
	$('#fansBlowersSearch a.slideDown').livequery('click',function(){
		$('.showPSDetails')
		.hide()
		.load('ajax/getFansDetails.php',{'id':$(this).attr('id')},function(){
			$(this).slideDown("slow");
		});
		return false;
	});
});
*/

$(document).ready(function(){
	$("input.btnS").hover(function(){
		$(this).addClass("hover");
	},function(){
		$(this).removeClass("hover")
	})
});

$(document).ready(function(){
    $("a.reveal").click(function () {
      if ($(".optional").is(":hidden")) {
        $(".optional").slideDown("slow");
      } else {
        $(".optional").hide();
      }
      return false;
    });
    $("a.close").click(function () {
    	if ($(".optional").is(":visible")) {
        $(".optional").slideUp("slow");
      } else {
        $(".optional").show();
      }
      return false;
    });  
  });
  
$(document).ready(function(){
	$('.productTable tbody tr:odd').css({'background':'#eee'});
	$('.productTable tbody tr:even').css({'background':'#fff'});
});


$(document).ready(function () {
	$('table.productTable tbody tr').hover(function () {
		$(this).addClass("hover");
	},function() {
		$(this).removeClass("hover");
	});
});
