function changeMenu (f,_m, _s, g) {
 if ( g==1 ) {
	f.className='topmenuover'
	l=document.getElementById ('ml_'+_m+_s);
	l.className='topmenuover'
 } else {
	f.className='topmenu'
	l=document.getElementById ('ml_'+_m+_s);
	l.className='topmenu'
 }
 i=document.getElementById ('i_'+_m);
 i.src='../images/butoane/'+_m+'.gif';

}


function switchTopMenuImage ( img, t ) {
	t.src = '../images/butoane/'+img;
}


function getBrowser () {
	var browserName = navigator.appName;
	if ( browserName.search ('Internet Explorer') != -1  ) {
		return 'Internet Explorer';
	} else if ( browserName.search ('Netscape') != -1 ) {
        return 'Netscape';
	} else if ( browserName.search ('Opera') != -1 ) {
        return 'Opera';
	} else if ( browserName.search ('Firefox') != -1 ) {
        return 'Firefox';
	} else {
		return 'Other';
	}
}

function setVisibility (n, act) {
	try {
	if ( getBrowser () == 'Internet Explorer' ) {
        var selOp = eval ("document.all.div_"+n+"");
	} else {
        var selOp = eval ("document.getElementById ('div_"+n+"');");
	}
	//var selOp = eval ("document.all.div_"+n+"");
	if ( act == 't' ) {
       	selOp.style.display='';
	} else if ( act == 'f' ) {
		selOp.style.display='none';
	}
	}
	catch (ex) {}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}