/* PRE-SYSTEM! Do not edit manually */

var overhead=0;var overmenu=0;var oversub=0;var showmenu=0;var menu_ok=0;var menus;var cache1=new Image();cache1.src='/pics/x.gif';var t_delay=100;var URL=self.document.location.href;var winx=self.innerWidth;var winy=self.innerHeight;var popupblock='We failed to open a new window in your Browser.\n'
+'There are some possible reasons. Most probably you have installed\n'
+'a popup blocker which prevented us to open the new window.\n'
+'Please configure your popup blocker to allow opening new windows in this application.\n'
+'\n'
+'yours BIF team';var options='toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes,directories=no,hotkeys=no,status=no';function _hideMainMenu(nr){document.getElementById('menu'+nr+'-text-1').style.display='block';document.getElementById('menu'+nr+'-text-2').style.display='none';}
function _hideMenu(nr){if(overmenu||oversub){return;}
for(var i=1;i<=menus;i++){hideDiv('menu'+i);_hideMainMenu(i);}
redrawDivs();}
function overMenu(){if(!menu_ok||oversub){return;}
overhead=0;overmenu=1;var div=getDiv('menu'+showmenu);showDiv(div);}
function outMenu(){if(overhead||oversub){return;}
overmenu=0;setTimeout("_hideMenu",t_delay);}
function initMenu(nr){if(navigator.userAgent.indexOf('Mac')<0&&navigator.appName=='Netscape'&&parseInt(navigator.appVersion,10)<=4&&(winx!=self.innerWidth||winy!=self.innerHeight)){winx=self.innerWidth;winy=self.innerHeight;var l=document.location;l.href=URL;}
else{menu_ok=0;var width=getWindowWidth()-4;for(var i=1;i<=menus;i++){var img=getImage('menu'+i+'-position');var div=getDiv('menu'+i);if(img&&div){var x=getImageLeft(img);var y=getImageTop(img);moveDiv(div,x,y+1);div.onmouseover=overMenu;div.onmouseout=outMenu;}}
menu_ok=1;}}
function setPrintLayer(url){setDivHTML('print','<a class=submenu_content href="/'+url+'" target=_blank>Print</a>');}
function init(){_div_init();initMenu();menu_ok=1;}
function header(m){menus=m;}
function hideMenu(nr){overmenu=0;setTimeout("_hideMenu",t_delay);}
function showMenu(nr){if(!menu_ok){return;}
overmenu=1;overhead=1;showmenu=nr;for(var i=1;i<=menus;i++){if(i!=nr){hideDiv('menu'+i);_hideMainMenu(i);}}
var div=getDiv('menu'+nr);document.getElementById('menu'+nr+'-text-1').style.display='none';document.getElementById('menu'+nr+'-text-2').style.display='block';showDiv(div);redrawDivs();}
function onSubDiv(){oversub=1;}
function offSubDiv(){oversub=0;}
function onSub(m,s){}
function highlight(id){var page=id.substring(0,id.indexOf('.'));var subpage=id.substring(id.indexOf('.')+1,id.length);var highlight_element;if(subpage===0){highlight_element=document.getElementById('page_'+page+'.0');if(highlight_element){highlight_element.style.color='#CC6600';}}
if(subpage!==0){highlight_element=document.getElementById('subpage_'+page+'.'+subpage);if(highlight_element){highlight_element.style.color='#CC6600';}}}
function teaserPopup(site,cid,tid,width,height){width+=20;openWindow("teaser_popup",width,height,options,'/cgi-bin/teaser_popup.pl/'+site+'?cid='+cid+'&tid='+tid,popupblock);}