<!--

// *** (2) MENU DATA ***

var pMenu = new PopupMenu('pMenu');
with (pMenu)
{


startMenu('root', false, 20, 163, 22, hBar);
 addItem('<img src=http://www.restaurant-kritik.at/images/lo_bewertungen.gif border=0>', 'mBewert', 'sm:', '', 132);
 addItem('<img src=http://www.restaurant-kritik.at/images/lo_restaurants.gif border=0>', 'mRest', 'sm:','',125);
 addItem('<img src=http://www.restaurant-kritik.at/images/lo_gastronews.gif border=0>', 'mNews','sm:','',122);
 addItem('<img src=http://www.restaurant-kritik.at/images/lo_onlinereservierung.gif border=0>', 'mReserv', 'sm:', '', 177);
 addItem('<img src=http://www.restaurant-kritik.at/images/lo_forum.gif border=0>', 'mGut','sm:','',114);
 addItem('<img src=http://www.restaurant-kritik.at/images/lo_service.gif border=0>', 'mSer', 'sm:','',70);

startMenu('mBewert', true, 0, 22, 120, subM);
 addItem('So geht\'s', 'http://www.restaurant-kritik.at/so_gehts.html', '', '', 22);
 addItem('Neu bewertet', 'http://www.restaurant-kritik.at/neuzugange.php', '', '', 22);
 addItem('Lesen', 'http://www.restaurant-kritik.at/Oesterreich/', '', '', 22);
 addItem('Schreiben', 'http://www.restaurant-kritik.at/index.php?page_id=manager_bewerten', '', '', 22);

startMenu('mRest', true, 0, 22, 120, subM);
 addItem('Top 5', 'http://www.restaurant-kritik.at/top_restaurants.php', '', '', 22);
 addItem('Top 100 History', 'http://www.restaurant-kritik.at/top100/', '', '', 22);
 addItem('Verzeichnis', 'http://www.restaurant-kritik.at/Oesterreich/', '', '', 22);
 addItem('Suchen', 'http://www.restaurant-kritik.at/suche.php', '', '', 22);
 addItem('Eintragen', 'http://www.restaurant-kritik.at/restaurant_eintragen_start.php', '', '', 22);

startMenu('mReserv', true, 0, 22, 120, subM);
 addItem('Restaurants', 'http://www.restaurant-kritik.at/book-a-table.php', '', '', 22);

startMenu('mSer', true, -53, 22, 140, subM);

 addItem('Pressebereich', 'http://www.restaurant-kritik.de/presse.html', '', '', 22);
 addItem('Gewinnspiel', 'http://www.restaurant-kritik.de/gewinnspiel.php', '', '', 22);
 addItem('RestaurantBAR', 'http://www.restaurantbar.de', '', '', 22);
 addItem('Partnerprogramm', 'http://partnerprogramm.restaurant-kritik.de', '', '', 22);
 addItem('Jobbörse', 'http://www.restaurant-kritik.de/jobboerse/index.php', '', '', 22);
 addItem('Hotelkritik', 'http://hotelguide.restaurant-kritik.de/openhotelguide.php', '', '', 22);
 addItem('Buchshop', 'http://www.restaurant-kritik.de/buchshop.php', '', '', 22);

startMenu('mNews', true, 0, 22, 145, subM);
 addItem('Gastro Forum', 'http://www.restaurant-kritik.at/news_gastat.php', '', '', 22);



startMenu('mGut', true, 0, 22, 120, subM);
 addItem('Forum', 'http://www.restaurant-kritik.de/forum/index.php?c=18', '', '', 22);
}


// *** (3) MENU EFFECTS AND ANIMATION ***


addMenuBorder(pMenu, window.subBlank,
 null, '#666666', 1, '#CCCCDD', 2);


addDropShadow(pMenu, window.subM,
 [40,"#333333",6,6,-4,-4], [40,"#666666",4,4,0,0]);
addDropShadow(pMenu, window.subBlank,
 [40,"#333333",6,6,-4,-4], [40,"#666666",4,4,0,0]);



if (!isOp && navigator.userAgent.indexOf('rv:0.')==-1)
{
 pMenu.showMenu = new Function('mN','menuAnim(this, mN, 10)');
 pMenu.hideMenu = new Function('mN','menuAnim(this, mN, -10)');

}



// *** (4) EVENTS ***
//

if (!isNS4)
{
 // Write menus now in non-NS4 browsers, by calling the "Fast" mode .update(true) method.
 pMenu.update(true);
 //anotherMenu.update(true);
}
else
{
 // For Netscape 4, back up the old onload function and make a new one to update our menus.
 // This is the regular "Dynamic" mode menu update, it works in IE and NS6 too if required.
 var popOldOL = window.onload;
 window.onload = function()
 {
  if (popOldOL) popOldOL();
  pMenu.update();
  //anotherMenu.update();
 }
}


// Other events must be assigned, these are less complicated, just add or remove menu objects.

var nsWinW = window.innerWidth, nsWinH = window.innerHeight, popOldOR = window.onresize;
window.onresize = function()
{
 if (popOldOR) popOldOR();
 if (isNS4 && (nsWinW!=innerWidth || nsWinH!=innerHeight)) history.go(0);
 pMenu.position();
 //anotherMenu.position();
}

window.onscroll = function()
{
 pMenu.position();
 //anotherMenu.position();
}


// NS4 can't reliably capture clicks on layers, so here's a workaround.
if (isNS4)
{
 document.captureEvents(Event.CLICK);
 document.onclick = function(evt)
 {
  with (pMenu) if (overI) click(overM, overI);
  //with (anotherMenu) if (overI) click(overM, overI);
  return document.routeEvent(evt);
 }
}

// Activate the window.onscroll() event in non-Microsoft browsers.
if (!isIE || isOp)
{
 var nsPX=pageXOffset, nsPY=pageYOffset;
 setInterval('if (nsPX!=pageXOffset || nsPY!=pageYOffset) ' +
 '{ nsPX=pageXOffset; nsPY=pageYOffset; window.onscroll() }', 50);
}






function menuAnim(menuObj, menuName, dir)
{
 // The array index of the named menu (e.g. 'mFile') in the menu object (e.g. 'pMenu').
 var mD = menuObj.menu[menuName][0];
 // Add timer and counter variables to the menu data structure, we'll need them.
 if (!mD.timer) mD.timer = 0;
 if (!mD.counter) mD.counter = 0;

 with (mD)
 {

  clearTimeout(timer);

  if (!lyr || !lyr.ref) return;
  if (dir>0) lyr.vis('visible');

  lyr.sty.zIndex = 1001 + dir;

  lyr.clip(0, 0, menuW+2, (menuH+2)*Math.pow(Math.sin(Math.PI*counter/200),0.75) );
  if ((isDOM&&!isIE) && (counter>=100)) lyr.sty.clip='';

  counter += dir;
  if (counter>100) counter = 100;
  else if (counter<0) { counter = 0; lyr.vis('hidden') }
  else timer = setTimeout(menuObj.myName+'.'+(dir>0?'show':'hide')+'Menu("'+menuName+'")', 40);
 }
}


function menuFilterShow(menuObj, menuName, filterName)
{
 var mD = menuObj.menu[menuName][0];
 with (mD.lyr)
 {
  sty.filter = filterName;
  var f = ref.filters;
  if (f&&f.length&&f[0]) f[0].Apply();
  vis('visible');
  if (f&&f.length&&f[0]) f[0].Play();
 }
}



// BORDERS AND DROPSHADOWS:

function addMenuBorder(mObj, iS, alpha, bordCol, bordW, backCol, backW)
{
 // Loop through the menu array of that object, finding matching ItemStyles.
 for (var mN in mObj.menu)
 {
  var mR=mObj.menu[mN], dS='<div style="position:absolute; background:';
  if (mR[0].itemSty != iS) continue;
  // Loop through the items in that menu, move them down and to the right a bit.
  for (var mI=1; mI<mR.length; mI++)
  {
   mR[mI].iX += bordW+backW;
   mR[mI].iY += bordW+backW;
  }
  // Extend the total dimensions of menu accordingly.
  mW = mR[0].menuW += 2*(bordW+backW);
  mH = mR[0].menuH += 2*(bordW+backW);

  if (isNS4) mR[0].extraHTML += '<layer bgcolor="'+bordCol+'" left="0" top="0" width="'+mW+
   '" height="'+mH+'" z-index="980"><layer bgcolor="'+backCol+'" left="'+bordW+'" top="'+
   bordW+'" width="'+(mW-2*bordW)+'" height="'+(mH-2*bordW)+'" z-index="990"></layer></layer>';
  else mR[0].extraHTML += dS+bordCol+'; left:0px; top:0px; width:'+mW+'px; height:'+mH+
   'px; z-index:980; '+(alpha!=null?'filter:alpha(opacity='+alpha+'); -moz-opacity:'+(alpha/100):'')+
   '">'+dS+backCol+'; left:'+bordW+'px; top:'+bordW+'px; width:'+(mW-2*bordW)+'px; height:'+
   (mH-2*bordW)+'px; z-index:990"></div></div>';
 }
}


function addDropShadow(mObj, iS)
{
 for (var mN in mObj.menu)
 {
  var a=arguments, mD=mObj.menu[mN][0], addW=addH=0;
  if (mD.itemSty != iS) continue;
  for (var shad=2; shad<a.length; shad++)
  {
   var s = a[shad];
   if (isNS4) mD.extraHTML += '<layer bgcolor="'+s[1]+'" left="'+s[2]+'" top="'+s[3]+'" width="'+
    (mD.menuW+s[4])+'" height="'+(mD.menuH+s[5])+'" z-index="'+(arguments.length-shad)+'"></layer>';
   else mD.extraHTML += '<div style="position:absolute; background:'+s[1]+'; left:'+s[2]+
    'px; top:'+s[3]+'px; width:'+(mD.menuW+s[4])+'px; height:'+(mD.menuH+s[5])+'px; z-index:'+
    (a.length-shad)+'; '+(s[0]!=null?'filter:alpha(opacity='+s[0]+'); -moz-opacity:'+(s[0]/100):'')+
    '"></div>';
   addW=Math.max(addW, s[2]+s[4]);
   addH=Math.max(addH, s[3]+s[5]);
  }
  mD.menuW+=addW; mD.menuH+=addH;
 }
}

//-->