
var act="";
var thisone;
var modeM
function sme(t, m){
    thisone=t;
    mode=m;
    if(mode=="none"){
	//alert(mode);
	window.setTimeout("show_menu()", 1000) ;
    } else {
	show_menu();
    }
    //if(document.getElementById(act))	document.getElementById(act).style.display="none";
    //if(document.getElementById(thisone)){
	//document.getElementById(thisone).style.display=mode;
	//act=thisone;
    //}
}


function show_menu(){
    if(document.getElementById(act))	document.getElementById(act).style.display="none";
    if(document.getElementById(thisone)){
	document.getElementById(thisone).style.display=mode;
	act=thisone;
    }
}

function Go(url){	
	href=url;
	document.frm_go.action=href;
	document.frm_go.target='';
	document.frm_go.submit();
}

function popup(url,w,h){
	var popup=window.open(url,"popup","status=no,toolbar=no,location=no,menue=no,scrollbars=no,width=" + w + ",height=" + h);
}

function GoParameter(url, parameter)
{	href=url;
 	document.frm_go.action=href;
	document.frm_go.target='';
	document.frm_go.pageparameter.value=parameter;
	document.frm_go.submit();		
}

function set(o){
	document.search.offset.value=o;
	document.search.submit();
}

function news_index(){
	document.search.q.value="";
	document.search.submit();
}

function warn(msg){
	window.alert(msg);
}
function over(n,p,q){
	document.getElementById('d' + n).className = p;
	document.getElementById('l' + n).className = q;
}

