var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);

if(sPage=='announcement.aspx' || sPage=='index.aspx' || sPage == '')
{
	GetImageLinks(0,1,1,1,1);
}
else if(sPage=='FeedBack_home.aspx' || sPage=='InsuredFeedBack.aspx')
{
	GetImageLinks(1,0,1,1,1);
}
else if(sPage=='newsletter.aspx' || sPage=='newslettermore.aspx')
{
	GetImageLinks(1,1,0,1,1);
}
else if(sPage=='talktous.aspx')
{
	GetImageLinks(1,1,1,0,1);
}
else if(sPage=='Corporate%20signup.aspx' || sPage=='corporate.aspx')
{
	GetImageLinks(1,1,1,1,0);
}
else
{
	GetImageLinks(1,1,1,1,1);
}
//document.write(sPage);
	
function GetImageLinks(announce_flag, feedback_flag, newsletter_flag, tollfreenumber_flag, serviceform_flag)
{
	//document.write('<table align="right">');
	document.write('<table width="178px">');
	if(announce_flag==1)
	{
		//document.write('<tr onmouseover=\'return swap("ImgfdgAnou","./images/Announcements In.gif");\' onmouseout=\'return swap("ImgfdgAnou","./images/Announcements Out.gif");\'>');
		//document.write('<td height="15" width="100%"><A href="announcement.aspx"><IMG id=ImgfdgAnou alt="" src="images/Announcements Out.gif" width="178" height="29" align="right" border="0"></A>');
		//document.write('<tr><td class="tableItem" id=tdAnnouncement height="15" width="100%" onmouseover=\'swapBG("tdAnnouncement","in");\' onmouseout=\'swapBG("tdAnnouncement","out");\' background="./images/back-ground_online access.JPG" align=center>');
		document.write('<tr><td class="tableItem" width="100%" >');
		document.write('<A href="announcement.aspx">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Announcements</A>');
		document.write('</td></tr>');
	}
	if(feedback_flag==1)
	{
		//document.write('<tr onmouseover="return swap(\'Imgann\',\'./images/Feedback Form In.gif\');" onmouseout="return swap(\'Imgann\',\'./images/Feedback Form Out.gif\');">');
		//document.write('<td height="15" width="100%"><A href="FeedBack_home.aspx"><IMG id="Imgann" alt="" src="images/Feedback Form Out.gif" width="178" align="right" border="0"></A>');
		document.write('<tr><td class="tableItem" width="100%" >');
		document.write('<A href="FeedBack_home.aspx">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Feedback Form</A>');
		document.write('</td></tr>');
	}
	if(newsletter_flag==1)
	{
		//document.write('<tr onmouseover="return swap(\'Imgnew\',\'./images/Newsletters In.gif\');" onmouseout="return swap(\'Imgnew\',\'./images/Newsletters Out.gif\');">');
		//document.write('<td height="15" width="100%"><A href="newsletter.aspx"><IMG alt="" id=Imgnew src="images/Newsletters Out.gif" width="178" height="29" align="right" border="0"></A>');
		document.write('<tr><td class="tableItem" width="100%" >');
		document.write('<A href="newsletter.aspx">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Newsletters</A>');
		document.write('</td></tr>');
	}
	if(tollfreenumber_flag==1)
	{
		//document.write('<tr onmouseover="return swap(\'Imgfg\',\'./images/Toll Free No In.gif\');" onmouseout="return swap(\'Imgfg\',\'./images/Toll Free No Out.gif\');">');
		//document.write('<td height="15" border="0" width="100%"><A href="talktous.aspx"><IMG id=Imgfg alt="" src="images/Toll Free No Out.gif" width="178" height="40" align="right" border="0"></A>');
		document.write('<tr><td class="tableItem" width="100%" >');
		//document.write('<A href="talktous.aspx">Toll Free No<br>1 800 425 9449</A>');
		document.write('<A href="talktous.aspx">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Talk to Us</A>');
		document.write('</td></tr>');
	}
	if(serviceform_flag==1)
	{
		//document.write('<tr onmouseover="return swap(\'Imgfdg4\',\'./images/Service Form In.gif\');" onmouseout="return swap(\'Imgfdg4\',\'./images/Service Form Out.gif\');">');
		//document.write('<td height="15" width="100%"><A href="Corporate signup.aspx"><IMG id=Imgfdg4 alt="" src="images/Service Form Out.gif" width="178" height="29" align="right" border="0"></A>');
		document.write('<tr><td class="tableItem" width="100%" >');
		document.write('<A href="Corporate signup.aspx">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Service Form</A>');
		document.write('</td></tr>');
	}
	document.write('</table>');
}
/*function swapBG(obj,mouse_Operation)
{
	if(mouse_Operation=="in")
	{
		document.getElementById(obj).style['background']='url("./Images/back-ground_online access1.JPG")';
		document.getElementById(obj).style['color']='#222222';
	}
	else if(mouse_Operation=="out")
	{
		document.getElementById(obj).style['background']='url("./Images/back-ground_online access.JPG")';
		document.getElementById(obj).style['color']='#777777';
	}
}*/
function swap(obj,url)
{
	var img = document.getElementById(obj);
	img.src=url;
}