<!--
function externalLinks() {
 	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
			if (anchor.getAttribute("href") &&	anchor.getAttribute("rel") == "external") {
				anchor.target = "_blank";
				anchor.onclick = function() {
					alert("Dear Customer, you are just leaving Citibank web pages.");
				}
			}
	}
}
window.onload = externalLinks;

function sh( id )
{
 	if ( document.getElementById(id).style.display == "none" ) {
	 	document.getElementById(id).style.display="block";
		if (document.getElementById(id+'q')) document.getElementById(id+'q').innerHTML = '&ndash;';
	} else {
		document.getElementById(id).style.display="none";
		if (document.getElementById(id+'q')) document.getElementById(id+'q').innerHTML = '+';
	}
} 


var lastEl = null;
function mouseOver(el, x){
	el.onmouseout = mouseOut;
	el.restoreClass = el.className;
	el.className = x;
	lastEl = el;
};
function mouseOut(){
	lastEl.className = lastEl.restoreClass;
}

function btnMouseOver(s,el){
	var img = document.images[el];
	if (img) {
		var imgpath = img.src;
		img.old_src = imgpath;
		img.src = imgpath.substring(0,imgpath.lastIndexOf('.gif')-1)+"1.gif";
		s.image = img;
		if (s.onmouseout)
			s.onmouseout1=s.onmouseout;
		s.onmouseout = btnMouseOut2;
	};
};
function btnMouseOut2(){
	this.image.src=this.image.old_src;
	if (this.onmouseout1)
		this.onmouseout1();
	this.onmouseout = null;
	this.onmouseout1 = null;
}

function btnMouseOut(el){
	var img = document.images[el];
	if (img)
		img.src = img.old_src;
}
function vyber(e,f){
	var l = e.options[e.selectedIndex].value;
	while (l.charAt(0)==' ')
		l = l.substr(1);
	if (l!='')
		if (f) {
			window.open(l,f);
		} else if (l.indexOf("javascript:")==0)
			eval(l);
		else if (l.indexOf("http:")==0) {
			window.open(l).opener=null;
		} else
			location.href = l;
}

// from citibank
var uagt=navigator.userAgent.toLowerCase();
var is_major = parseInt(navigator.appVersion);
var is_minor = parseFloat(navigator.appVersion);
var is_DOM   = (document.getElementById) ? true : false;
var is_nav = ((uagt.indexOf('mozilla')!=-1) && (uagt.indexOf('spoofer')==-1)
            && (uagt.indexOf('compatible') == -1) && (uagt.indexOf('opera')==-1)
            && (uagt.indexOf('webtv')==-1));
var is_nav4 = document.layers ? true : false;
var is_nav4up = (is_nav && (is_major >= 4));
var is_nav6up = (is_nav && is_DOM);
var is_ie = (uagt.indexOf("msie") != -1);
var is_ie3 = (is_ie && (is_major < 4));
var msie_vers_start = uagt.indexOf("msie")+5;
var msie_real_vers = parseFloat(uagt.substring(msie_vers_start, msie_vers_start+3));
var is_ie4  = (is_ie && (is_major == 4) && (msie_real_vers < 5));
var is_ie4up  = (is_ie  && (is_major >= 4));
var is_ie5  = (is_ie && (is_major == 4) && (uagt.indexOf("msie 5.")!=-1));
var is_ie5up  = (is_ie  && !is_ie3 && !is_ie4);
var is_aol   = (uagt.indexOf("aol") != -1);
var is_aol3  = (is_aol && is_ie3);
var is_aol4  = (is_aol && is_ie4);
var is_mac    = (uagt.indexOf("mac")!=-1);
function styleVer()
{
  var v = 'dom'; // DOM & IE-PC
  if (is_nav) {
    if (is_mac) v = 'nsmac'; // NS MAC
    else if (!is_nav6up)v = 'nspc'; // NS-PC < 6
  } else if (is_mac && !is_ie5up) {
    if (is_aol) v = 'aolmac'; // IE-MAC < 5 & AOL
    else v = 'iemac'; // IE-MAC < 5 & !AOL
  }
  return "<link rel='stylesheet' type='text/css' href='/"+v+".css'>";
}
// document.write(styleVer()); 
function setBeginEnd(which,from,to){
	arPopups[which]=new Array();
	arPopups[which][0]=from;
	arPopups[which][1]=to;
}

ver4=(is_ie4up||is_nav4up)?1:0; 
if(ver4){
	arPopups=new Array()
	setBeginEnd(1,442,442);
	setBeginEnd(2,0,122);
	setBeginEnd(3,122,221);
	setBeginEnd(4,221,333);
	setBeginEnd(5,333,405);
	setBeginEnd(6,405,510);
	setBeginEnd(7,510,626);
};

clTop=0; clBot=20; 
function mapOver(which,on){
	if(!ver4)
		return;
	if (is_DOM){
		var el=document.getElementById("elMenuOver"); 
		whichEl=el.style;
	} else if(is_ie4up){
		whichEl=document.all.elMenuOver.style;
	} else {
		whichEl=document.elMenuOver;
	};
	if(!on){
		whichEl.visibility="hidden"; 
		return;
	}
	clLeft=arPopups[which][0]; 
	clRight=arPopups[which][1];
	if(is_nav4){
		whichEl.clip.left=clLeft; 
		whichEl.clip.right=clRight;
	} else {
		whichEl.clip="rect("+clTop+"px "+clRight+"px "+clBot+"px "+clLeft+"px)";
	}
	whichEl.visibility="visible";
}
function setCookie(name, value, expires, path, domain, secure) { 
var expiration = new Date(); 
var year; 
year=expiration.getYear(); 
if (year<2000) 
{ 
year=year+1900; 
} 
expiration.setYear(year + 1); 
 
  document.cookie = name + "=" + escape(value) +  
  //((expires == null) ? "" : "" )+ 
  ((expires == null) ? "" : "; expires='' " + expiration.toGMTString()) + 
  ((path == null) ? "" : "; path=" + path) + 
  ((domain == null) ? "" : "; domain=" + domain) + 
  ((secure == null) ? "" : "; secure"); 
};
 
function getCookie(name){ 
  var cname = name + "=";                
  var dc = document.cookie;              
  if (dc.length > 0) {               
    begin = dc.indexOf(cname);        
    if (begin != -1) {            
      begin += cname.length;        
      end = dc.indexOf(";", begin); 
      if (end == -1) end = dc.length; 
        return unescape(dc.substring(begin, end)); 
    }  
  } 
  return null; 
};

function directcz() {  
//	var now = new Date();
//	var windowhref = "http://czechrepublic.online.citibank.cz/HomeBankingSec/StartSession.asp?LANGNAME=Czech&LANG=92&DEVICEMODE=HTMLGPH&SRCT=10&MODE=2"; 
//	mainwin=window.open(windowhref,"citidirect","toolbar=no,location=yes,directories=no,status=yes,menubar=no,scrollbars=yes, resizable=yes, history=no, width=780,height=570");
  parent.document.location.href = "http://production.citibank.cz/";

	return false;
};

function direct() {  
//	var now = new Date();
//	var windowhref = "http://czechrepublic.online.citibank.cz/HomeBankingSec/StartSession.asp?LANGNAME=English_(Czech)&LANG=1&DEVICEMODE=HTMLGPH&SRCT=10&MODE=2"; 
//	mainwin=window.open(windowhref,"citidirect","toolbar=no,location=yes,directories=no,status=yes,menubar=no,scrollbars=yes, resizable=yes, history=no, width=780,height=570");
  parent.document.location.href = "https://production.citibank.cz/CZGCB/JPS/portal/LocaleSwitch.do?locale=en_CZ";

	return false; 
} 
 


// popup form
function openpil() {
	window.open('/ids/gohttpsbind.cgi?/securemail/last.sm?path=/czech/consumer-banking/english/ospuj','pil','scrollbars=1,toolbar=0,menubar=0,location=1,status=1,resizable=1,left=40,top=10,width=565,height=490');
	return false;
};

function openkarta() {
	window.open('/ids/gohttpsbind.cgi?/securemail/last.sm?path=/czech/consumer-banking/english/karta','karta','scrollbars=1,toolbar=0,menubar=0,location=1,status=1,resizable=1,left=40,top=10,width=565,height=490');
	return false;
};

function opencestpoj() {
	window.open('/ids/gohttpsbind.cgi?/securemail/last.sm?path=/czech/consumer-banking/english/cestpoj','cestpoj','scrollbars=1,toolbar=0,menubar=0,location=1,status=1,resizable=1,left=40,top=10,width=565,height=490');
	return false;
};

function openzivpoj() {
	window.open('/ids/gohttpsbind.cgi?/securemail/last.sm?path=/czech/consumer-banking/english/zivpoj','zivpoj','scrollbars=1,toolbar=0,menubar=0,location=1,status=1,resizable=1,left=40,top=10,width=565,height=490');
	return false;
};

function opencontact() {
	window.open('/ids/gohttpsbind.cgi?/securemail/last.sm?path=/czech/consumer-banking/english/contact','contact','scrollbars=1,toolbar=0,menubar=0,location=1,status=1,resizable=1,left=40,top=10,width=565,height=490');
	return false;
};

function opencitione() {
	window.open('/ids/gohttpsbind.cgi?/securemail/last.sm?path=/czech/consumer-banking/english/citione','citione','scrollbars=1,toolbar=0,menubar=0,location=1,status=1,resizable=1,left=40,top=10,width=565, height=490');
	return false;
};

function opencitikonto() {
	window.open('/ids/gohttpsbind.cgi?/securemail/last.sm?path=/czech/consumer-banking/english/citikonto','citikonto','scrollbars=1,toolbar=0,menubar=0,location=1,status=1,resizable=1,left=40,top=10,width=565, height=490');
	return false;
};

function opendoporuceni(){
//	mywin = open("/ids/gohttpsbind.cgi?/securemail/last.sm?path=/czech/consumer-banking/english/doporuceni/cm.cgi", "displayWindow", "left=100,top=0,width=565, height=490,status=yes,scrollbars=yes,toolbar=no,menubar=no,dependent=no,alwaysRaised=yes,titlebar=no,z-lock=yes,location=yes"); 
//	mywin.focus();
	return false;
}

// popup windows

function citibr(){ 
 var zWindow; 
        zWindow=window.open("../docs/doc1503.htm","newwin", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=no,copyhistory=0,width=600,height=400");
	return false; 
}
function citiph() { 
 var zWindow; 
        zWindow=window.open("../docs/doc1501.htm","newwin", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=no,copyhistory=0,width=500,height=400"); 
	return false; 
} 

function citi_info1() { 
 var zWindow; 
        zWindow=window.open("../docs/doc1505.htm","newwin", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=no,copyhistory=0,width=500,height=400"); 
	return false; 
} 

function citi_info2() { 
 var zWindow; 
        zWindow=window.open("../docs/doc1506.htm","newwin", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=no,copyhistory=0,width=500,height=480"); 
	return false; 
} 


function reqdo() { 
 var zWindow; 
        zWindow=window.open("../docs/doc1502.htm","newwin", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=no,copyhistory=0,width=500,height=300"); 
	return false; 
} 

function popup(page) {
	window.open(page,"newwin", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=no,copyhistory=0,width=600,height=450"); 
	return false;
};


function mapa(){
	return;
}

function toCzech() {
	var s = window.location.href;
	window.location.href = s.replace(/\/consumer\-banking\/english/,"/consumer-banking/czech");
	return false;
};

function footer(v){

	setCookie("homepage","GCBEN",null,"/");

	testCSC(true);
	document.write(
'<!-- FOOTER -->'+
'<div align="right" class="footer">'+
((v=="popup")?'<a href="#" onclick="window.close();"><strong>close</strong></a>':
'<img src="../images/vykricn.gif" border="0" alt="warning" align="middle"> <a href="/czech/homepage/email-warning.htm" target="warning" onclick="return popup(\'/czech/homepage/email-warning.htm\');" style="color:#cc0000;">about e-mail fraud</a> | <a href="../docs/doc540.htm">about us</a> | '+
'<a href="http://citibank.jobs.cz" target="jobs">careers</a> | <a href="../docs/doc300.htm">contact us</a> | <a href="../docs/sitemap.htm">site map</a>')
+
' </div><table width="100%" border="0" class="footer"><tr><td colspan="2"><img src="../images/line.gif" width="100%" height="1" BORDER="0" alt=""></tr></td><tr valign="bottom" height="10"> <td valign="top">'+
'<a href="http://www.citibank.com" target="_top" style="text-decoration:none;"><img align="middle" alt="Citibank Logo" border="0" width="61" height="19" src="../images/f_cglogo.gif"></a><br>'+
'<a href="http://www.citibank.com" target="_top">Citibank.com</a>'+
'</td>'+
'      <td align="right">'+
'<a href="/czech/homepage/privacy.htm" target="privacy" onclick="return popup(\'/czech/homepage/privacy.htm\');">Citibank privacy statement</a><br>'+
'       <a href="/czech/homepage/warning.htm" target="privacy" onclick="return popup(\'/czech/homepage/warning.htm\');">Terms & Conditions</a><br>Copyright © 2009 Citigroup Inc.</td></tr></table>'+
'<!-- end FOOTER -->'
	);
	
	// zkontroluj, zda je tady getCookie pritomna
	var cition = getCookie("citionline");
	document.write ('<img src="http://reports.digi-trade.cz/citistat/image?lang=en&amp;refer='+escape(top.document.referrer)+'&amp;width='+escape(window.screen.width)+'&amp;height='+escape(window.screen.height)+'&amp;color='+escape(window.screen.colorDepth)+'&amp;citionl='+cition+'&amp;title='+document.title+'" width="1" height="1" border=0 />');
};

function testCSC(nonframes){
// check Cross Frame Spoofing
	if (nonframes) { // TOP
//		if (navigator.userAgent.indexOf("Mac")==-1)
			if (top != self)
				top.location = self.location;
	} else {	// SSC
		try {
			if (top.location.hostname != self.location.hostname) {
			        top.location = "http://www.citibank.cz";
			}
		} catch(e){
		        top.location = "http://www.citibank.cz";
		}
	};
};

// -->
