$(document).ready(function(){
  Cufon.replace('h2', { fontFamily: 'helv'});
  Cufon.replace('.super-bold', { fontFamily: 'helv'});
  $('#bases').cycle({
    fx:      'fade', 
    speed:    400, 
    timeout:  5000 
	});
  $('#cabinets').cycle({
    fx:      'fade', 
    speed:    400, 
    timeout:  5000 
	});
  $('#locks').cycle({
    fx:      'fade', 
    speed:    400, 
    timeout:  5000 
	});
  $('.left').cycle({
    fx:      'fade', 
    speed:    400, 
    timeout:  5000
   });
	$('.left').mouseover(function(){
		$('.left').cycle('pause'); 
	});
	$('.left').mouseout(function(){
		$('.left').cycle('resume'); 
	});
	$('.pevo').click(function() { 
	  $('.left').cycle(0);
	});
	$('.pfusion').click(function() { 
	  $('.left').cycle(1);
	});
	$('.pwood').click(function() { 
	  $('.left').cycle(2);
	});
	
	$('.tip').mouseover(function() {
		$(this).children('div.tooltip').css({display: 'block'});
	}).mouseout(function() {
		$(this).children('div.tooltip').css({display: 'none'});
	});
	
	$('.tip').pulse({
			opacity: [0, 1],
			backgroundColor: ['black', 'white']
	  }, 1000, 3000, 'linear', function(){
	});
  $('.tip').mouseover( function(){
		$('.tip').pulse({
				opacity: [1, 1],
				backgroundColor: ['black', 'white']
			}, 1000, 3000, 'linear', function(){
		});
		$(this).stop();
  });

});

