/*	-----------------------------------
	Functions to run when DOM loads
	-----------------------------------*/
$(document).ready(function()
{
	// open external links in new window
	$("a.external").click(function()
	{
		window.open(this.href);
		return false;
	});
	
	// remove border from logo
	$("img.logo").attr({ border: "0" });
	
	
	
	// legal details
	$("p#financeDisclaimer").hide();
	$(".hideContent > span").hide();
	
	$(".showContent").click(function()
	{
		return false;
	});

	
	// monthly statement details
	$(".statementSummary > div").hide();
	$("area").click(function()
	{
		return false;
	});
	
	$("area").mouseover(function() {
		$(this).attr("alt"," ");
		var x = $(this).attr('href');
		$(x).fadeIn("normal");
   	});
	
	$("area").mouseout(function()
	{
		var x = $(this).attr('href');
		$(x).fadeOut("fast");
	});

	
	$(".showContent").mouseover(function(e)
	{
		var x = $(".hideContent > span");
		// set the top position of the tooltip & show it
		$(x).css({ top: '25px', left: '250px' })
		$(x).fadeIn("normal");
	});
	
	
	$(".showContent").mouseout(function()
	{
		var x = $(".hideContent > span");
		$(x).fadeOut("fast");
	})

	$("a.financeDisclaimerLink").mouseover(function(e)
	{
		var x = $("p#financeDisclaimer");
		// set the top position of the tooltip & show it
		$(x).css({ top: '-100px', left: '275px' })
		$(x).fadeIn("normal");
	});
	
	
	$("a.financeDisclaimerLink").mouseout(function()
	{
		var x = $("p#financeDisclaimer");
		$(x).fadeOut("fast");
	})

	$("a.financeDisclaimerLink2").mouseover(function(e)
	{
		var x = $("p#financeDisclaimer2");
		// set the top position of the tooltip & show it
		$(x).css({ top: '-50px', left: '275px' })
		$(x).fadeIn("normal");
	});
	
	
	$("a.financeDisclaimerLink2").mouseout(function()
	{
		var x = $("p#financeDisclaimer2");
		$(x).fadeOut("fast");
	})

	
});
