<!--
//check top frame
if (top != self)
   {
       top.location=self.location;
   }
   
///////////////////////////////////////////////////////////
// Global declarations for Random add generation - Start //
///////////////////////////////////////////////////////////

// Define the parent adds.
var m_arrParentAdd = new Array( "nimgs/main_mar1209.swf");

// Get the total number of adds.
var m_nTotalParentAdds = m_arrParentAdd.length;

// Create an array for the child adds.
var m_arrChildAdd = new Array( m_nTotalParentAdds );

// Define child adds for the parent add 1.
var parentAdd = 0;
var totalChildSets = 1;
m_arrChildAdd[parentAdd] = new Array( totalChildSets );
m_arrChildAdd[parentAdd][0] = new Array( "nimgs/sd_deben_new.swf", "nimgs/sd_deben.swf", "nimgs/sd_03_seq.swf", "nimgs/sd_04_seq.swf" );



// Global instances to hold the random values generated at runtime.
var m_strParentAdd = "";
var m_strChildAdd1 = "", m_strChildAdd2 = "", m_strChildAdd3 = "", m_strChildAdd4 = "";

/////////////////////////////////////////////////////////
// Global declarations for Random add generation - End //
/////////////////////////////////////////////////////////

// This method generate the random adds and update it in the global instances.
function generateRandomAdds()
{
	// Generate a random number for the parent add.
	var parentAdd = Math.floor( Math.random() * m_nTotalParentAdds );
	
	// Generate a random number for the child add set.
	var childAddSet = Math.floor( Math.random() * m_arrChildAdd[parentAdd].length );
	
	// Get the parent add.
	m_strParentAdd = m_arrParentAdd[parentAdd];
	
	// Get the child adds.
	m_strChildAdd1 = m_arrChildAdd[parentAdd][childAddSet][0];
	m_strChildAdd2 = m_arrChildAdd[parentAdd][childAddSet][1];
	m_strChildAdd3 = m_arrChildAdd[parentAdd][childAddSet][2];
	m_strChildAdd4 = m_arrChildAdd[parentAdd][childAddSet][3];
}

// Generate random adds.
generateRandomAdds();

// This method display create the embeded tag for the given swf file.
function displayFlashAdd( p_Add, p_Height, p_Width, p_HSpace, p_VSpace )
{
	// Get parameters to local.
	var swfFile = p_Add;
	var height = p_Height;
	var width = p_Width;
	var hSpace = p_HSpace;
	var vSpace = p_VSpace;
	
	if( hSpace == undefined )
		hSpace = 0;

	if( vSpace == undefined )
		vSpace = 0;
	
	var swf = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + width + '" height="' + height + '" hspace="' + hSpace + '" vspace="' + vSpace + '">';
   	swf += '<param name="movie" value="' + swfFile + '">';
	swf += '<param name="quality" value="high"><PARAM NAME="menu" VALUE="false">';
    swf += '<embed src="' + swfFile + '" quality="high" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" hspace="' + hSpace + '" vspace="' + vSpace + '"></embed>';
	swf += '</object>';
	
	// Write the html content.
	document.write( swf );
}

// page variables
var path = ""
var topNavHighlight = 0



function goTo(e)
{
	var url = e.options[e.selectedIndex].value;
	if (url == "/cgi-bin/gohttp?/bahrain/homepage/femail/femails.htm")
		winOpen(url);
	else if (url != '#') 
        parent.location.href = url;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

var u1 = "";
var t1 = "";
var a1 = "";
var smb1 = "";
var hs1 = ""
var vs1 = ""
var wid1 = "";
var ht1 = "";

var u2 = "";
var t2 = "";
var a2 = "";
var smb2 = "";
var hs2 = ""
var vs2 = ""
var wid2 = "";
var ht2 = "";

txt="";
url="";
alt="";
banner="";
width="";
height="";

var ads = 2;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % ads;
ad +=1;

if (ad==1)
{
txt="";
url="../gcb/ccards/ecbfifa.htm";
target="_top"
alt="Introducing the Emirates-Citibank MasterCard&reg; FIFA World Cup&trade; Credit Card";
banner="nimgs/mn_fifa.gif";
width="445";
height="140";

//u1="../gcb/citibusiness/index.htm";
//t1="_top";
//a1="Need Cash for Office Rent? It’s possible with Business Installment Loans from Citibank";
//smb1="nimgs/sm-bil.gif";
//wid1="186";
//ht1="107";
//hs1="4"
//vs1="6"

//u1="../gcb/emailst/index.htm";
//t1="_top";
//a1="Start receiving your Email Statements";
//smb1="nimgs/sm-emst.gif";
//wid1="186";
//ht1="107";
//hs1="4"
//vs1="6"

u1="../gcb/whatsnew/pick_of_month/so/choithram/index.htm";
t1="_top";
a1="Get discounts on using your Citibank Credit Card at Choithram";
smb1="nimgs/mn_chrm.gif";
wid1="186";
ht1="107";
hs1="4"
vs1="6"

u2="../gcb/paccounts/debit_cards.htm";
t2="_top";
a2="Citibank Photo ATM - Debit Card";
smb2="nimgs/sm-dc.gif";
wid2="186";
ht2="107";
hs2="4"
vs2="6"

//u2="../gcb/paccounts/fly_away.htm";
//t2="_top";
//a2="Fly Away Free Promotion";
//smb2="nimgs/sm-spore.gif";
//wid2="186";
//ht2="107";
//hs2="4"
//vs2="6"

u3="../gcb/ccards/eip.htm";
t3="_top";
a3="Easy Installment Plan - Your paperless loan is just a call away!";
smb3="nimgs/sm_eip.gif";
wid3="186";
ht3="107";
hs3="4"
vs3="6"
}

if (ad==2) {
txt="";
url="../gcb/ccards/ecbfifa.htm";
target="_top"
alt="Introducing the Emirates-Citibank MasterCard&reg; FIFA World Cup&trade; Credit Card";
banner="nimgs/mn_fifa.gif";
width="445";
height="140";

u1="../gcb/whatsnew/pick_of_month/so/choithram/index.htm";
t1="_top";
a1="Get discounts on using your Citibank Credit Card at Choithram";
smb1="nimgs/mn_chrm.gif";
wid1="186";
ht1="107";
hs1="4"
vs1="6"

u2="../gcb/paccounts/debit_cards.htm";
t2="_top";
a2="Citibank Photo ATM - Debit Card";
smb2="nimgs/sm-dc.gif";
wid2="186";
ht2="107";
hs2="4"
vs2="6"

u3="../gcb/ccards/eip.htm";
t3="_top";
a3="Easy Installment Plan - Your paperless loan is just a call away!";
smb3="nimgs/sm_eip.gif";
wid3="186";
ht3="107";
hs3="4"
vs3="6"
}


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];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


//-->