var Hover = {
	hoverLinks: function() {
		
		/* adding hover functionality for IE hover on non-A elements */
		$("div.chart").hover(function() {
			$(this).addClass('hover');
		}, function() {
			$(this).removeClass('hover');
		});
	
	} // End hoverLinks()
};

var Linking = {

	wireLinks: function() {
		
		/* Right arrow after links in callouts */
		$("div#callouts div p a").after('<img class="bullet" src="/hcp/images/bullet/callout.png" alt="Go to link" />');
				
		/* Add PDF icons to all PDF links in content area */
		$("div#main a[href*='.pdf'], div#main a[href*='pi.cgi']").after(' (PDF)');
		
		/* Add External link icon for interstitial pages to ALL External links in main area, except for AZ links */
		$("div#main a[href^='/hcp/system_pages/SiteExit.aspx']:not([href*='astrazeneca'])").after(' <img class="external" src="/hcp/images/icon/external.png" alt="External Link" />');

	} // End wireLinks()

};


$(document).ready(function() {
	Hover.hoverLinks();
	Linking.wireLinks();
});

$(window).load(function() {
   // Run this when the whole page has been downloaded...
    
});


