$(document).ready(function(){

      //Track each of the trailers play links on the product list view
      $('.product-list .product-item .trailer a').click(function(e){
        var thisParent = $(this).parents('.product-item');
        var thisTitle = $(thisParent).find('.narrative h3 a').text();
        _gaq.push(['_trackEvent', 'Commence Product Trailer Playback', thisTitle]);
      });
  
  
      //Track which of the product links are clicked to see which is more effective
      $('.product-list .product-item .btn-actions a').click(function(e){      
        var thisLinkType = $(this).attr('class');    
        _gaq.push(['_trackEvent', 'Access Product Details Type', thisLinkType]);
      });
    
    
      //Track the usage of the gift certificate module
      $('#gift-certificate a').click(function(e){
        _gaq.push(['_trackEvent', 'Access non standard product', 'Gift Certificate']);
      });
      
      
      //Track the narrative sections within each product detail page
      $('.product-details #body-content #nav li a').click(function(e){
        var thisLinkType = $(this).attr('name');
        _gaq.push(['_trackEvent', 'Production details', thisLinkType]);
      });
      
      
      //Track the usage of the education links
      $('#education a.dtp-site-link').click(function(e){
          _gaq.push(['_trackEvent', 'Education Section', 'Digital Theatre Plus website link']);      
      });
      
      
      //Track the playback of the DTPlus promo video
      $('#education #media-player').click(function(e){
        _gaq.push(['_trackEvent', 'Education Section', 'Promo video']);      
      });
      
      //Track the click of the registration module
      $('#home-page #newsletter-signup a').click(function(e){
    	 _gaq.push(['_trackEvent', 'Registration Sign-up', 'Homepage']);
      });
      
      //Track the click of the registration module
      $('#news #newsletter-signup a').click(function(e){
    	 _gaq.push(['_trackEvent', 'Registration Sign-up', 'News & Blogs']);
      });
});
