function swap_img(bgid)
{
	var bgid_arr=new Array('home_bg','prod_bg','lap_bg');
	var lnkid_arr=new Array('homelnk','prod','lap');
	var img_arr=new Array('btn_home_on','btn_hl_on','btn_lap_on');
	for (i=0;i<bgid_arr.length;i++)
	{
		var bgids=document.getElementById(bgid_arr[i]);
		var lnkids=document.getElementById(lnkid_arr[i]);
		if (bgid==bgid_arr[i])
		{
			
			bgids.style.background="url(/portal/newgen/citifinancial/images/"+img_arr[i]+".gif) no-repeat";
			lnkids.style.color="#000168";
		}
		else
		{
			bgids.style.background="#ffffff";
			lnkids.style.color="#3398CC";
		}
	}
}
function show_tabon()
{
	var page=window.location.href;
	page=page.toLowerCase();
	//alert(page);
	//alert();
	if (page.indexOf("home")!=-1)
	{
		swap_img('home_bg');
	}
	
	if (page.indexOf("contact_us")!=-1)
	{
		swap_img('');
	}
	if (page.indexOf("faqs")!=-1)
	{
		swap_img('');
	}
	if (page.indexOf("sitemap")!=-1)
	{
		swap_img('');
	}
	if (page.indexOf("who_we_are")!=-1)
	{
		swap_img('');
	}
	if (page.indexOf("fair")!=-1)
	{
		swap_img('');
	}
	if (page.indexOf("corporate_governance")!=-1)
	{
		swap_img('');
	}
	if (page.indexOf("life_insurance")!=-1)
	{
		swap_img('ins_inv_bg');
	}
	if (page.indexOf("general_insurance")!=-1)
	{
		swap_img('ins_inv_bg');
	}
	if (page.indexOf("prod")!=-1)
	{
		swap_img('prod_bg');
	}
	if (page.indexOf("cust_service")!=-1)
	{
		swap_img('lap_bg');
	}

}

document.write('<table width="100%" cellpadding="0" cellspacing="0" border="0"><!-- top links --><tr><td><img src="/portal/newgen/citifinancial/images/spacer.gif" width="1" height="10" border="0" alt=""></td></tr><tr><td align="right"><table cellpadding="2" cellspacing="0" border="0"><tr valign="top"><td><img src="/portal/newgen/citifinancial/images/bullet_blue.gif" border="0" alt="" vspace="5"></td><td><a href="http://www.citifinancial.co.in/portal/newgen/creditwisely/index.htm" class="fnt1 clr1" target="_blank">Use Credit Responsibly</a></td><td><img src="/portal/newgen/citifinancial/images/bullet_blue.gif" border="0" alt="" vspace="5" style="margin-left:5px;"></td><td><a href="javascript:void(window.open(\'/portal/newgen/citifinancial/contact.htm\',\'calculator\',\'width=750,height=400,top=50,left=50,scrollbars=yes\'))" class="fnt1 clr1">Contact Us</a></td><td><img src="/portal/newgen/citifinancial/images/bullet_blue.gif" border="0" alt="" vspace="5" style="margin-left:5px;"></td><td><a href="/portal/newgen/citifinancial/site-map.htm" class="fnt1 clr1">Sitemap</a></td><td><img src="/portal/newgen/citifinancial/images/bullet_blue.gif" border="0" alt="" vspace="5" style="margin-left:5px;"></td><td><a href="javascript:void(window.open(\'/portal/newgen/citifinancial/privacy.htm\',\'calculator\',\'width=750,height=560,top=50,left=50,scrollbars=yes\'))" class="fnt1 clr1">Privacy</a></td><td><img src="/portal/newgen/citifinancial/images/bullet_blue.gif" border="0" alt="" vspace="5" style="margin-left:5px;"></td><td><a href="http://www.citigroup.com/citi/homepage/" class="fnt1 clr1" target="_blank">Citigroup.com</a></td><td width="5"><img src="/portal/newgen/citifinancial/images/spacer.gif" width="10" height="1" border="0" alt=""></td></tr></table></td></tr><!-- / top links --><!-- top nav --><tr><td><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="background-image: url(\'/portal/newgen/citifinancial/images/tpn_top_mid_bg.gif\');" align="left" width="9"><img src="/portal/newgen/citifinancial/images/tpn_top_left_cur.gif" width="9" height="7" border="0" alt=""></td><td style="background-image: url(\'/portal/newgen/citifinancial/images/tpn_top_mid_bg.gif\');"><img src="/portal/newgen/citifinancial/images/tpn_top_mid_bg.gif" width="1" height="7" border="0" alt=""></td><td style="background-image: url(\/portal/newgen/citifinancial/images/tpn_top_mid_bg.gif\');" align="right"><img src="/portal/newgen/citifinancial/images/tpn_top_rig_cur.gif" width="11" height="7" border="0" alt=""></td></tr><tr><td style="background-image: url(\'/portal/newgen/citifinancial/images/tpn_left_mid_bg.gif\');" align="left" valign="bottom" width="9"><img src="/portal/newgen/citifinancial/images/tpn_bot_left_cur.gif" width="9" height="30" border="0" alt=""></td><td><table width="937" cellpadding="0" cellspacing="0" border="0"><tr><td><img src="/portal/newgen/citifinancial/images/logo_citifinancial.gif" border="0" alt="Citi financial" title="Citi financial" style="margin-left:9px; margin-top:10px; margin-bottom:15px;"></td></tr><tr><td><table cellpadding="0" cellspacing="0" border="0"><tr><td width="55" height="30" id="home_bg" align="center"><a href="/portal/newgen/citifinancial/home.htm" class="fnt2 clr2" id="homelnk" onmouseover="swap_img(\'home_bg\');" onmouseout="show_tabon()" style="text-decoration:none;"><b>Home</b></a></td><td width="12"><img src="/portal/newgen/citifinancial/images/spacer.gif" width="12" height="1" border="0" alt=""></td><td width="87" id="prod_bg" align="center"><a href="/portal/newgen/citifinancial/products.htm?eOfferCode=CFPRDCTS" class="fnt2 clr2" id="prod" onmouseover="swap_img(\'prod_bg\');" onmouseout="show_tabon()" style="text-decoration:none;"><b>Products</b></a></td><td width="12"><img src="/portal/newgen/citifinancial/images/spacer.gif" width="12" height="1" border="0" alt=""></td><td width="150" id="lap_bg" align="center"><a href="/portal/citiin/forms/citifinnewcontactus.htm" class="fnt2 clr2" id="lap" onmouseover="swap_img(\'lap_bg\');" onmouseout="show_tabon()" style="text-decoration:none;"><b>Customer Service</b></a></td><td width="12"><img src="/portal/newgen/citifinancial/images/spacer.gif" width="12" height="1" border="0" alt=""></td></tr></table></td></tr></table></td><td style="background-image: url(\'/portal/newgen/citifinancial/images/tpn_rig_mid_bg.gif\');" align="right" valign="bottom"><img src="/portal/newgen/citifinancial/images/tpn_bot_rig_cur.gif" width="11" height="30" border="0" alt=""></td></tr><tr><td style="background-image: url(\'/portal/newgen/citifinancial/images/tpn_bot_mid_bg.gif\');" align="left"><img src="/portal/newgen/citifinancial/images/tpn_bot_left_cur1.gif" width="9" height="8" border="0" alt=""></td><td style="background-image: url(\'/portal/newgen/citifinancial/images/tpn_bot_mid_bg.gif\');"><img src="/portal/newgen/citifinancial/images/tpn_bot_mid_bg.gif" width="1" height="8" border="0" alt=""></td><td style="background-image: url(\'/portal/newgen/citifinancial/images/tpn_bot_mid_bg.gif\');" align="right"><img src="/portal/newgen/citifinancial/images/tpn_bot_rig_cur1.gif" width="11" height="8" border="0" alt=""></td></tr></table></td></tr><!-- / top nav --></table>');

/*topnav preloader */
function MM_preloadImages()
{
//v3.0
	var d=document;
	if(d.images)
	{
		if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments; 
		for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0)
		{
			d.MM_p[j]=new Image;
			d.MM_p[j++].src=a[i];
		}
	}
}

MM_preloadImages('/portal/newgen/citifinancial/images/btn_home_on.gif','/portal/newgen/citifinancial/images/btn_pl_on.gif','/portal/newgen/citifinancial/images/btn_lap_on.gif','/portal/newgen/citifinancial/images/btn_hl_on.gif','/portal/newgen/citifinancial/images/hm_drop_arrow_up.gif','/portal/newgen/citifinancial/images/hm_drop_arrow_down.gif');
/*topnav preloader */


/*var menuids=["treemenu1"] 

function buildsubmenus_horizontal(){
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
		if (ultags[t].parentNode.parentNode.id==menuids[i]){ //if this is a first level submenu
			ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px" //dynamically position first level submenus to be height of main menu item
			ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon"
		}
		else{ //else if this is a sub level menu (ul)
		  ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
    	ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon"
		}
    ultags[t].parentNode.onmouseover=function(){
    this.getElementsByTagName("ul")[0].style.visibility="visible"
    }
    ultags[t].parentNode.onmouseout=function(){
    this.getElementsByTagName("ul")[0].style.visibility="hidden"
    }
    }
  }
}

if (window.addEventListener)
window.addEventListener("load", buildsubmenus_horizontal, false)
else if (window.attachEvent)
window.attachEvent("onload", buildsubmenus_horizontal)*/
