var currentpage=location.href.substr(location.href.lastIndexOf("/")+1,location.href.length)
if(currentpage.lastIndexOf("#")!=-1)
{
currentpage=currentpage.substr(0,currentpage.lastIndexOf("#"));	


}

if(currentpage.lastIndexOf("?")!=-1)
{
currentpage=currentpage.substr(0,currentpage.lastIndexOf("?"));	

}


var disclaimerpages=Array("form_jet_plat.htm","form_jet_gold.htm");
function left_ShowHide(src,img,obj){
	var imgopen = '/global-images/arrow_blue11.gif';
	var imgclose = '/global-images/arrow_blue1.gif';
var displaystatus=document.getElementById(src).style.display;
var ar = document.getElementById("dvleft").getElementsByTagName("ul"); 
var ulimg=document.getElementById("dvleft").getElementsByTagName("img"); 
var ulspan=document.getElementById("dvleft").getElementsByTagName("span"); 



for ( i=0; i<ulimg.length; i++){

			if(ulimg[i].className=="arrow")
				ulimg[i].src = imgclose;
        		}
			
for ( i=0; i<ulspan.length; i++){
	
		ulspan[i].style.fontWeight="normal";
	  		}
			
			
			

	
	
			for ( i=0; i<ar.length; i++){
				if (ar[i].className=="leftshowhide_sub") {
				ar[i].style.display = "none";
				document.getElementById(img).src = imgclose;
                document.getElementById(obj).style.fontWeight="normal";
				}
			}
	
			
			




		if( displaystatus== 'none'){
			document.getElementById(src).style.display = 'block';
			document.getElementById(img).src = imgopen;

document.getElementById(obj).style.fontWeight="bold";
		}
		else 
		{
			document.getElementById(src).style.display = 'none';
			document.getElementById(img).src = imgclose;
			if(document.getElementById(obj).parentNode.parentNode.className!="highlightelement1")
document.getElementById(obj).style.fontWeight="normal";
		}

}




function sublevelmenu(id,obj)
{

if(obj.href=="javascript:void(0);"){
if( document.getElementById(id).style.display == 'none'){
	
	allelemt=obj.parentNode.parentNode.getElementsByTagName("ul");
				
			for(i=0;i<allelemt.length;i++)
			{
			allelemt[i].style.display='none';
          
			}
			
	allelemt=obj.parentNode.parentNode.getElementsByTagName("a");
				
			for(i=0;i<allelemt.length;i++)
			{
				if(!(allelemt[i].parentNode.className=="highlightelement" || allelemt[i].className=="lasthightlightelemt" )){
					allelemt[i].style.fontWeight='normal';}
					
          
			}
	
  
			document.getElementById(id).style.display = 'block';
	

			
		}
		else 
		{
				
			document.getElementById(id).style.display = 'none';
			if(obj.parentNode.className!="highlightelement")
			obj.style.fontWeight = "normal";
		}
		}
}

function checkinarray(value,arry) {
	var i;
	for (i=0; i < arry.length; i++) {
		if (arry[i] == value) {
			return true;
		}
	}
	return false;
}


function showinnerlevel()
{


	
var ulli=document.getElementById("dvleft").getElementsByTagName("li"); 
var ullia=document.getElementById("dvleft").getElementsByTagName("a"); 

if(checkinarray(currentpage,disclaimerpages))
{
	
	for ( i=0; i<ullia.length; i++){
		
		if (ullia[i].parentNode.parentNode.className=="leftshowhide_sub_sec" ) { 
		        ullia[i].innerHTML="<span style='color:#009beb;float:left!important;cursor:pointer;'>"+ullia[i].innerHTML+"</span>";
				if(ulli[i].parentNode.parentNode.previousSibling.nodeType == 3){
				ullia[i].parentNode.parentNode.parentNode.previousSibling.previousSibling.style.fontWeight="bold";
				ullia[i].parentNode.parentNode.style.display='block';
				ullia[i].parentNode.parentNode.parentNode.previousSibling.previousSibling.innerHTML='<img src="/global-images/arrow_blue1.gif" alt="" class="arrow1"  /><div style="font-weight:bold;color:#000066;">'+ullia[i].parentNode.parentNode.parentNode.previousSibling.previousSibling.childNodes[1].innerHTML+'</div>';	
				
				}else{
				ullia[i].parentNode.parentNode.parentNode.previousSibling.style.fontWeight="bold";
				ullia[i].parentNode.parentNode.style.display='block';
				ullia[i].parentNode.parentNode.parentNode.previousSibling.innerHTML='<img src="/global-images/arrow_blue1.gif" alt="" class="arrow1"  /><div style="font-weight:bold;color:#000066;">'+ullia[i].parentNode.parentNode.parentNode.previousSibling.childNodes[1].innerHTML+'</div>';	
				
				}
		}
	
	}


}

for ( i=0; i<ullia.length; i++){
		
	if (ullia[i].parentNode.className=="leftshowhide_sub" ) { 
url=ullia[i].href.substr(ullia[i].href.lastIndexOf("/")+1,ullia[i].href.length);
if(url.lastIndexOf("?")!=-1)
url=url.substr(0,url.lastIndexOf("?"));



	if(url==currentpage){
	ullia[i].parentNode.innerHTML='<img src="/global-images/arrow_blue1.gif" alt="" class="arrow1"  id="img10" /><div style="font-weight:bold;color:#000066;">'+ullia[i].childNodes[0].innerHTML+'</div>';
			if (ullia[i].parentNode.parentNode.className=="leftshowhide_sub_sec" ) { 
	ullia[i].parentNode.parentNode.style.display='block';
	ullia[i].parentNode.innerHTML="<div style='color:#555555;font-size:11px;'>"+ullia[i].innerHTML+"</div>";
	}		
	}
	}
	
}


for ( i=0; i<ulli.length; i++){
	
			if (ulli[i].className=="lisubheadadj" ) { 
			url=ulli[i].childNodes[0].href.substr(ulli[i].childNodes[0].href.lastIndexOf("/")+1,ulli[i].childNodes[0].href.length);
		  if(url.lastIndexOf("?")!=-1)
			url=url.substr(0,url.lastIndexOf("?"));
		
		
				if(url==currentpage){
				
				 ulli[i].parentNode.style.display='block';
				 ulli[i].innerHTML="<span style='font-size:11px;color:#555555!important;'>"+ulli[i].childNodes[0].innerHTML+"</span>";
				 ulli[i].childNodes[0].href="javascript:void(0);";
				 
				   if(ulli[i].parentNode.parentNode.previousSibling.nodeType == 3){
				 ulli[i].parentNode.parentNode.previousSibling.previousSibling.style.fontWeight="bold";
				  ulli[i].parentNode.parentNode.previousSibling.previousSibling.childNodes[0].src='/global-images/arrow_blue11.gif';
				   }else
				   {
				 ulli[i].parentNode.parentNode.previousSibling.style.fontWeight="bold";
				   ulli[i].parentNode.parentNode.previousSibling.childNodes[0].src='/global-images/arrow_blue11.gif';
				   }
				 
				 
				 
			}else
			{
				
			}
			}
	
			
		if (ulli[i].className=="leftshowhide_sub_sub" ) { 

			url=ulli[i].childNodes[0].href.substr(ulli[i].childNodes[0].href.lastIndexOf("/")+1,ulli[i].childNodes[0].href.length);
			if(url.lastIndexOf("?")!=-1){
			url=url.substr(0,url.lastIndexOf("?"));}	

		
			
			
		if(url==currentpage){
		 ulli[i].childNodes[0].className="lasthightlightelemt";
		ulli[i].innerHTML="<div style='color:#555555;font-weight:normal;font-size:11px;line-height:15px;'>"+ulli[i].childNodes[0].innerHTML+"</div>";
		 ulli[i].parentNode.parentNode.parentNode.parentNode.style.display='block';
		 ulli[i].parentNode.parentNode.parentNode.style.display='block';
		 ulli[i].style.fontWeight="bold";
		 ulli[i].parentNode.style.display="block"
		  if(ulli[i].parentNode.parentNode.previousSibling.nodeType == 3){
		 ulli[i].parentNode.parentNode.previousSibling.previousSibling.style.fontWeight="bold";
		 ulli[i].parentNode.parentNode.previousSibling.previousSibling.className ='highlightelement';
		 ulli[i].parentNode.parentNode.parentNode.parentNode.previousSibling.previousSibling.style.fontWeight="bold";
    	 ulli[i].parentNode.parentNode.parentNode.parentNode.previousSibling.previousSibling.className ='highlightelement1';
		 ulli[i].parentNode.parentNode.parentNode.parentNode.previousSibling.previousSibling.childNodes[0].src='/global-images/arrow_blue11.gif';
		 }
		 else{
		 ulli[i].parentNode.parentNode.previousSibling.style.fontWeight="bold";
		 ulli[i].parentNode.parentNode.previousSibling.className ='highlightelement';
		 ulli[i].parentNode.parentNode.parentNode.parentNode.previousSibling.style.fontWeight="bold";
		 ulli[i].parentNode.parentNode.parentNode.parentNode.previousSibling.className ='highlightelement1';
		  ulli[i].parentNode.parentNode.parentNode.parentNode.previousSibling.childNodes[0].src='/global-images/arrow_blue11.gif';
		}
		
		alllinks=(ulli[i].parentNode.parentNode.parentNode.parentNode.parentNode.getElementsByTagName("a"));
		
		for(j=0;j<alllinks.length;j++)
		{
			
		if(alllinks[j].parentNode.className=="highlightelement" ){
		alllinks[j].href="javascript:void(0);";
		}
		}
		 }
		 
		}
	  		}
			
			
			
}

function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}



function leftnav()
{
	document.write('<div id="lefthead"><img src="/cs-images/cs-left-head.gif"  alt="Customer Service"  title="Customer Service"/></div><div id="dvleft"><ul style="list-style-type:none !important;"><div class="leftgradholder"><div class="leftgradtop"> <img src="/global-images/left_nav_top.gif" alt="" /></div><div class="leftgradmid"><li class="leftshowhide_sub" ><img src="/global-images/arrow_blue1.gif" alt="" class="arrow" style="margin-bottom:5px;"  id="img1" /><a href="javascript:left_ShowHide(\'Navi1\',\'img1\',\'left1\')" ><span id="left1">You\'re looking for help on</span></a></li><li class="leftliholder"><ul class="leftshowhide_sub"  id="Navi1" style="display:none; " ><li class="lisubheadadj"><a href="/customerservice/creditcard_faq.htm?eOfferCode=LFTNVCS">Credit Cards</a></li><li class="lisubheadadj"><a href="/customerservice/banking_faq.htm?eOfferCode=LFTNVCS">Banking </a></li><li class="lisubheadadj"><a href="/customerservice/personalloan_faq.htm?eOfferCode=LFTNVCS">Loans </a></li><li class="lisubheadadj"><a href="/customerservice/invest_faq.htm?eOfferCode=LFTNVCS">Investments</a></li><li class="lisubheadadj"><a href="/customerservice/onlineservices_faq.htm?eOfferCode=LFTNVCS">Online and Mobile Services </a></li></ul></li> </div><div class="leftgradfoot"> <img src="/global-images/left_nav_foot.gif" alt="" /> </div></div><div class="leftgradholder"><div class="leftgradtop"> <img src="/global-images/left_nav_top.gif" alt="" /> </div><div class="leftgradmid"><li class="leftshowhide_sub" ><img src="/global-images/arrow_blue1.gif" alt="" class="arrow" style="margin-bottom:5px;"  id="img2" /><a href="javascript:left_ShowHide(\'Navi2\',\'img2\',\'left2\')" ><span id="left2">Reach Us</span></a></li>        <li class="leftliholder"><ul class="leftshowhide_sub"  id="Navi2" style="display:none; " ><li class="lisubheadadj"><a href="/customerservice/service-request.htm?eOfferCode=LFTNVCS">Service Request</a></li><li class="lisubheadadj"><a href="/customerservice/citiphone.htm?eOfferCode=LFTNVCS">CitiPhone</a></li><li class="lisubheadadj"><a href="/customerservice/ivrs.htm?eOfferCode=LFTNVCS">IVRS</a></li> <li class="lisubheadadj"><a href="javascript:void(0);" onclick="javascript:sublevelmenu(\'Subnav1\',this)">Find Nearest</a></li>              <li class="leftliholder"><ul  style="display:none;" id="Subnav1"><li class="leftshowhide_sub_sub"><a href="/customerservice/branch-atm-locations.htm?eOfferCode=LFTNVCS">Branch / ATM</a></li> <li class="leftshowhide_sub_sub"><a href="/customerservice/touchscreenbanking.htm?eOfferCode=LFTNVCS">Touch Screen Banking</a></li><li class="leftshowhide_sub_sub"><a href="/customerservice/dropbox.htm?eOfferCode=LFTNVCS">Drop Box Locations</a></li><li class="leftshowhide_sub_sub"><a href="/customerservice/draftlocations.htm?eOfferCode=LFTNVCS">Draft Locations</a></li><li class="leftshowhide_sub_sub"><a href="/customerservice/courier.htm?eOfferCode=LFTNVCS">Draft Courier Locations</a></li><li class="leftshowhide_sub_sub"><a href="/customerservice/courier-details.htm?eOfferCode=LFTNVCS">Courier Service Providers</a></li></ul></li> </ul></li></div><div class="leftgradfoot"> <img src="/global-images/left_nav_foot.gif" alt="" /> </div></div><div class="leftgradholder"><div class="leftgradtop"> <img src="/global-images/left_nav_top.gif" alt="" /> </div><div class="leftgradmid"><li class="leftshowhide_sub" ><img src="/global-images/arrow_blue1.gif" alt="" class="arrow" style="margin-bottom:5px;"  id="img3" /><a href="javascript:left_ShowHide(\'Navi3\',\'img3\',\'left3\')" ><span id="left3">Instant Solutions</span></a></li><li class="leftliholder"><ul class="leftshowhide_sub"  id="Navi3" style="display:none; " ><li class="lisubheadadj"><a href="https://www.online.citibank.co.in/products-services/online-services/statement-on-email.htm?site=PORTAL&creative=NGX&section=LFTNVCS&agencyCode=XER&campaignCode=&productCode=&eOfferCode=LFTNVCS">Statement on E-mail</a></li><li class="lisubheadadj"><a href="/products-services/online-services/citialert.htm?eOfferCode=LFTNVCS">Mobile Updates</a></li><li class="lisubheadadj"><a href="https://www.citibank.co.in/ssjsps/ssindex.do" target="_blank" >Internet Banking PIN</a></li><li class="lisubheadadj"><a href="/customerservice/download_forms.htm?eOfferCode=LFTNVCS">Download Forms</a></li><li class="lisubheadadj"><a href="JavaScript:void(0);" onclick="MM_openBrWindow(\'/customerservice/calculator.htm?eOfferCode=LFTNVCS\',\'\',\'width=760,height=500,top=70,left=125\')">Calculators</a></li></ul></li></div><div class="leftgradfoot"><img src="/global-images/left_nav_foot.gif" alt="" /></div>    </div></ul></div> ')

	}
