<!--
document.write('<link rel="shortcut icon" href="/cgi-bin/gohttp?/czech/homepage/images/citi.ico" type="image/x-icon">');
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,64);
	setBeginEnd(3,64,156);
	setBeginEnd(4,156,217);
	setBeginEnd(5,217,314);
	setBeginEnd(6,314,468);
	setBeginEnd(7,468,580);
	setBeginEnd(8,585,620);
};

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 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 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 direct() {  
//	var now = new Date();
//	var windowhref = "http://czechrepublic.online.citibank.cz/HomeBankingSec/StartSession.asp?LANGNAME=Czech&LANG=92&DEVICEMODE=HTMLGPH&SRCT=10&BUSCODE=cz&SERVICECODE=SIGNON&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 directen() {  
//	var now = new Date();
//	var windowhref = "http://czechrepublic.online.citibank.cz/HomeBankingSec/StartSession.asp?LANGNAME=English_(Czech)&LANG=1&DEVICEMODE=HTMLGPH&SRCT=10&BUSCODE=cz&SERVICECODE=SIGNON&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('/cgi-bin/gohttps?/czech/consumer-banking/czech/ospujn/cm.cgi','pil','scrollbars=1,toolbar=0,menubar=0,location=1,status=1,resizable=1,left=40,top=10,width=565,height=490');
	window.open(' https://www.citipujcka.cz/citibank_popup_form.php?v=pop','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() {
	document.location.href='http://www.citikarta.cz';
//	window.open('http://www.citikarta.cz','karta','scrollbars=1,toolbar=0,menubar=0,location=1,status=1,resizable=1,left=40,top=10,width=765,height=490');
	return false;
};

function opencontact() {
	window.open('/cgi-bin/gohttps?/czech/consumer-banking/czech/contactn/cm.cgi','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('/cgi-bin/gohttps?/czech/consumer-banking/czech/citionen/cm.cgi','citione','scrollbars=1,toolbar=0,menubar=0,location=1,status=1,resizable=1,left=40,top=10,width=565, height=490');
	return false;
};

// popup windows

function popup(page) {
	window.open(page,"NEWUNSIZEABLE", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=no,copyhistory=0,width=700,height=497"); 
	return false;
};

function mapa(){
	return;
}

function footer(v){

	setCookie("homepage","",null,"/");

	testCSC(true);
	document.write(
'<!-- FOOTER -->'+
((v=="popup")?'<div align="right" class="footer"><a href="#" onclick="window.close();"><strong>zavřít</strong></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">'+
'<IMG alt="member od citigroup" border=0 height=13 src ="../images/memb1.gif" width=106 ><br>'+
'<a href="/cgi-bin/gohttp?/czech/homepage/ochrana-dat.htm" target="privacy" onclick="return popup(\'/cgi-bin/gohttp?/czech/homepage/ochrana-dat.htm\');">Prohlášení o ochraně osobních údajů</a><br>'+
'       <a href="/cgi-bin/gohttp?/czech/homepage/upozorneni.htm" target="privacy" onclick="return popup(\'/cgi-bin/gohttp?/czech/homepage/upozorneni.htm\');">upozornění</a><br>Copyright © 2008 Citicorp</td></tr></table>'+
'<!-- end FOOTER -->'
	);
};

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";
		}
	};
};

// -->
function toEnglish() {
	var s = window.location.href;
	window.location.href = s.replace(/\/consumer\-banking\/czech/,"/consumer-banking/english");
	return false;
};

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 = '+';
	}
} 
