// B.H.


function SetDocLocation(url) {
   document.location=url;
}

function Go_Link(lnk) {
   loc=new String(lnk);
    if (loc.substring(0,1)=='!') {
       document.location=loc.substring(1,loc.length);
    } else {
       document.location=my_self_location+loc;
    }
}

function newwin(url) {
   window.open(url,'','menubar=no, location=no,status=no, resizable=yes, toolbar=no, scroolbar=yes, width=700px, height=700px');
};
function newvideowin(url) {
   window.open(url,'','menubar=no, location=no,status=no, resizable=yes, toolbar=no, scroolbar=yes, width=550px, height=400px');
};

// Menu Bar related functions


// points to a pulldown that is currently shown

var current_pdelm = null;
var current_pdline = null;

function PDHideCurrent() {
   if (current_pdelm) {
      current_pdelm.style.display="none";
      current_pdelm = null;
   }
}

function PDShow(par_id) {
   PDHideCurrent(); // Hide the previousely shown PullDown if any
   pd=document.getElementById(par_id+'_pd');
   mb=document.getElementById(par_id+'_mb');
   mbar=document.getElementById('mnbar');
   pd.style.display="block";
	 
   // pd.style.top=142;
   pd.style.marginLeft=(mb.offsetLeft+10)+"px";
	 
   // pd.style.pixelLeft=mb.offsetLeft+10;
	 
   current_pdelm=pd;
}

function MenuTopMouseEnter(elm) {
   elm.className="menubar_top_hover";
   strid = new String (elm.id);
   PDShow(strid.substring(0,strid.length-3));
}

function MenuTopMouseLeave(elm) {
   elm.className="menubar_top";
   PDHideCurrent();
}

function PDMouseEnter(elm) {
   strid = new String (elm.id);
   PDShow(strid.substring(0,strid.length-3));
}

function PDMouseLeave(elm) {
   PDHideCurrent();
}

function MenuPDMouseEnter(elm) {
   if (current_pdline) {
       current_pdline.className="menubar_pdline";
   }
   elm.className="menubar_pdline_hover";
   current_pdline=elm;
   //window.status="";
}

function MenuPDMouseLeave(elm) {
   elm.className="menubar_pdline";
   current_pdline=null;
   PDHideCurrent();
}


