//<script>
new ypSlideOutMenu("cu", "right", 183, 168, 570, 144);		//(id, dir, left, top, width, height)
new ypSlideOutMenu("po", "right", 137, 188, 280, 184);
new ypSlideOutMenu("ko", "right", 123, 268, 400, 200);

var imge = new Array();
imge[1] = "images/home_butt_over.jpg";

function mover(idx, pg){
	var Ox = getElement(idx);
	Ox.src = imge[pg];
}

function getElement(jmeno) {
  if (document.getElementById) return(document.getElementById(jmeno));
  else if (document.layers) return(document.layers[jmeno]);
  else if (document.all) return(document.all[jmeno].style);
  else return(null); 
}

function openWinA(src, ww, hh){
	switch(arguments.length){
		case 1: ww = 150; hh = 150; break;
		case 2: hh = 150; break;
		case 3: break;
		default: return false;
	}
	var Wjmeno = "winWA";
	var nastav = "left=20, top=20, width=" + ww + ", height=" + hh + ", toolbar=0, location=0, directories=0, status=1, menubar=0, scrollbars=0, resizable=0";
	if(ww < 0 || hh < 0){
		Wjmeno = "winWEB";
		nastav = "left=0, top=0, toolbar=1, location=1, directories=1, status=1, menubar=1, scrollbars=1, resizable=1";
	}
	var oknoWA = window.open(src, Wjmeno, nastav);
	if(ww > 0 || hh > 0){
		oknoWA.resizeTo(ww + 15, hh + 35);
	}
	oknoWA.focus();
	return oknoWA;
}

function BrowserType(){
  this.ie4 = (document.all && !window.opera && !document.fireEvent && !document.createComment) ? true : false;
  this.ie50 = (document.all &&  !document.fireEvent && !window.opera) ? true : false;
  this.ie55 = (document.all && document.fireEvent && !document.createComment) ? true : false;
  this.ie6 = (document.all && document.fireEvent && document.createComment) ? true : false;
  this.ns6 = (!document.all && document.getElementById) ? true : false;
  this.opera7 = (window.opera && document.createComment) ? true : false;
  this.opera6 = (window.opera && !document.createComment) ? true : false;

  this.ie = this.ie4 || this.ie50 || this.ie55 || this.ie6;
  this.ns = this.ns6;
  this.opera = this.opera7 || this.opera6;

  return this;
}

function ElementInfo(obj) {
	this.left = 0;
	this.topp = 0;
	this.width = obj.offsetWidth;
	this.height = obj.offsetHeight;
	
	if (obj.offsetParent) {
		while (obj.offsetParent) {
			this.left += obj.offsetLeft;
			this.topp += obj.offsetTop;
			obj = obj.offsetParent;
		}
	}
	else if (obj.x) {
		this.left += obj.x;
		this.topp += obj.y;
	}
	
	if (BrowserType().opera) {
		this.left += 20;
		this.topp += 20;
	}
	
	return this;
}

function newImage(arg) {	
		Im = new Image();
		Im.src = arg;
		return Im;	
}

function getImage() {
	Na = newImage("images/egypt.gif");
	Na = newImage("images/esko.gif");
}

function browserVersion()
{
   getSP2 = (window.navigator.userAgent.indexOf("SV1") != -1);
   if (g_fIsSP2)
   {
   //This browser is Internet Explorer in SP2. 
   }
   else
   {
   //This browser is not Internet Explorer in SP2.
   }
}
