// news.js

var news =({
   init: function(){
      news.trackPullQuotes();
      $("#printArt").click(function(){
     	 window.print();
      });
      
      $(".rssReaders").hover(function(){
     	 $(".rssReaders span").show();
      },function(){
      	$(".rssReaders span").hide();
      });
      

   	var urls = ["nv-lineup-features_on"];
   	$.preload( urls, {
   		base:'/images/buttons/',
   		ext:'.png'
   	});

      if(ie6){
         // remove dummy addThis links from IE6, cause they just don't work
         $(".addthis_toolbox").remove();
         
      }

   	$("#play-video").bind("click",function(){
   	   
   	   var args = ["News_Page | Webcast","News_Page"];
   	   global.fireCrmEvent("Global_Video_View",args);
   	   
   	});



   },
   trackPullQuotes: function(){
        var links = $(".right-column .source a, .right-column .pull-quote");

        $(links).bind("click",function(ev){
           ev.preventDefault();

           //store original destination
           var dest = $(this).attr("href");

           //call Omniture pageview tracking (stored in 710.js)
           crmEvent3(dest);

           //proceed along :-)
           if($(this).hasClass("ext")){
              window.open(dest);
           }else{
              window.location.href = dest;
           }

        });

   }
});
