/*
* Base JavaScript Files to handle common tasks
*/

$(document).ready(function() {

/***** 
  prepend article tools to contentWell 
*****/
  $('#contentWell .articleTools ul').append('<li class="clickabilityEmail"><a href="#" onclick="return(ET());" onMouseOver="return(ETMouseOver());" onMouseOut="return(ETMouseOut());">Email</a></li><li class="clickabilitySave"><a href="#" onclick="return(ST());" onMouseOver="return(STMouseOver());" onMouseOut="return(STMouseOut());">Save</a></li><li class="clickabilityPrint"><a href="#" onclick="return(PT());" onMouseOver="return(PTMouseOver());" onMouseOut="return(PTMouseOut());">Print</a></li><li class="reprint"><a href="#">Reprint</a></li>');

  //  took this out from the href above, to prevent Omniture doubling
  $('li.reprint a').click(function() {
    window.open( 'http://www.icopyright.com/' + icopy + '?icx_id=' + siteURL );
  });

/* add _blank to any link with class="popup" */
  $('a.popup').click(function() {
    this.target = "_blank";
  });


/* fix IE6's inability to have :hover on anything other than an anchor tag */
  $("#topNav li").bind("mouseenter mouseleave", function() {
    $(this).toggleClass("over");
  });

});
