var opening=null;
var opened=null;
var opening_proc=null;
var closing_proc=null;

function annulla_menu(){
	clearTimeout(opening_proc);
	clearTimeout(closing_proc);

}

function switch_menu(id){
	clearTimeout(opening_proc);
	opening=id;
	closing_proc=setTimeout('close_menu()', 400);

	opening_proc=setTimeout('open_menu()', 800);
}
function open_menu(){
	element=document.getElementById(opening);
	element.className='links_open';
	opened=opening;
	opening=null;
}
function close_menu(){
	if (opened!=null && opened!=opening){
		element=document.getElementById(opened);
		element.className='links_close';
		opened=null;
	}
}

function popup(page, width, height) {
	var tmp;
	if (oPopupWin) {
		tmp = oPopupWin;
		oPopupWin = null;
		if (navigator.appName != "Netscape")
			tmp.close();
	}
	oPopupWin = window.open(page, "IntlPopup", "alwaysRaised=1,dependent=1,height=" + height + ",location=0,menubar=0,personalbar=0,scrollbars=0,status=0,toolbar=0,width=" + width + ",resizable=0");
//	return !oPopupWin;
}
var oPopupWin;

function doPopUpscroll(href,wd,he){
	winstrord = "toolbar=,width=" + wd + ",height="+ he +",directories=no,status=yes,scrollbars=auto,resize=no,menubar=no";
	winstrord = 'resizable=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,toolbar=0,width=' + wd + ',height=' + he
	window.open(href,"_blank",winstrord);
}

function refresh()
{
     window.location.reload( false );
}
function refresh_father()
{
     parent.frame_cont.reload( false );
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



