var currentpage=location.href.substr(location.href.lastIndexOf("/")+1,location.href.length)
if(currentpage.lastIndexOf("#")!=-1)
{
currentpage=currentpage.substr(0,currentpage.lastIndexOf("#"));	


}
function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}


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;
}
var linklist=new Array();

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" ) { 
	
	if(ullia[i].href.substr(ullia[i].href.lastIndexOf("/")+1,ullia[i].href.length)==currentpage){
	ullia[i].parentNode.innerHTML='<img src="/global-images/arrow_blue1.gif" alt="" class="arrow1"  id="img10" style="margin-bottom:5px;" /><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>";
	}		
	}
	}
	
}

var currentpagenew=location.href.substr(location.href.lastIndexOf("/")+1,location.href.length)
currentpagenew=currentpagenew.substr(currentpagenew.lastIndexOf("#")+1,currentpagenew.length)

for ( i=0; i<ulli.length; i++){
	linklist[i]=ulli[i].innerHTML;
	

			if (ulli[i].className=="lisubheadadj" ) { 
			
			
            var links=ulli[i].childNodes[0].href.substr(ulli[i].childNodes[0].href.lastIndexOf("/")+1,ulli[i].childNodes[0].href.length);
			links=links.substr(links.lastIndexOf("#")+1,links.length);
			
			var currentotherpage=location.href.substr(location.href.lastIndexOf("/")+1,location.href.length)
				if(currentotherpage.lastIndexOf("#")!=-1)
				{
				currentotherpage=currentotherpage.substr(0,currentotherpage.lastIndexOf("#"));	
				}

				if(currentotherpage.lastIndexOf("?")!=-1)
				{
				currentotherpage=currentotherpage.substr(0,currentotherpage.lastIndexOf("?"));	
				}

			//alert(currentotherpage);
			if(currentotherpage=="credit-card-offers-gourmet-gurgaon.htm")
			currentpagenew="cGourmet";			
			if(currentotherpage=="credit-card-offers-gourmet-bangalore.htm")
			currentpagenew="cGourmet";			
			if(currentotherpage=="credit-card-offers-gourmet-chennai.htm")
			currentpagenew="cGourmet";			
			if(currentotherpage=="credit-card-offers-gourmet-delhi.htm")
			currentpagenew="cGourmet";			
			if(currentotherpage=="credit-card-offers-gourmet-mumbai.htm")
			currentpagenew="cGourmet";
			if(currentotherpage=="credit-card-offers-trident-hotel.htm")
			currentpagenew="ctravel";
			
			if(currentotherpage=="debit-offers-gourmet-bangalore.htm")
			currentpagenew="dGourmet";
			if(currentotherpage=="debit-offers-gourmet-chennai.htm")
			currentpagenew="dGourmet";
			if(currentotherpage=="debit-offers-gourmet-mumbai.htm")
			currentpagenew="dGourmet";
			if(currentotherpage=="debit-offers-gourmet-delhi.htm")
			currentpagenew="dGourmet";
			if(currentotherpage=="debit-offers-gourmet-pune.htm")
			currentpagenew="dGourmet";
			
			if(currentotherpage=="debit-offers-lifestyle.htm")
			currentpagenew="dLifestyle";
			if(currentotherpage=="debit-offers-half-price-wednesdays.htm")
			currentpagenew="dWednesdays";
			
			
			if(links==currentpagenew){
			
				 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" ) { 
		if(ulli[i].childNodes[0].href.substr(ulli[i].childNodes[0].href.lastIndexOf("/")+1,ulli[i].childNodes[0].href.length)==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);";
		}
		}
		 }
		 
		}
	  		}
			if(location.href.lastIndexOf("#")!=-1)
			tabHightlight(currentpagenew.substr(0,1)+currentpagenew)
			
			document.getElementById("dvleft").style.visibility='visible';
}

function tabHightlight(id)
{

var cpage=location.href.substr(location.href.lastIndexOf("/")+1,location.href.length)
if(cpage.lastIndexOf("#")!=-1)
{
cpage=cpage.substr(0,cpage.lastIndexOf("#"));	


}
if(cpage.lastIndexOf("?")!=-1)
{
cpage=cpage.substr(0,cpage.lastIndexOf("?"));	
}
if(cpage!="special-offers.htm")
{
return true;
}

var ulli=document.getElementById("dvleft").getElementsByTagName("li"); 

for ( i=0; i<ulli.length; i++){
	ulli[i].innerHTML=linklist[i];
	
}
document.getElementById(id).innerHTML="<span style='font-size:11px;color:#555555!important;'>"+document.getElementById(id).childNodes[0].innerHTML+"</span>";

if((id.substr(0,1))=="c"){
left_ShowHide('Navi2','img2','left2');
tabfunctionmain('_1so-cc-tab','2')
}

if((id.substr(0,1))=="d"){
left_ShowHide('Navi3','img3','left3');
tabfunctionmain('_2so-dc-tab','2');
}

if(id=="ccGourmet")
{
tabfunctionnhome('_1gourmet-tab','4');
}

if(id=="cctravel")
{
tabfunctionnhome('_2travel-tab','4')
}
if(id=="ccentertainment")
{
tabfunctionnhome('_3entertainment-tab','4')
}
if(id=="ccothers")
{
tabfunctionnhome('_4others-tab','4');
}

if(id=="ddGourmet")
{
tabfunctionnhome1('_1gourmetdc-tab','3');
}

if(id=="ddTravel")
{
tabfunctionnhome1('_2traveldc-tab','3');
}

if(id=="ddWednesdays")
{
tabfunctionnhome1('_3pricedc-tab','3');
}

}

function leftnav()
{
	document.write('<div id="lefthead"><img src="/card-offers/so-images/left-so-heading.gif"  alt="Special Offers"  title="Special Offers"/></div><div id="icon-nav"><ul><li class="dining1"><a href="/card-offers/special-offers.htm" id="leftnav_1">Dining</a></li><li class="shopping"><a href="/card-offers/special-offers.htm?lv=shopping" id="leftnav_2">Shopping</a></li>  <li class="entertainment"><a href="/card-offers/special-offers.htm?lv=entertainment" id="leftnav_3">Entertainment</a></li> <li class="travel"><a href="/card-offers/special-offers.htm?lv=travel" id="leftnav_4">Travel</a></li> <li class="others"><a href="/card-offers/special-offers.htm?lv=others" id="leftnav_5">Others</a></li></ul></div><div class="social-band"> <a href="JavaScript:void(0);" onclick="twitterdis(); "><img alt="twitter" title="twitter" src="/card-offers/images/twitter.jpg" /></a> <a href="JavaScript:void(0);" onclick="facebookdis();"><img alt="facebook" title="facebook" src="/card-offers/images/facebook.jpg" /></a> </div><div class="mof"><a href="https://www.online.citibank.co.in/portal/newgen/cards/tab/apply-now.htm?category=shopping&site=PORTAL&creative=NGX&section=SPLOLNBAN2&agencyCode=XER&campaignCode=&productCode=&eOfferCode=SPLOLNBAN2"><img style="border:0" alt="MISSING OUT ON OFFERS?" title="MISSING OUT ON OFFERS?" src="/card-offers/images/mising-out.gif" /></a></div> ');	
	}


		
function facebookdis()
{
var u = location.href;
var ecode='';
var txt='';
if(u.indexOf('/card-offers/special-offers.htm')!=-1)
{
ecode='GOUSOFB';
txt='We recommend these fabulous offers that have been lined up for you!';
}
if(u.indexOf('/card-offers/mumbai.htm')!=-1)
{
ecode='GOUMUMFB';
txt='We recommend these fabulous offers that have been lined up for you!';
}

if(u.indexOf('/card-offers/gurgaon.htm')!=-1)
{
ecode='GOUGURFB';
txt='We recommend these fabulous offers that have been lined up for you!';
}

if(u.indexOf('/card-offers/special-offers.htm')!=-1)
{
ecode='GOUSOFB';
txt='We recommend these fabulous offers that have been lined up for you!';
}

if(u.indexOf('/card-offers/delhi.htm')!=-1)
{
ecode='GOUDELFB';
txt='We recommend these fabulous offers that have been lined up for you!';
}

if(u.indexOf('/card-offers/dining.htm')!=-1)
{
ecode='GOUDINEFB';
txt='Explore sumptuous offers - Check out the irresistible Deal awaiting you in your city. Get set for the feast!';
}

if(u.indexOf('/card-offers/debit-card-pune.htm')!=-1)
{
ecode='GOUDPUNFB';
txt='Explore sumptuous offers - Check out the irresistible Deal awaiting you in your city. Get set for the feast!';
}

if(u.indexOf('/card-offers/debit-card-mumbai.htm')!=-1)
{
ecode='GOUDMUMFB';
txt='Explore sumptuous offers - Check out the irresistible Deal awaiting you in your city. Get set for the feast!';
}

if(u.indexOf('/card-offers/debit-card-hyderabad.htm')!=-1)
{
ecode='GOUDHYDFB';
txt='Explore sumptuous offers - Check out the irresistible Deal awaiting you in your city. Get set for the feast!';
}

if(u.indexOf('/card-offers/debit-card-gurgaon.htm')!=-1)
{
ecode='GOUDGURFB';
txt='Explore sumptuous offers - Check out the irresistible Deal awaiting you in your city. Get set for the feast!';
}

if(u.indexOf('/card-offers/debit-card-delhi.htm')!=-1)
{
ecode='GOUDDELFB';
txt='Explore sumptuous offers - Check out the irresistible Deal awaiting you in your city. Get set for the feast!';
}

if(u.indexOf('/card-offers/debit-card-chennai.htm')!=-1)
{
ecode='GOUDCHEFB';
txt='Explore sumptuous offers - Check out the irresistible Deal awaiting you in your city. Get set for the feast!';
}

if(u.indexOf('/card-offers/debit-card-bengaluru.htm')!=-1)
{
ecode='GOUDBENFB';
txt='Explore sumptuous offers - Check out the irresistible Deal awaiting you in your city. Get set for the feast!';
}

if(u.indexOf('/card-offers/credit-card-pune.htm')!=-1)
{
ecode='GOUCPUNFB';
txt='Explore sumptuous offers - Check out the irresistible Deal awaiting you in your city. Get set for the feast!';
}

if(u.indexOf('/card-offers/credit-card-mumbai.htm')!=-1)
{
ecode='GOUCMUMFB';
txt='Explore sumptuous offers - Check out the irresistible Deal awaiting you in your city. Get set for the feast!';
}

if(u.indexOf('/card-offers/credit-card-delhi.htm')!=-1)
{
ecode='GOUCDELFB';
txt='Explore sumptuous offers - Check out the irresistible Deal awaiting you in your city. Get set for the feast!';
}

if(u.indexOf('/card-offers/credit-card-chennai.htm')!=-1)
{
ecode='GOUCCHEFB';
txt='Explore sumptuous offers - Check out the irresistible Deal awaiting you in your city. Get set for the feast!';
}

if(u.indexOf('/card-offers/credit-card-bengaluru.htm')!=-1)
{
ecode='GOUCBENFB';
txt='Explore sumptuous offers - Check out the irresistible Deal awaiting you in your city. Get set for the feast!';
}

if(u.indexOf('/card-offers/citi-privileges.htm')!=-1)
{
ecode='SPLCPVLFB';
txt='We recommend these fabulous offers that have been lined up for you!';
}


if(u.indexOf('/card-offers/citi-instant-rewards-1.htm')!=-1)
{
ecode='SPLCINSRWDSTW';
txt='We recommend these fabulous offers that have been lined up for you!';
}

if(u.indexOf('/card-offers/citi-specials-1.htm')!=-1)
{
ecode='SPLCISPLS1TW';
txt='We recommend these fabulous offers that have been lined up for you!';
}

if(u.indexOf('/card-offers/citi-specials.htm')!=-1)
{
ecode='SPLCISPLSFB';
txt='We recommend these fabulous offers that have been lined up for you!';
}

if(u.indexOf('/card-offers/gurgaon-offers.htm')!=-1)
{
ecode='SPLGUROFTWFB';
txt='We recommend these fabulous offers that have been lined up for you!';
}

if(u.indexOf('/card-offers/debit-card-offers/debit-offers-half-price-wednesdays.htm')!=-1)
{
ecode='SPLHPWEDFB';
txt='We recommend these fabulous offers that have been lined up for you!';
}

if(u.indexOf('/card-offers/credit-card-offers/credit-card-offers-gourmet-gurgaon.htm')!=-1)
{
ecode='SPLGOUGURFB';
txt='We recommend these fabulous offers that have been lined up for you!';
}


MM_openBrWindow('/card-offers/facebook-disclaimer.htm?eOfferCode='+ecode+'&u='+u+'&t='+txt,'','width=760,height=382,top=100,left=100');
}


function twitterdis()
{
var u = location.href;
var ecode='';

if(u.indexOf('/card-offers/special-offers.htm')!=-1)
{
ecode='GOUSOTW';

}
if(u.indexOf('/card-offers/mumbai.htm')!=-1)
{
ecode='GOUMUMTW';

}

if(u.indexOf('/card-offers/gurgaon.htm')!=-1)
{
ecode='GOUGURTW';

}

if(u.indexOf('/card-offers/special-offers.htm')!=-1)
{
ecode='GOUSOTW';

}

if(u.indexOf('/card-offers/delhi.htm')!=-1)
{
ecode='GOUDELTW';

}

if(u.indexOf('/card-offers/dining.htm')!=-1)
{
ecode='GOUDINETW';

}

if(u.indexOf('/card-offers/debit-card-pune.htm')!=-1)
{
ecode='GOUDPUNTW';

}

if(u.indexOf('/card-offers/debit-card-mumbai.htm')!=-1)
{
ecode='GOUDMUMTW';

}

if(u.indexOf('/card-offers/debit-card-hyderabad.htm')!=-1)
{
ecode='GOUDHYDTW';

}

if(u.indexOf('/card-offers/debit-card-gurgaon.htm')!=-1)
{
ecode='GOUDGURTW';

}

if(u.indexOf('/card-offers/debit-card-delhi.htm')!=-1)
{
ecode='GOUDDELTW';

}

if(u.indexOf('/card-offers/debit-card-chennai.htm')!=-1)
{
ecode='GOUDCHETW';

}

if(u.indexOf('/card-offers/debit-card-bengaluru.htm')!=-1)
{
ecode='GOUDBENTW';

}

if(u.indexOf('/card-offers/credit-card-pune.htm')!=-1)
{
ecode='GOUCPUNTW';

}

if(u.indexOf('/card-offers/credit-card-mumbai.htm')!=-1)
{
ecode='GOUCMUMTW';

}

if(u.indexOf('/card-offers/credit-card-delhi.htm')!=-1)
{
ecode='GOUCDELTW';

}

if(u.indexOf('/card-offers/credit-card-chennai.htm')!=-1)
{
ecode='GOUCCHETW';

}

if(u.indexOf('/card-offers/credit-card-bengaluru.htm')!=-1)
{
ecode='GOUCBENTW';

}

if(u.indexOf('/card-offers/citi-privileges.htm')!=-1)
{
ecode='SPLCPVLTW';

}

if(u.indexOf('/card-offers/citi-instant-rewards-1.htm')!=-1)
{
ecode='SPLCINSRWDSTW';

}

if(u.indexOf('/card-offers/citi-specials-1.htm')!=-1)
{
ecode='SPLCISPLS1TW';

}

if(u.indexOf('/card-offers/citi-specials.htm')!=-1)
{
ecode='SPLCISPLSTW';

}

if(u.indexOf('/card-offers/gurgaon-offers.htm')!=-1)
{
ecode='SPLGUROFTWTW';

}

if(u.indexOf('/debit-card-offers/debit-offers-half-price-wednesdays.htm')!=-1)
{
ecode='SPLHPWEDTW';

}

if(u.indexOf('/card-offers/credit-card-offers/credit-card-offers-gourmet-gurgaon.htm')!=-1)
{
ecode='SPLGOUGURTW';

}



MM_openBrWindow('/card-offers/twitter-disclaimer.htm?eOfferCode='+ecode,'','width=760,height=382,top=100,left=100');
}		
	


	
	
	
