<!--
function verifyCompatibleBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}
bw=new verifyCompatibleBrowser()
var speed=50
var loop, timer

function ConstructObject(obj,nest){
	nest=(!nest) ? '':'document.'+nest+'.'
	this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
	this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
	this.scrollWidth=bw.ns4?this.css.document.width:this.el.offsetWidth
	this.clipWidth=bw.ns4?this.css.clip.width:this.el.offsetWidth
	this.left=MoveAreaLeft;this.right=MoveAreaRight;
	this.MoveArea=MoveArea; this.x; this.y;
	this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight
	this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight
	this.up=MoveAreaUp;this.down=MoveAreaDown;
	this.obj = obj + "Object"
	eval(this.obj + "=this")
	return this
}
function MoveArea(x,y){
	this.x=x;this.y=y
	this.css.left=this.x
	this.css.top=this.y
}
function MoveAreaRight(move){
	if(this.x>-this.scrollWidth+objContainer.clipWidth){
		this.MoveArea(this.x-move, 0)
		if(loop) setTimeout(this.obj+".right("+move+")",speed)
	}
}
function MoveAreaLeft(move){
	if(this.x<0){
		this.MoveArea(this.x-move,0)
		if(loop) setTimeout(this.obj+".left("+move+")",speed)
	}
}
function MoveAreaDown(move){
	if(this.y>-this.scrollHeight+objContainer.clipHeight){
		this.MoveArea(0,this.y-move)
		if(loop) setTimeout(this.obj+".down("+move+")",speed)
	}
}
function MoveAreaUp(move){
	if(this.y<0){
		this.MoveArea(0,this.y-move)
		if(loop) setTimeout(this.obj+".up("+move+")",speed)
	}
}
function PerformScrollLeftRight(scrollobjekt, speed){
	if(initialised){
		loop=true;
		if(speed>0) scrollobjekt.right(speed)
		else scrollobjekt.left(speed)
	}
}
function PerformScrollUpDown(scrollobjekt, speed){
	if(initialised){
		loop=true;
		if(speed>0) scrollobjekt.down(speed)
		else scrollobjekt.up(speed)
	}
}
function CeaseScroll(){
	loop=false
	if(timer) clearTimeout(timer)
}
var initialised;
function InitialiseScrollableArea(){
	objContainer=new ConstructObject('divContainer')
	objScroller=new ConstructObject('divContent','divContainer')
	objScroller.MoveArea(0,0)
	initialised=true;
}
// end absolutely positioned scrollable area object scripts
function displayStatusMsg(msgStr) { 
  status=msgStr;
  document.returnValue = true;
}
function preloadImages() { 
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}
function swapImgRestore() { 
  var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function swapImage() { 
  var i,j=0,x,a=swapImage.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function maximize()
{
	top.window.moveTo(0,0); 
	if (document.all) {
		top.window.resizeTo(screen.availWidth,screen.availHeight);
	} else 
		if (document.layers || document.getElementById) { 
		   if (top.window.outerHeight < screen.availHeight || top.window.outerWidth < screen.availWidth) { 
				top.window.outerHeight = top.screen.availHeight; 
				top.window.outerWidth = top.screen.availWidth; 
			} 
		} 
}
function winH() {
   if (window.innerHeight)
      /* NN4 a kompatibilní prohlížeče */
      return window.innerHeight;
   else if
   (document.documentElement &&
   document.documentElement.clientHeight)
      /* MSIE6 v std. režimu - Opera a Mozilla
      již uspěly s window.innerHeight */
      return document.documentElement.clientHeight;
   else if
   (document.body && document.body.clientHeight)
      /* starší MSIE + MSIE6 v quirk režimu */
      return document.body.clientHeight;
   else
      return null;
}
function winW() {
   if (window.innerWidth)
      /* NN4 a kompatibilní prohlížeče */
      return window.innerWidth;
   else if
   (document.documentElement &&
   document.documentElement.clientWidth)
      /* MSIE6 v std. režimu - Opera a Mozilla
      již uspěly s window.innerHeight */
      return document.documentElement.clientWidth;
   else if
   (document.body && document.body.clientWidth)
      /* starší MSIE + MSIE6 v quirk režimu */
      return document.body.clientWidth;
   else
      return null;
}
function myresize()
{
	document.getElementById('TXT1').style.width=eval(winW()*0.99);
	document.getElementById('TXT1').style.height=eval(winH()*0.9);
	document.getElementById('TXT1').style.left=eval(winW()*0.01);
	document.getElementById('TXT1').style.top=eval(winH()*0.1);
	document.getElementById('TXT2').style.width=eval(winW()*0.8);
	document.getElementById('TXT2').style.height=eval(winH()*0.8);
	document.getElementById('TXT2').style.left=eval(winW()*0.1);
	document.getElementById('TXT2').style.top=eval(winH()*0.1);
	document.getElementById('TXT3').style.width=eval(winW()*0.8);
	document.getElementById('TXT3').style.height=eval(winH()*0.8);
	document.getElementById('TXT3').style.left=eval(winW()*0.1);
	document.getElementById('TXT3').style.top=eval(winH()*0.1);
	document.getElementById('TXT4').style.width=eval(winW()*0.9);
	document.getElementById('TXT4').style.height=eval(winH()*0.8);
	document.getElementById('TXT4').style.left=eval(winW()*0.05);
	document.getElementById('TXT4').style.top=eval(winH()*0.1);
	document.getElementById('TAB1').style.height=eval(winH()*0.8);
	document.getElementById('TAB1').style.width=eval(winW()*0.8);
	document.getElementById('TAB2').style.height=eval(winH()*0.8);
	document.getElementById('TAB2').style.width=eval(winW()*0.8);
	document.getElementById('TAB3').style.height=eval(winH()*0.8);
	document.getElementById('TAB3').style.width=eval(winW()*0.8);
	document.getElementById('TAB4').style.height=eval(winH()*0.8);
	document.getElementById('TAB4').style.width=eval(winW()*0.8);
}
function show(co) {
	document.getElementById(co).style.visibility="visible";
}
function unshow() {
	document.getElementById('TXT1').style.visibility="hidden";
	document.getElementById('TXT2').style.visibility="hidden";
	document.getElementById('TXT3').style.visibility="hidden";
	document.getElementById('TXT4').style.visibility="hidden";
	document.getElementById('divContainer').style.visibility="hidden";
	document.getElementById('divContent').style.visibility="hidden";
//	myresize();
}
function obr_OFF(obj,obr) {
	obj.src='./img/2_'+obr+'.jpg';
 	document.getElementById('nad').childNodes[0].nodeValue="";
}
function obr_ON(obj,obr,mytext) {
	obj.src='./img/1_'+obr+'.jpg';
	document.getElementById('nad').childNodes[0].nodeValue=mytext;
}
function obr_CLICK(obr) {
	unshow();
	if (obr==1) {
		show("TXT1");
	}	
	if (obr==2) {
		show("TXT2");
	}
	if (obr==3) {
		show("TXT3");
	}	
	if (obr==4) {
		show("TXT4");
		show("divContainer");
		show("divContent");
	}	
}
function grafika() {
	//centrovani podle grafiky
	document.getElementById('o1').src="./img/2_01.jpg";
	document.getElementById('o2').src="./img/2_02.jpg";
	document.getElementById('o3').src="./img/2_03.jpg";
	document.getElementById('o4').src="./img/2_04.jpg";
}
-->

