//WBC Standard JavaScript Functions - Created by Alex Fahey 0419 74 9898

if (document.images) 
{
	img1 = new Image();
	img2 = new Image();
	img3 = new Image();
	img4 = new Image();
	img1.src = "images/atn_pb_hover.gif";
	img2.src = "images/atn_bb_hover.gif";
	img3.src = "images/atn_cb_hover.gif";
	img4.src = "images/atn_wi_hover.gif";
}

function mouseOver2(strImageID)
{
	if(!(typeof(strImageID) == "string")) // guard
	{ 
		// The strImageID must be a string value of the id attribute of the menu group UL tag
		return; 
	}
	var imgCurrent = document.getElementById(strImageID)

	switch(strImageID)
	{
	case "personal":
		imgCurrent.src = "images/atn_pb_hover.gif";
		break;
	case "business":
		imgCurrent.src = "images/atn_bb_hover.gif";
		break;
	case "corporate":
		imgCurrent.src = "images/atn_cb_hover.gif";
		break;
	case "westpac":
		imgCurrent.src = "images/atn_wi_hover.gif";
		break;
	}
}

function mouseOut2(strImageID, strShowOn)
{
	if(!(typeof(strImageID) == "string")) // guard
	{ 
		// The strImageID must be a string value of the id attribute of the menu group UL tag
		return; 
	}
	var imgCurrent = document.getElementById(strImageID)

	switch(strImageID)
	{
	case "personal":
		if(strShowOn == "yes")
		{
			imgCurrent.src = "images/atn_pb_on.gif";
		} else {
			imgCurrent.src = "images/atn_pb_off.gif";
		}
		break;
	case "business":
		if(strShowOn == "yes")
		{
			imgCurrent.src = "images/atn_bb_on.gif";
		} else {
			imgCurrent.src = "images/atn_bb_off.gif";
		}
		break;
	case "corporate":
		if(strShowOn == "yes")
		{
			imgCurrent.src = "images/atn_cb_on.gif";
		} else {
			imgCurrent.src = "images/atn_cb_off.gif";
		}
		break;
	case "westpac":
		if(strShowOn == "yes")
		{
			imgCurrent.src = "images/atn_wi_on.gif";
		} else {
			imgCurrent.src = "images/atn_wi_off.gif";
		}
		break;
	}
}

