var d=new Date();
document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0' ID='Table1'>");


document.write("  <tr align='right' valign='top'> ");


document.write("    <td colspan='4'> ");


document.write("      <table width='5%' height='20'  border='0' cellpadding='0' cellspacing='0'>");


document.write("        <tr> ");


document.write("		  <td width='10'><img src='/personal/img/pixel.gif'></td>");


document.write("          <td width='33%' nowrap><a href='/personal/banking/info/aboutcitibank/index.htm'>About us</a> | <a href='#' onClick=\"openWindow('/personals/cards/cards/contact-nb.htm', 'cards'); return false\" >Contact us</a> | <a href='/personal/cards/security.htm'>Security</a></td>");


document.write("          <td nowrap>&nbsp;</td>");


document.write("          <td><img src='/personal/img/pixel.gif' width='5' height='1'></td>");


document.write("        </tr>");


document.write("      </table>");


document.write("    </td>");


document.write("  </tr>");


document.write("  <tr valign='top'> ");


document.write("    <td colspan='4'><img src='/personal/img/1grey.gif' width='100%' height='1' vspace='10'></td>");


document.write("  </tr>");

document.write("  <tr valign='top'> ");



document.write("<td><img src='/personal/img/pixel.gif' width='3' height='1'></td><td colspan='3' 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.<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>Should you wish to contact Citi, please refer to the <a href='#' onClick=\"openWindow(' /personals/cards/cards/contact-nb.htm', 'cards'); return false\">Contact Us</a> section, which can be found at the top of each page on the site.<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>.<br><br></td>");

document.write("  </tr>");
document.write("  <tr valign='top'> ");


document.write("  <td><img src='/personal/img/pixel.gif' width='3' height='1'></td>");


document.write("    <td><img src='/personal/img/citi/ftr_logo.gif' ><br> ");


document.write("    <a href='http://www.citi.com' class='footer'>Citi.com</a></td>");


document.write("    <td nowrap align='right' class='footer'><div align='right'>");


document.write("        <a href='/personal/banking/info/privacy/index.htm' class='footer'>Privacy</a><br>");


//document.write("        <a href='/personal/cards/terms_cond.htm' class='footer'>Terms, conditions, caveats and small print</a><br>");


	document.write("Copyright &copy;"+d.getFullYear()+"&nbsp;Citigroup Inc.</div></td>");


document.write("    <td><img src='/personal/img/pixel.gif' width='3' height='1'></td>");


document.write("  </tr>");


document.write("</table>");

//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=="?merchant=citi") //checking if there is no other querystring

				{

					strSource="?type=cards&merchant=citi&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



}



}

