var requiredMajorVersion = 8;
var requiredMinorVersion = 0;
var requiredRevision = 0;
var jsVersion = 1.0;
var menulast = 'sub';
var isTimer = 0;
var windowWasOpened=0;
if (navigator.appName=="Microsoft Internet Explorer"){pxx='0'}else{pxx='-20'}

document.write('<style>');
document.write('ul{margin-left: '+pxx+'px;margin-top:0px}');
document.write('# sidebar ul{margin-left: '+pxx+'px;margin-top:0px}');
document.write('</style>');

var op = /Opera/i;
var ms = /MSIE/i;
if (navigator.userAgent.search(op) > 0) {
document.write('<style>ul{list-style-image: url(img/bluepoint.gif);margin-top: 3px;margin-left: -15px;margin-bottom: 3px;}</style>');
var Mozilla=0;
}
else if (navigator.userAgent.search(ms) < 0) {
document.write('<style>ul{list-style-image: url(img/bluepoint.gif);margin-top: 3px;margin-left: -15px;margin-bottom: 3px;}</style>');
var Mozilla=1;
}
else {
document.write('<style>ul{list-style-image: url(img/bluepoint.gif);margin-top: 3px;margin-left: 25px;margin-bottom: 3px;}</style>');
var Mozilla=0;
}

if (document.all){
  document.onmousemove=imouse;
}
else{
document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=imouse2;
}
function imouse(){
  if (document.getElementById('dd').clientWidth+event.clientX+15>=document.body.clientWidth){
document.getElementById('dd').style.left=document.body.clientWidth-document.getElementById('dd').clientWidth+document.body.scrollLeft-5;
  }
  else{
   document.getElementById('dd').style.left=event.clientX+document.body.scrollLeft+10;
  }
  if(document.getElementById('dd').clientHeight+event.clientY+15>=document.body.clientHeight){
document.getElementById('dd').style.top=document.body.clientHeight-document.getElementById('dd').clientHeight+document.body.scrollTop-7;
  }
  else{
document.getElementById('dd').style.top=event.clientY+document.body.scrollTop+8;
  }
  }
function imouse2(e){
  if (document.getElementById('dd').offsetWidth+e.pageX-document.body.scrollLeft+10>=document.body.clientWidth){
document.getElementById('dd').style.left=document.body.clientWidth-document.getElementById('dd').offsetWidth+document.body.scrollLeft-5;
  }
  else{
   document.getElementById('dd').style.left=e.pageX+10;
  }
  if(document.getElementById('dd').offsetHeight+e.pageY-document.body.scrollTop+10>=document.body.clientHeight){
document.getElementById('dd').style.top=document.body.clientHeight-document.getElementById('dd').offsetHeight+document.body.scrollTop-5;
  }
  else{
   document.getElementById('dd').style.top=e.pageY+8;
  }
  }
function dodeska(description){
if (description!=""){
  document.getElementById('dd').style.left=-500;
  document.getElementById('dd').innerHTML=description;
  document.getElementById('dd').style.visibility='visible';
if (Mozilla==1){
if (description.length<50){document.getElementById('dd').style.width='150px'}
else {document.getElementById('dd').style.width='300px'}
}
  }
}
function dodepop(){
document.getElementById('dd').style.visibility='hidden';
document.getElementById('dd').style.left=-500;
}

function w_open (wo,pathname){
if (wo=="img"){
pnimg=new Array;
pnimg = pathname.split(":");
if (pnimg[1]==undefined){
imgsrc=pnimg[0];
}
else{
imgsrc='../img/'+pnimg[0]+'/'+pnimg[1];
}

var str = "resizable=no, scrollbars=no, width=300, height=150";
var ope = "cgi/showimage.php?image="+imgsrc;
if (windowWasOpened==1){own.close();}
own = window.open(ope, 'pic', str);
windowWasOpened=1;
}
}

function showMenu(menun){
	if (!menulast){menulast="sub"}
	menun="sub"+menun;
	if (menun != menulast){if(isTimer){clearTimeout(closingTimer)};closeAllMenu()}else if(isTimer){clearTimeout(closingTimer)};
	if(document.getElementById(menun)){
	if(isTimer){clearTimeout(closingTimer)};
	menulast=menun;
	if (menun){document.getElementById(menun).style.visibility='visible';}
	}
}
function SetTimerOut(){
  closingTimer=setTimeout("closeAllMenu()",1000);
  isTimer=1;
}


