/*******************************************************************************DHTML knihovna==============Version:	1.1 (9.6.2004)*******************************************************************************/var jsDOM0 = (document.all);var jsDOM1 = (document.getElementById);var jsDOM = jsDOM0 || jsDOM1;var jsDebug = 0;function getObj (name) {    if (typeof name == "object") return name;    if (jsDOM1) return document.getElementById(name);    if (jsDOM0) return eval('document.all.'+name);    else return null;    }function objSetStyle (obj, prop, val) {    var o = objGet(obj);    if (o && o.style) {        eval ('o.style.'+prop+'="'+val+'"');        return true;    }    else return false;}function objShow (obj, on) {    return objSetStyle(obj, 'visibility', (on) ? 'visible':'hidden');}function objDisplay (obj, on, type) {    if (on && !type) type = 'block';    return objSetStyle(obj, 'display', (on) ? type: 'none');}function photo(p,x,y) {photopop = window.open('index.php?Mode=3&photo='+p,'photopop','resizable=0,status=0,menubar=0,toolbar=0,scrollbars=0,location=0,directories=0,width='+x+',height='+y);photopop.focus();}function newwin(p,x,y) {newwinpop = window.open('index.php?Mode=4&popup='+p,'newwinpop','resizable=0,status=0,menubar=0,toolbar=0,scrollbars=0,location=0,directories=0,width='+x+',height='+y);newwinpop.focus();} // ********************** Menu *************************************slideMenu.Registry = [];function slideMenu(id,numLines) {slideMenu.Registry[id] = [];slideMenu.Registry[id]['height']       = 1;slideMenu.Registry[id]['containerObj'] = document.getElementById(id+"Container");slideMenu.Registry[id]['contentObj']   = document.getElementById(id+"Content");slideMenu.Registry[id]['maxHeight']    = new Number((numLines * slideMenu.lineHeight) + 4);//slideMenu.Registry[id]['maxHeight']    = (slideMenu.Registry[id]['containerObj'].scrollHeight * numLines)+1;slideMenu.Registry[id]['interval']     = null;slideMenu.Registry[id]['timeout']      = null;slideMenu.Registry[id]['contentObj'].style.height  = '1px';// slide down eventsslideMenu.Registry[id]['containerObj'].onmouseover = function() { slideMenu.showMenu(id); }slideMenu.Registry[id]['containerObj'].onfocus     = function() { slideMenu.showMenu(id); }// slide up eventsslideMenu.Registry[id]['containerObj'].onmouseout  = function() { slideMenu.hideMenu(id); }slideMenu.Registry[id]['containerObj'].onblur      = function() { slideMenu.hideMenu(id); }}slideMenu.showMenu = function(id) {clearInterval(slideMenu.Registry[id]['interval']);slideMenu.Registry[id]['contentObj'].style.display = 'block';slideMenu.Registry[id]['contentObj'].style.zIndex += 10;slideMenu.Registry[id]['interval'] = window.setInterval("slideMenu.slideDown('"+id+"')",1);}slideMenu.hideMenu = function(id) {clearInterval(slideMenu.Registry[id]['interval']);slideMenu.Registry[id]['contentObj'].style.zIndex = 10;slideMenu.Registry[id]['interval'] = window.setInterval("slideMenu.slideUp('"+id+"')",1);}slideMenu.slideDown = function(id) {for(var i=0;i<15;i++) {if(slideMenu.Registry[id]['height'] >= slideMenu.Registry[id]['maxHeight']) {clearInterval(slideMenu.Registry[id]['interval']);} else {slideMenu.Registry[id]['contentObj'].style.height = slideMenu.Registry[id]['height']+'px';slideMenu.Registry[id]['height'] ++;}}}slideMenu.slideUp = function(id) {for(var i=0;i<15;i++) {if(slideMenu.Registry[id]['height'] <= 1) {clearInterval(slideMenu.Registry[id]['interval']);slideMenu.Registry[id]['contentObj'].style.display = 'none';} else {slideMenu.Registry[id]['contentObj'].style.height = slideMenu.Registry[id]['height']+'px';slideMenu.Registry[id]['height'] --;}}}// ***********************************************************************function gE(e,f){if(l){f=(f)?f:self;var V=f.document.layers;if(V[e])return V[e];for(var W=0;W<V.length;)t=gE(e,V[W++]);return t;}if(d.all)return d.all[e];return d.getElementById(e);}function sE(e){	if(l)e.visibility='show';else e.style.visibility='visible';}function hE(e){	if(l)e.visibility='hide';else e.style.visibility='hidden';}function init(){if (top != self) {top.location = self.location;}	for(var i=1;i<=10;i++)		{eval("l"+i+"=gE('p"+i+"')")};initOK=true;}function addEvent(obj, evType, fn){  if (obj.addEventListener){    obj.addEventListener(evType, fn, true);    return true;  } else if (obj.attachEvent){	var r = obj.attachEvent("on"+evType, fn);    return r;  } else {	return false;  }}d=document;l=(d.layers)?1:0;op=navigator.userAgent.toLowerCase().indexOf('opera')!=-1;ie=(d.all)?1:0;function gE(e,f){if(l){f=(f)?f:self;var V=f.document.layers;if(V[e])return V[e];for(var W=0;W<V.length;)t=gE(e,V[W++]);return t;}if(d.all)return d.all[e];return d.getElementById(e);}function sX(e,x){if(l)e.left=x;else if(op)e.style.pixelLeft=x;else e.style.left=x+'px';}function gX(e){if(l)return e.left;else if(op)return e.style.pixelLeft;else return parseInt(e.style.left);}var timer,detonator,thumbs,galleryWidth;function initSlide()	{	thumbs = gE("scroll");	galleryWidth=frameCount*thW	thumbs.style.width=galleryWidth;	moveThumbs = setInterval('slide()',25);	}function slide()	{	var aP = gX(thumbs);	var nP = 0-(tP*thW);	if (Math.abs(nP)>(galleryWidth-windowWidth)) nP=windowWidth-galleryWidth;	if (aP != nP)		{		if (nP<aP) {sX(thumbs,aP+Math.floor((nP-aP)/20));} // move right		else {sX(thumbs,aP+Math.ceil((nP-aP)/20));} // move left		}	}function slideRight() {if(tP<(frameCount-Math.floor(windowWidth/thW))) tP++;}function goRight() {detonator=setTimeout("timer=setInterval('slideRight()',100)",100);}function slideLeft() {if(tP>0) tP--;}function goLeft() {detonator=setTimeout("timer=setInterval('slideLeft()',100)",100);}function stop()	{clearTimeout(detonator);clearInterval(timer);}function NewWindow(mypage, myname, w, h, scroll) {var winl = (screen.width - w) / 2;var wint = (screen.height - h) / 2;winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'win = window.open(mypage, myname, winprops)if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }}var arImages=new Array();function Preload() { var temp = Preload.arguments;  for(x=0; x < temp.length; x++) {  arImages[x]=new Image();  arImages[x].src=Preload.arguments[x]; }}
