//*************************************************************************************************************
//	changeImages(Image, Source)
//		Description: Used with OnMouseOver and OnMouseOut in image tags.
//		Parameters:	Image=Image name to change.
//						   Source=New image source.
//		Sample Use: onmouseover="changeImages('InvestorStatement', 'images/InvestorStatement_on.gif')" 
//*************************************************************************************************************
function changeImages(Image, Source) {
	if (document.images) {
		document[Image].src = Source;
	}
}

//*************************************************************************************************************
//	function blocking(i)
//		Description: Hides or show the Paragraph according to the number passed
//		Parameters:	i=Number of the Paragraph to hide or show
//		Sample Use: blocking(5)
//		Where Used: TransactionDetail, PendingTransactions
//*************************************************************************************************************
function blocking(i)
{
	shown[i] = (shown[i]) ? false : true;
	current = (shown[i]) ? 'block' : 'none';

	if (shown[i]) {
		eval("document.arrow_" + i + ".src='images/arrow_down_on.gif'")
		eval("document.arrow_" + i + ".alt='Click here to hide driving directions'")
	}
	else {
		eval("document.arrow_" + i + ".src='images/arrow_left_off.gif'")
		eval("document.arrow_" + i + ".alt='Click here to show driving directionss'")
	}
	
	if (document.getElementById)
	{
		document.getElementById('number'+i).style.display = current;
	}
	else if (document.all)
	{
		document.all['number'+i].style.display = current;
	}
}

//*************************************************************************************************************
//	function arrow_onmouseover(i)
//		Description: Show the proper mouseover image depending on if the Paragraph is hidded or visible
//		Parameters:	i=Number of arrow image on the page
//		Sample Use: arrow_onmouseover(2)
//		Where Used: TransactionDetail, PendingTransactions
//*************************************************************************************************************
function arrow_onmouseover(i)
{
	if (shown[i]) {
		eval("document.arrow_" + i + ".src='images/arrow_down_on.gif'")
	}
	else {
		eval("document.arrow_" + i + ".src='images/arrow_left_on.gif'")
	}
}

//*************************************************************************************************************
//	function arrow_onmouseout(i)
//		Description: Show the proper mouseout image depending on if the Paragraph is hidded or visible
//		Parameters:	i=Number of arrow image on the page
//		Sample Use: arrow_onmouseout(2)
//		Where Used: TransactionDetail, PendingTransactions
//*************************************************************************************************************
function arrow_onmouseout(i)
{
	if (shown[i]) {
		eval("document.arrow_" + i + ".src='images/arrow_down_on.gif'")
	}
	else {
		eval("document.arrow_" + i + ".src='images/arrow_left_off.gif'")
	}
}

function WindowPopUp(url, width, height) {

	var newWindow
	
	if (newWindow) {
		if (newWindow.closed == false) {
			newWindow.focus();
		}
	}

	newWindow = eval("window.open('" + url + "', 'popup', 'toolbar=1, location=1, directories=1, status=1, menubar=1, scrollbars=1, resizable=1, width=" +width + ", height=" + height + "')");
}

function gotosite(site) {            
	if (site != "") {                    
    	self.location=site; 
    }
}	