
jQuery(document).ready(function()
    {
          
    var curid = "";   
     
     $('.productThumb a').tooltip({ 
      track: true, 
      fade: 250,
      delay: 0, 
      showURL: false, 
      bodyHandler: function() { 
        return 'Click here to view full details'; 
      } 
    });

     $('.methThumb a').tooltip({ 
      track: true, 
      fade: 250,
      delay: 0, 
      showURL: false, 
      bodyHandler: function() { 
        return 'Click here to view full details'; 
      } 
    });
    
  $('.popup-print').click(function(){
  
    curid = $(this).parent().parent().attr("title");

    $("#product_form input#product").val(curid);
    
    $("#product_form").submit();
    
  }); 
  
  $('.popup-zoom').click(function(){

    window.open('http://www.reece.com.au/products/hires/'+$(this).parent().parent().attr("title")+'.jpg','Zoom');
  
  });

  $('.popup-tech').click(function(){
  
    window.location.href = 'http://www.reece.com.au/products/pdf/'+$(this).parent().parent().attr("title")+'.pdf','Tech';
  
  }); 

  $('.popup-autocad').click(function(){

    window.location.href = 'http://www.reece.com.au/products/cad/'+$(this).parent().parent().attr("title")+'.zip','CAD';
  
  }); 
  

    });
