function printdiv(printpage)
{
var headstr = "<html><head><title></title></head><body>";
var footstr = "</body>";
var newstr = document.getElementById(printpage).innerHTML;
var oldstr = document.body.innerHTML;
document.body.innerHTML = headstr+newstr+footstr;
window.print(); 
document.body.innerHTML = oldstr;
return false;
}

// Scroll to top - replace all href#top links if javascript enabled.

$(document).ready(function() {
   
    $('a[href=#top]').click(function(){
        $('html, body').animate({scrollTop:0}, 'slow');
        return false;
    });

});

// function to replace all strong endashes in finance tables with bordered div to simulate bold endash
		
		$(document).ready(function() 
			{
				$('table.finance-table strong').each(function() 
					{
						var $this = $(this);
						var t = $this.text();
						$this.html(t.replace('\u2013', '<div class="bold-endash"></div>'));
			
					});
			});

