var LinkDivActive = 0;
var onDiv;
var timeOnDiv;
var layerRef;
var styleRef;
var showVar;
var hideVar;
var onTd, TdClass;

if (navigator.appName == "Netscape") {
 layerRef="document.";
 styleRef="";
 showVar="'show'";
 hideVar="'hide'";
} else {
 layerRef="document.all.";
 styleRef=".style";
 showVar="'visible'";
 hideVar="'hidden'";
}

function hideDiv(divn) {
 if (onDiv!=""){
	 eval(layerRef+divn+styleRef+'.visibility = '+hideVar);
	 document.all(onTd).className=TdClass;
	 onDiv="";
 }
}

function showDiv(divn) {
 eval(layerRef+divn+styleRef+'.visibility = '+showVar);
}

function showLinkDiv(divn,td_name, td_class) {
 if (timeOnDiv != null) {
  clearTimeout(timeOnDiv);
  hideDiv(onDiv);
 }
 onTd = td_name;
 if ((td_class != "LeftMenuTd_Hover")&&(td_class != "LeftMenuTd_Hover_on")) {TdClass = td_class;};

 if ((td_class == "LeftMenuTd_on")||(td_class == "LeftMenuTd_Hover_on")){document.all(td_name).className="LeftMenuTd_Hover_on";}
 else {document.all(td_name).className="LeftMenuTd_Hover";};
 
 showDiv(divn);
 onDiv = divn;
}

function divTimer() {
 timeOnDiv = setTimeout("divOut()",500)
}

function divOut() {
 if (LinkDivActive == 0) {
  hideDiv(onDiv);
 } 
}

function LinkDivOver() {
 LinkDivActive = 1;
 clearTimeout(timeOnDiv);
}

function LinkDivOut() {
 LinkDivActive = 0;
 timeOnDiv = setTimeout("divOut()",500)
}

 function changeImg(source)
 {  document.pict.src = source + '.jpg';
 };

 function changeImg1(source)
 {  document.pictA.src = source + '.jpg';
 };

function changeImg2(source)
 {  document.pictB.src = source + '.jpg';
 };

 
function screenCord()
{
var screenX=0;
var screenY=0;
if (self.screen)
{ 
  screenX = screen.width;
  screenY = screen.height;
}
else if (self.java)
{
  var jkit = java.awt.Toolkit.getDefaultToolkit();
  var scrsize = jkit.getScreenSize();
  screenX = scrsize.width;
  screenY = scrsize.height;  
}
  screenX=(screenX-950)/2+167;
  return (screenX);
}

function showpic(str_link,str_target) {
int_width=750;
int_left=(screen.width-15-int_width)/2;
if (int_width>screen.width-15){
	int_width=screen.width-15;
	int_left=0;
}
int_height=650;
int_top=(screen.height-60-int_height)/2;
if (int_height>screen.height-60){
	int_height=screen.height-60;
	int_top=0;
}
window.open(str_link,str_target,"resizable=yes,scrollbars=yes,toolbar=no,width="+int_width+",height="+int_height+",left="+int_left+", top="+int_top);
event.returnValue = false;
}

