<!--

/**
 * sprintf() for JavaScript v.0.4
 *
 * Copyright (c) 2007 Alexandru Marasteanu <http://alexei.417.ro/>
 * Thanks to David Baird (unit test and patch).
 *
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation; either version 2 of the License, or (at your option) any later
 * version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
 * Place, Suite 330, Boston, MA 02111-1307 USA
 */

function str_repeat(i, m) { for (var o = []; m > 0; o[--m] = i); return(o.join('')); }

function sprintf () {
  var i = 0, a, f = arguments[i++], o = [], m, p, c, x;
  while (f) {
    if (m = /^[^\x25]+/.exec(f)) o.push(m[0]);
    else if (m = /^\x25{2}/.exec(f)) o.push('%');
    else if (m = /^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(f)) {
      if (((a = arguments[m[1] || i++]) == null) || (a == undefined)) throw("Too few arguments.");
      if (/[^s]/.test(m[7]) && (typeof(a) != 'number'))
        throw("Expecting number but found " + typeof(a));
      switch (m[7]) {
        case 'b': a = a.toString(2); break;
        case 'c': a = String.fromCharCode(a); break;
        case 'd': a = parseInt(a); break;
        case 'e': a = m[6] ? a.toExponential(m[6]) : a.toExponential(); break;
        case 'f': a = m[6] ? parseFloat(a).toFixed(m[6]) : parseFloat(a); break;
        case 'o': a = a.toString(8); break;
        case 's': a = ((a = String(a)) && m[6] ? a.substring(0, m[6]) : a); break;
        case 'u': a = Math.abs(a); break;
        case 'x': a = a.toString(16); break;
        case 'X': a = a.toString(16).toUpperCase(); break;
      }
      a = (/[def]/.test(m[7]) && m[2] && a > 0 ? '+' + a : a);
      c = m[3] ? m[3] == '0' ? '0' : m[3].charAt(1) : ' ';
      x = m[5] - String(a).length;
      p = m[5] ? str_repeat(c, x) : '';
      o.push(m[4] ? a + p : p + a);
    }
    else throw ("Huh ?!");
    f = f.substring(m[0].length);
  }
  return o.join('');
}


function mmLoadMenus() {
  // Prepare current date string to allow event display from current date on
  var currentDate = new Date();
  var todayDateString = sprintf("%1$02d.%2$02d.%3$04d", currentDate.getDate(), currentDate.getMonth() + 1, currentDate.getFullYear() );  
  if (window.mm_menu_1102084830_0) return;
                              window.mm_menu_1102084830_0 = new Menu("root",180,19,"Verdana, Arial, Helvetica, sans-serif",13,"#000000","#000000","#C4E4FD","#FFFFFF","left","middle",3,0,1000,-5,7,true,true,true,0,false,true);
  mm_menu_1102084830_0.addMenuItem("Home","location='/index.html'");

    mm_menu_1102084830_0.addMenuItem("Research&nbsp;Groups","location='/a-z.html'");
  mm_menu_1102084830_0.addMenuItem("Directorate","location='/directorate.html'");
  mm_menu_1102084830_0.addMenuItem("Commissions","location='/commissions.html'");

  mm_menu_1102084830_0.addMenuItem("Administration","location='/administration.html'");
  mm_menu_1102084830_0.addMenuItem("PhD&nbsp;Students&nbsp;Website","window.open('http://phdstudents.biozentrum.unibas.ch/', '_blank');");
  mm_menu_1102084830_0.addMenuItem("Awards&nbsp;&&nbsp;Honors","location='/awards_honors/index.html'");
  mm_menu_1102084830_0.addMenuItem("Advisory&nbsp;Board","location='/advisory.html'");
  mm_menu_1102084830_0.addMenuItem("Open&nbsp;positions","location='/open_positions.html'");
  mm_menu_1102084830_0.addMenuItem("Biennial&nbsp;Report","location='/report0607/'");
  mm_menu_1102084830_0.addMenuItem("Biozentrum&nbsp;at&nbsp;a&nbsp;glance","location='/ataglance.html'");
  mm_menu_1102084830_0.addMenuItem("Info&nbsp;Brochures","location='/infobrochures.html'");
  mm_menu_1102084830_0.addMenuItem("Safety&nbsp;Bulletins","location='/merkblaetter/index.html'");
  mm_menu_1102084830_0.addMenuItem("Travel&nbsp;information","location='/travelinfo/travelinfo.html'");
  mm_menu_1102084830_0.addMenuItem("Webcam","location='/webcam.html'");
   mm_menu_1102084830_0.hideOnMouseOut=true;
   mm_menu_1102084830_0.bgColor='#FFFFFF';
   mm_menu_1102084830_0.menuBorder=1;
   mm_menu_1102084830_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1102084830_0.menuBorderBgColor='#FFFFFF';
window.mm_menu_1102091518_0 = new Menu("root",240,19,"Verdana, Arial, Helvetica, sans-serif",13,"#000000","#000000","#C4E4FD","#FFD964","left","middle",3,0,1000,-5,7,true,true,true,0,false,true);
  mm_menu_1102091518_0.addMenuItem("Overview","location='/research.html'");
mm_menu_1102091518_0.addMenuItem("Growth&nbsp;&&nbsp;Development","location='/cell.html'");
  mm_menu_1102091518_0.addMenuItem("Infection&nbsp;Biology","location='/infection.html'");
  mm_menu_1102091518_0.addMenuItem("Neurobiology","location='/neurobiology.html'");
  mm_menu_1102091518_0.addMenuItem("Computational&nbsp;&&nbsp;Systems&nbsp;Biology","location='/cs_biology.html'");
  mm_menu_1102091518_0.addMenuItem("Structural&nbsp;Biology&nbsp;&&nbsp;Biophysics","location='/structural_biophysics.html'");
  mm_menu_1102091518_0.addMenuItem("");
  mm_menu_1102091518_0.addMenuItem("Divisions","location='/divisions.html'");
  mm_menu_1102091518_0.addMenuItem("Group&nbsp;leaders&nbsp;from&nbsp;A&nbsp;to&nbsp;Z","location='/a-z.html'");
  mm_menu_1102091518_0.addMenuItem("Emeritus&nbsp;Professors","location='/emeritus.html'");
  mm_menu_1102091518_0.addMenuItem("Former&nbsp;Group&nbsp;leaders","location='/formergroup.html'");
  mm_menu_1102091518_0.addMenuItem("Affiliated&nbsp;Projects","location='/affiliated_projects.html'"); 

   mm_menu_1102091518_0.hideOnMouseOut=true;
   mm_menu_1102091518_0.bgColor='#FFFFFF';
   mm_menu_1102091518_0.menuBorder=1;
   mm_menu_1102091518_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1102091518_0.menuBorderBgColor='#FFFFFF';
   
      window.mm_menu_1102105623_0 = new Menu("root",225,19,"Verdana, Arial, Helvetica, sans-serif",13,"#000000","#000000","#C4E4FD","#94E9A7","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1102105623_0.addMenuItem("Overview","location='/education/edu_overview.html'");
  mm_menu_1102105623_0.addMenuItem("Bachelor","location='/education/bachelor.html'");
  mm_menu_1102105623_0.addMenuItem("Master","location='/education/master.html'");
  mm_menu_1102105623_0.addMenuItem("Graduate&nbsp;teaching&nbsp;program","location='/aufbau.html'");
  mm_menu_1102105623_0.addMenuItem("International&nbsp;PhD&nbsp;Program","location='/phd/index.html'");
mm_menu_1102105623_0.addMenuItem("Swiss&nbsp;Biomedical&nbsp;Foundation&nbsp;>>","window.open('http://www.swissbiomedical-foundation.ch', '_blank');");
  mm_menu_1102105623_0.addMenuItem("Lecture&nbsp;download&nbsp;FS&nbsp;2010","location='/lectures.html'");
  mm_menu_1102105623_0.addMenuItem("Course&nbsp;Directory&nbsp;>>","window.open('http://www.unibas.ch/Vorlesungsverzeichnis', '_blank');");
  mm_menu_1102105623_0.addMenuItem("Studying&nbsp;in&nbsp;Basel&nbsp;>>","window.open('http://www.unibas.ch/index.cfm?5EF93E79AE1B1676569B0E13D930E55A', '_blank');");
  mm_menu_1102105623_0.addMenuItem("Services&nbsp;University&nbsp;of&nbsp;Basel&nbsp;>>","window.open('http://www.unibas.ch/index.cfm?5F05E742E68A9D688CE15091086D6A6C', '_blank');");
  mm_menu_1102105623_0.addMenuItem("University&nbsp;advisory&nbsp;service&nbsp;>>","window.open('http://www.studienberatung-basel.ch', '_blank');");
   mm_menu_1102105623_0.hideOnMouseOut=true;
   mm_menu_1102105623_0.bgColor='#FFFFFF';
   mm_menu_1102105623_0.menuBorder=1;
   mm_menu_1102105623_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1102105623_0.menuBorderBgColor='#FFFFFF';
window.mm_menu_1102110106_0 = new Menu("root",225,19,"Verdana, Arial, Helvetica, sans-serif",13,"#000000","#000000","#C4E4FD","#93EAEA","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1102110106_0.addMenuItem("Mass&nbsp;Spectrometry","location='/mass_spectrometry.html'");
  mm_menu_1102110106_0.addMenuItem("Microscopy&nbsp;Center","location='/duerrenberger/index.html'");
  mm_menu_1102110106_0.addMenuItem("Life&nbsp;Science&nbsp;Training&nbsp;Facility","location='/lstf/index.html'");
  mm_menu_1102110106_0.addMenuItem("Research&nbsp;IT","location='/research_it'");
  mm_menu_1102110106_0.addMenuItem("");
  mm_menu_1102110106_0.addMenuItem("Administrative&nbsp;Offices","location='/zsekre.html'");
  mm_menu_1102110106_0.addMenuItem("BioPhIT&nbsp;(IT&nbsp;Support)","location='/biophit/index.html'");
  mm_menu_1102110106_0.addMenuItem("Central&nbsp;Services","location='/central.html'");
  mm_menu_1102110106_0.addMenuItem("Corporate&nbsp;Design","location='/cd.html'");
  mm_menu_1102110106_0.addMenuItem("Floormanager","location='/floormanager.html'");
  mm_menu_1102110106_0.addMenuItem("Library","location='/library/index.html'");
  mm_menu_1102110106_0.addMenuItem("PC&nbsp;Grid","location='/grid/index.html'");
  mm_menu_1102110106_0.addMenuItem("Communication","location='/communication/index.html'")
  mm_menu_1102110106_0.addMenuItem("&nbsp;&middot;&nbsp;Photo&nbsp;&&nbsp;Digital&nbsp;Imaging","location='/photo_di.html'");
  mm_menu_1102110106_0.addMenuItem("&nbsp;&middot;&nbsp;Public&nbsp;Relations","location='/pr.html'");
  mm_menu_1102110106_0.addMenuItem("&nbsp;&middot;&nbsp;Web&nbsp;Office","location='/webdesign.html'");

   mm_menu_1102110106_0.hideOnMouseOut=true;
   mm_menu_1102110106_0.bgColor='#FFFFFF';
   mm_menu_1102110106_0.menuBorder=1;
   mm_menu_1102110106_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1102110106_0.menuBorderBgColor='#FFFFFF';
window.mm_menu_1102112850_0 = new Menu("root",225,19,"Verdana, Arial, Helvetica, sans-serif",13,"#000000","#000000","#C4E4FD","#FFFFCC","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);

mm_menu_1102112850_0.addMenuItem("Events&nbsp;Diary&nbsp;Biozentrum&nbsp;>>","window.open('http://www.unibas.ch/index.cfm?uuid=5EAFD821C9E0F82439A99B2A5B2F3844&Fachgebiete=21&OnlyPublic=1&Datum_von=" + todayDateString + "&Datum_bis=&suchbegriffe=&x=29&y=6&o_lang_id=2', '_blank');");

  
  mm_menu_1102112850_0.addMenuItem("Events&nbsp;Diary&nbsp;Uni&nbsp;Basel&nbsp;>>","window.open('http://www.unibas.ch/index.cfm?uuid=5EAFD821C9E0F82439A99B2A5B2F3844', '_blank');");
  mm_menu_1102112850_0.addMenuItem("Submit&nbsp;New&nbsp;Event&nbsp;(internal)","location='/research_it/seminar_form/index.html'");
  mm_menu_1102112850_0.hideOnMouseOut=true;
   mm_menu_1102112850_0.bgColor='#FFFFFF';
   mm_menu_1102112850_0.menuBorder=1;
   mm_menu_1102112850_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1102112850_0.menuBorderBgColor='#FFFFFF';

    window.mm_menu_1102113354_0 = new Menu("root",135,19,"Verdana, Arial, Helvetica, sans-serif",13,"#000000","#000000","#C4E4FD","#FFC8C8","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1102113354_0.addMenuItem("Biozentrum&nbsp;News","location='/bionews/index.html'");
  mm_menu_1102113354_0.addMenuItem("Weather","location='/weather.html'");
  mm_menu_1102113354_0.addMenuItem("Links","location='/links.html'");

   mm_menu_1102113354_0.hideOnMouseOut=true;
   mm_menu_1102113354_0.bgColor='#FFFFFF';
   mm_menu_1102113354_0.menuBorder=1;
   mm_menu_1102113354_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1102113354_0.menuBorderBgColor='#FFFFFF';



  window.mm_menu_1030173622_0 = new Menu("root",150,19,"Verdana, Arial, Helvetica, sans-serif",13,"#000000","#000000","#C4E4FD","#e7e7e7","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);


mm_menu_1030173622_0.addMenuItem("Homepage&nbsp;Intranet","location='/intranet/index.html'");  
  mm_menu_1030173622_0.addMenuItem("BZ&nbsp;Calendar","location='/intranet/bz-calendar/index.html'");
mm_menu_1030173622_0.addMenuItem("Phonebook","window.open('http://www.eiwap.unibas.ch/index.php?phonebook[a]=main&phonebook[v][UnitName]=Biozentrum&phonebook[v][UnitId]=1', '_blank');");
  mm_menu_1030173622_0.addMenuItem("EiWAP&nbsp;II","window.open('http://www.eiwap.unibas.ch', '_blank');");
  mm_menu_1030173622_0.addMenuItem("RoomMATE","window.open('http://cfroommate.urz.unibas.ch/index.cfm?fuseaction=roommate&CFID=948&CFTOKEN=57787385', '_blank');");
  mm_menu_1030173622_0.addMenuItem("Internal&nbsp;Events","window.open('http://www.biozentrum.unibas.ch/intranet/events.html', '_blank');");
  mm_menu_1030173622_0.addMenuItem("Emergency","window.open('/emergency.html', '_blank');");
  mm_menu_1030173622_0.addMenuItem("Safety","window.open('/intranet/safety.html', '_blank');");
mm_menu_1030173622_0.addMenuItem("Who&nbsp;does&nbsp;what","window.open('/intranet/documents/wermachtwas.pdf', '_blank');");
   mm_menu_1030173622_0.hideOnMouseOut=true;
   mm_menu_1030173622_0.bgColor='#FFFFFF';
   mm_menu_1030173622_0.menuBorder=1;
   mm_menu_1030173622_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1030173622_0.menuBorderBgColor='#FFFFFF';


mm_menu_1102113354_0.writeMenus();
} // mmLoadMenus()
//-->
