
/*
	Author: BDQWorks/BDQThemes/Jason Saeho Lee
	Version: 1.0.1
	Updated: May 20th, 2011
*/
	
	$(document).ready(function() {
		
	  $('.product-thumb').hover(function() {
		var img_url = $(this).attr('id');
		$('.product-display').css({ backgroundImage : "url(images/"+img_url+".jpg)" });
		$('.product-thumb a').addClass('product-selected');
		$(this).find('a').removeClass('product-selected');
		$('#click-me-for-full').hide().delay(1200).fadeIn(600);
	  }, function(){
		  
	  }); 
	
	
	  $('td.on').hover(function() {
		$(this).parent().find('td.on').addClass('alt');
	  }, function(){
		$(this).parent().find('td.on').removeClass('alt');
	  }); 
	
	
	  $('td.on-v-1').hover(function() {
		$('td.on-v-1').addClass('alt');
	  }, function(){
		$('td.on-v-1').removeClass('alt');
	  }); 
	
	
	  $('td.on-v-2').hover(function() {
		$('td.on-v-2').addClass('alt');
	  }, function(){
		$('td.on-v-2').removeClass('alt');
	  });
	  
	  $('.please-wait').click(function() { 
	    $(this).val('Please Wait');
	  });
	});
	
	$('.pe-cat').live('click', function () {
		 $('.pe-cat').removeClass('pe-cat-down');
		 $(this).addClass('pe-cat-down');
		 
		 var pe = $(this).attr('id');
		 var pe = pe.substring(4); 
		 var scrollThis = '0px';
		 var scrollThis = $(this).attr('name');
		 
		   
		 $('.slider').animate({ height: scrollThis }, 800);
		 
		 $('.pe-kit').each(function(index) {
			if($(this).attr('id')!=pe)
		 	  $(this).slideUp('slow');
		 });
		  
		 $('#'+pe).slideDown('slow');
    });
