var loaded=false;
var ie5=false;
var ns6=false;
var ns4=false;
var openedSub=null;
var mytimer=null;

limiterTop=new Image ();
limiterBot=new Image ();
spacerImg=new Image ();

if (document.getElementById && document.all) {ie5=true};
if (document.getElementById && !document.all) {ns6=true};
if (document.layers) {ns4=true};


function startTimer() {
mytimer=setTimeout("hideSub()",1000);
};

function stopTimer() {
clearTimeout(mytimer);
};

function showSub(subnumber) {
if (!loaded) return;
subid="sub"+subnumber;
hideSub();
openedSub=subid;

if (ie5 || ns6) {
	layerid=document.getElementById(subid);
	layerid.style.visibility="visible";
	}
if (ns4) {
	layerid=eval("document.layers."+subid);
	layerid.visibility="show";
	}
stopTimer();	
}

//netscape4 a linkrol inditva
function NshowSub(nsubnumber) {
if (ns4) {showSub(nsubnumber);}
}

//netscape4 a linrol inditva
function NstartTimer() {
if (ns4) {startTimer();}
};

//netscape4 a linrol inditva
function NstopTimer() {
if (ns4) {stopTimer();}
};

function hideSub() {
if (!loaded) return;
if (openedSub==null) return;
if (ie5 || ns6) {
	document.getElementById(openedSub).style.visibility="hidden";
	}
if (ns4) {
	layerid=eval("document.layers."+openedSub);
	layerid.visibility="hide";
	}
}



function cellOver(cellid) {
if (!loaded) return;
if (ie5 || ns6) {
	cell=document.getElementById("cell"+cellid);
	cell.bgColor='white';
	cell.style.cursor='hand';
	document.getElementById("limiterTop"+cellid).src=limiterTop.src;
	document.getElementById("limiterBot"+cellid).src=limiterBot.src;
	}
}

function cellOut(cellid) {
if (!loaded) return;
if (ie5 || ns6) {
	cell=document.getElementById("cell"+cellid);
	cell.bgColor='';
	cell.style.cursor='default';
	document.getElementById("limiterTop"+cellid).src=spacerImg.src;
	document.getElementById("limiterBot"+cellid).src=spacerImg.src;
	}
}


function subCellOver(subcellname) {
if (!loaded) return;
if (ie5 || ns6) {
	cell=document.getElementById(subcellname);
	cell.bgColor='white';
	cell.style.cursor='hand';
	mylink=document.getElementById(subcellname+"link");
	mylink.style.color='#000080';
	}
stopTimer();
}

function subCellOut(subcellname) {
if (!loaded) return;
if (ie5 || ns6) {
	cell=document.getElementById(subcellname);
	cell.bgColor='#97ABBC';
	cell.style.cursor='default';
	mylink=document.getElementById(subcellname+"link");
	mylink.style.color='white';
	}
startTimer();
}

function goHref(href) {
window.location=href;
};