var d=new Date();


document.write("<div id='footer'><hr><div style='float:left;' class='footer'><a href='http://www.citigroup.com'>citigroup.com</a></div><div style='float:right;' class='footer'><a href='/personal/banking/info/aboutcitibank/index.htm'>About us</a> | <a href='/personals/cards/cards/index.htm'>Contact us</a> | <a href='/personal/banking/bankingproducts/currentaccounts/internetbanking/security.htm'>Security</a> | <a href='/personal/banking/info/privacy/index.htm'>Privacy</a> | <a href='/personal/banking/info/access/index.htm'>Accessibility</a> | <a href='/personal/banking/sitemap/index.htm'>Site map</a> | <a href='http://www.citi.com'>Citi.com</a></div><br><hr>");



document.write("<div style='float:left;padding-right:50px;' class='footer'><img src='/personal/img/citi/ftr_logo.gif'><br><a href='http://www.citi.com'>Citi.com</a></div><div style='float:right;text-align:right;width:850px;' class='footer'>&copy;"+d.getFullYear()+"&nbsp;CitiFinancial Europe plc.<br>Citi is a trading style of CitiFinancial Europe plc. Citi with Arc design is a service mark of Citigroup Inc. Citi Never Sleeps is a service mark of Citigroup Inc. CitiFinancial Europe plc is licensed by the Office of Fair Trading to supply credit. Our license number is 079310. For all other activities, we are authorised and regulated by the Financial Services Authority. FSA reference 204598. Registered in England and Wales, registered number 1375237. Registered Office: Citigroup Centre, Canada Square, Canary Wharf, London E14 5LB. VAT No GB 429 6256 29. Ultimately owned by Citigroup Inc, New York, USA. CitiFinancial Europe plc subscribes to the Lending Code; for further information or to view the Lending Code visit the Lending Standards Board website at <a href='/personal/redirect/redirect.htm?url=http://www.lendingstandardsboard.org.uk/?' target='_blank'><!---->www.lendingstandardsboard.org.uk</a>.<br><br>CitiFinancial Europe plc is a member of the <a href='/personal/redirect/redirect.htm?url=http://www.financial-ombudsman.org.uk/?' target='_blank'>Financial Ombudsman Scheme</a> and the <a href='/personal/redirect/redirect.htm?url=http://www.fla.org.uk/?' target='_blank'>Finance and Leasing Association</a>.<br><br>By using this website, registered in the United Kingdom, you agree to the <a href='/personal/cards/terms_cond.htm' class='footer'>Terms and Conditions</a>.</div></div></div>");

//document.write("<scr" + "ipt language='JavaScript' src='http://www.flags-international.org/chewy/urchin.js'></scr" + "ipt>");

document.write("<scr" + "ipt language='JavaScript' src='http://www.google-analytics.com/urchin.js'></scr" + "ipt>"); 

document.write("<scr" + "ipt language='Javascript' src='/personal/js/gana.js'></scr" + "ipt>");



/**START - added by Peter for 'offer source tracking**/



var offer=""

if (tab == 2)

{


	//if (subnum==1 && leftnum==1) offer="A258"

    //if (subnum==1 && leftnum==2) offer="A227"
	
	//if (subnum==1 && leftnum==3) offer="A088"
	
	//if (subnum==1 && leftnum==4) offer="A118"
	
	//if (subnum==1 && leftnum==5) offer="A136"
	
	//if (subnum==1 && leftnum==20) offer="A125"
	
	//if (subnum==1 && leftnum==0) offer="A139"

	//if (subnum==3 && leftnum==0) offer="A139"
	
	//if (subnum==5 && leftnum==0) offer="A139"
	
	//if (subnum==6 && leftnum==0) offer="A139"
	
	//if (subnum==7 && leftnum==0) offer="A139"
	
	


}
//	if (typeof offer == 'undefined') offer="" //checking whether the offer variable is defined previously



	strSource1 = strSource.substring(strSource.indexOf("?")+1, strSource.length);











	function getArgs(){

	   var args = new Object();

	   var query = location.search.substring(1);     // Get query string

	   var pairs = query.split("&");                 // Split at ampersand

	   for (var i=0; i < pairs.length; i++){

		   var pos = pairs[i].indexOf('=');          // Look for "name=value"

		   if (pos == -1) continue;                  // If not found, skip

		   var argname = pairs[i].substring(0,pos);  // Extract the name

		   var value = pairs[i].substring(pos+1);    // Extract the value

		   args[argname] = unescape(value);          // Store as a decoded value

		   

	   }

		

		if (args["offer"]) //checking offer is present in query string

		{

			if (offer!="") //checking if offer variable is set in the page

			{

				strSource=strSource.replace("offer="+args["offer"],"offer="+offer)

			}

		}else

		{

			if (offer!=""){ //checking if offer variable is set in the page
              
				if (strSource=="") //checking if there is no other querystring

				{

					strSource="?type=cards&offer="+offer
						var str1= new Array();
						var str= document.location.href;
						   str1=str.split("?")
						 document.location.href= str1[0]+strSource;
                  
				}else{

					//strSource=strSource+"&offer="+offer  // if we have any querystring we simply append to it

				}

			}

		

		}

	}

	getArgs()  //calling the function to read the querystring



/**END -  added by Peter for 'offer source tracking**/






for (i=0;i<document.links.length;i++) {



var strHref = (document.links[i].href).toLowerCase();





    if ( ((strHref.substring(0,11)).toLowerCase()== 'javascript:') ||(strHref.indexOf("history")>0 || (strHref.indexOf("#")>0) || ((strHref.substring(0,7)).toLowerCase()== 'mailto:')))





	{}





	else



if (document.links[i].hostname == location.hostname){



	if(strHref.indexOf("?")>0) 





		if(strHref.indexOf("gohttps")>0)



			document.links[i].href=document.links[i].href + strSource 



		else		



			document.links[i].href=document.links[i].href + strSource.replace("?","&")





	else





		document.links[i].href=document.links[i].href + strSource



}



}


