 function main_menu_onmouseover(id) {
 document.all['td_menu'+id].style.backgroundColor='#ACC0CA'; 
 document.all['td_menu'+id].style.cursor='hand'; 
 document.all['menu'+id].style.background='img/bg_menu.gif'; 
 document.all['a'+id].style.background='img/bg_menu.gif';
 };
 
 function main_menu_onmouseout(id) {
 document.all['td_menu'+id].style.background='img/bg_menu.gif'; 
 document.all['td_menu'+id].style.cursor='auto'; 
 document.all['menu'+id].style.background='img/bg_menu.gif'; 
 document.all['a'+id].style.background='img/bg_menu.gif';
 };
 

 function menu(l_elem,stBeg,stBegIm, img, l_img) { 
 l_elem_id=l_elem.substr(stBeg.length,l_elem.length)
 n=document.links.length;
 for (i=0;i<n;i++) {
 if (document.links[i].name) {
 if (document.links[i].name.substr(0,stBeg.length)==stBeg)
 if (document.links[i].name.substr(stBeg.length,document.links[i].name.length)==l_elem_id) {
 document.images[stBegIm+document.links[i].name.substr(stBeg.length,document.links[i].name.length)].src=l_img
 } else {
 document.images[stBegIm+document.links[i].name.substr(stBeg.length,document.links[i].name.length)].src=img 
 }
 }
 } 
 }


function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",1)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=60
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=8
else if (window.highlighting)
clearInterval(highlighting)
}


function textWindow(url, width, height) {
	var left = Math.round((screen.width/2)-(width/2));
	var top = Math.round((screen.height/2)-(height/2));
	FormWin = window.open(url, "Form", "width="+width+", height="+height+", menubar=no, resizable=no, scrollbars=no, status=no, border=no, toolbar=no, left="+left+", top="+top);
	FormWin.focus();
}
