setInterval("window.status=''",2)
var dom = (document.getElementById) ? true : false;
var ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;
var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
var ns4 = (document.layers && !dom) ? true : false;
var ie4 = (document.all && !dom) ? true : false;
var nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false;

var origWidth, origHeight; // resize fix for ns4
if (ns4) {origWidth = window.innerWidth; origHeight = window.innerHeight; window.onresize = function() {if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }}
if (nodyn) { event = "nope" } // avoid error of passing event object in older browsers
////////////////////////////////////////////////////////////
function vism(id){if (dom){objekt=document.getElementById("mm"+id);objekt.style.visibility="visible";};if (ie4) document.all["mm"+id].style.visibility="visible";if (ns4) document.layers["mm"+id].visibility="show"}
function lukm(id){if (dom){objekt=document.getElementById("mm"+id);objekt.style.visibility="hidden";};if (ie4) document.all["mm"+id].style.visibility="hidden";if (ns4) document.layers["mm"+id].visibility="hide";}
function besk(ske){A=document.getElementById("bb1");B=document.getElementById("bb2");if (ske==1){A.style.display="block";B.style.display="none";} else {A.style.display="none";B.style.display="block";}}
function showmore(){document.getElementById("sc1").style.display='none'; document.getElementById("sc2").style.display='block';}
function seek(ske){A=document.getElementById("seek1");B=document.getElementById("seek2");if (ske==1){A.style.display="block";B.style.display="none";} else {A.style.display="none";B.style.display="block";}}

////////////////////////////////////////////////////////////
var popfotobox, popfotocss;
function initpopfoto() {if (nodyn) return;
popfotobox = (ns4)? document.popfoto.document: (ie4)? document.all['popfoto']: (ie5||ns5)? document.getElementById('popfoto'): null;
popfotocss = (ns4)? document.popfoto: popfotobox.style;
if (popfotobox) {if (ns4) document.captureEvents(Event.MOUSEMOVE);document.onmousemove = trackMouse;}
if (top.location != location) {top.location.href=document.location.href;}}
window.onload = initpopfoto;
////////////////////////////////////////////////////////////
var t1, t2; 
var popfotoOn = false;
function popfotoshow(xpat) {
if (!popfotobox) return;if (t1) clearTimeout(t1); if (t2) clearTimeout(t2);popfotoOn = true;
var pophtml = '<img src="'+xpat+'" border="1">';
if (ns4) {popfotobox.write(pophtml); popfotobox.close();} else if (ie4||ie5||ns5) {popfotobox.innerHTML = pophtml;}
t1=setTimeout("popfotocss.visibility='visible'",100);}
/////////////////////////////////////////////////////////////
var mouseX, mouseY;
function trackMouse(evt) {
standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes
mouseX = (ns4||ns5)? evt.pageX: window.event.clientX + standardbody.scrollLeft;
mouseY = (ns4||ns5)? evt.pageY: window.event.clientY + standardbody.scrollTop;
if (popfotoOn) popfotoposition(evt);}
/////////////////////////////////////////////////////////////
function popfotoposition(evt) {
var tpWd = (ns4)? popfotobox.width: (ie4||ie5)? popfotobox.clientWidth: popfotobox.offsetWidth;
var tpHt = (ns4)? popfotobox.height: (ie4||ie5)? popfotobox.clientHeight: popfotobox.offsetHeight;
var winWd = (ns4||ns5)? window.innerWidth-20+window.pageXOffset: standardbody.clientWidth+standardbody.scrollLeft;
var winHt = (ns4||ns5)? window.innerHeight-20+window.pageYOffset: standardbody.clientHeight+standardbody.scrollTop;
if ((mouseX+20+tpWd)>winWd) popfotocss.left = (ns4)? mouseX-(tpWd+20): mouseX-(tpWd+20)+"px"; else popfotocss.left = (ns4)? mouseX+20: mouseX+20+"px";
if ((mouseY+5+tpHt)>winHt) popfotocss.top = (ns4)? winHt-(tpHt+5): winHt-(tpHt+5)+"px"; else popfotocss.top = (ns4)? mouseY+5: mouseY+5+"px";}
/////////////////////////////////////////////////////////////
function popfotohide() {if (!popfotobox) return; t2=setTimeout("popfotocss.visibility='hidden'",100); popfotoOn = false;}
////////////////////////////////////////////////////////////
