$(window).load( function() {
  Cufon.replace('.top-menu menu, h1,h2, .searchLine .button', {
    hover:true
  });  
  Cufon.replace('.top-menu menu, h1, h2, .searchLine .button', {
    fontFamily: 'BaronKuffner', 
    hover:true
  });  
   
  $('.flash, .error').dialog({
    modal: true,
    resizable: false,
    draggable: false,
    buttons: {
      Ok: function() {
        $( this ).dialog( "close" );
      }
    }
  });
   
   
});


$('li div.image').live('click', function() {
  window.location = $('h3.product-name a',$(this).parent('li')).attr('href');
});
 
$(document).ready(function () {
  $("a[rel='colorbox']").colorbox();
   
  Cufon.replace('.top-menu menu, h1,h2, .searchLine .button', {
    hover:true
  });  
  Cufon.replace('.top-menu menu, h1,h2, .searchLine .button', {
    fontFamily: 'BaronKuffner', 
    hover:true
  });  
  $('div.products ul li.product img').each(function() {
    $(this).hover(function() {
                
      $(this).stop().animate({
        opacity: 0.7
      }, 10);
    },
    function() {
      $(this).stop().animate({
        opacity: 1.0
      }, 10);
    });
  });
});
 
 
$('.print').live('click', function(event) {
  $('.product_detail').printElement();
});
