<!--
// Cross Browser Multi-Orientation 3 Tier Menu v1.1 21st February 2005
// This script written by Rik Comery. www.ricom.co.uk
// For support, visit the "Resources" section at www.ricom.co.uk           
// All rights reserved.   


// Enhancements and modifications 10th April 2005
// By Des O'Mahony, www.bookassist.com

// Compatibility enhancements HTML 4.01 20th April 2006
// By Des O'Mahony, www.bookassist.com


MenuFoot = new Array();
subMenuFoot = new Array();
subSubMenuFoot = new Array();


//== Menu Items ============================================================================================
// Enter a new line below for each Menu and 1st & 2nd level sub Menu items. The format is:
// addMenu("background colour","background colour mouseover","font colour","font-colour on mouseover","display text","URL","target","onclick action")
// For main menu items use addMenu(), for level 1 sub menu items use addSubMenu() and for level 2 sub menu items use addSubSubMenu()

addMenuFoot("#f8f8f8","#f0f0f0","#333333","#006699","faq&nbsp;","/global/faq.jsp","out","")   

addMenuFoot("#f8f8f8","#f0f0f0","#333333","#006699","&nbsp;security&nbsp;","/global/security.jsp","out","")   

addMenuFoot("#f8f8f8","#f0f0f0","#333333","#006699","&nbsp;terms &amp; conditions&nbsp;","/global/terms.jsp","out","")   
  
addMenuFoot("#f8f8f8","#f0f0f0","#333333","#006699","&nbsp;site map&nbsp;","/sitemap/","_top","")    
  	
addMenuFoot("#f8f8f8","#f0f0f0","#333333","#006699","&nbsp;contact&nbsp;","/about/contact.jsp","_top","")   
  	
addMenuFoot("#f8f8f8","#f0f0f0","#333333","#006699","&nbsp;latest news&nbsp;","/about/news.jsp","_top","")   

addMenuFoot("#f8f8f8","#f0f0f0","#333333","#006699","&nbsp;XML/RSS&nbsp;","/rss/","_top","")   
  	
addMenuFoot("#f8f8f8","#f0f0f0","#333333","#006699","&nbsp;info for hotels&nbsp;","/about/bookassist.jsp","_top","")   

//== Configuration =================================================================================
var borderFoot = "003366";   
var menuWidthFoot = 0;           // Width of entire menu. Use 0 for default
var cellPaddingFoot = 0;         // Cell Padding  
var borderWidthFoot = 0;         // Border width (for no border, enter 0)  THIS VALUE APPLIES TO ALL MENUS  
var subMenuDelayFoot = 0.25;        // Time sub menu stays visible for (in seconds). THIS VALUE APPLIES TO ALL MENUS
var fontDecorationFoot = "none"  // Font decoration of all menu items (none, underline, overline)
var statusBarFoot = "1" ;        // Message shown in status bar. 
                             //   Type "0" to show the URL. (normal behaviour of browser)
                             //   Type "1" to show the menu title
                             //   Type anything else to show a custom message.


// Main menu 
var mainIndicateFoot = "...";  // Symbol to show if a sub menu is present.  For no symbol, enter "none" 
var fontFaceFoot = "verdana";      // Font of main menu items
var fontSizeFoot = "9px";       // Font size of main menu items
var fontWeightFoot = "normal"    // Font Weight of main menu items

// Level 1 sub menu
var sVerticalOffsetFoot = 0;     // Vertical offset of Sub Menu. (negative values move sub menu up) 
var sHorizontalOffsetFoot = 0;   // Horizontal offset of Sub Menu. (negative values move sub menu to the left) 
var subIndicateFoot = "...";   // Symbol to show if a sub menu is present.  For no symbol, enter "none" 
var sfontFaceFoot = "verdana";     // Font of main menu items
var sfontSizeFoot = "9px";      // Font size of main menu items
var sfontWeightFoot = "normal";    // Font Weight of main menu items
var sTransparencyFoot = "90"    // Opacity of sub menus. 0 - 100.  (IE Only.)

// Level 2 sub menu 
var ssVerticalOffsetFoot = 0      // Vertical offset of Sub Menu. (negative values move sub menu up) 
var ssHorizontalOffsetFoot = -10    // Horizontal offset of Sub Menu. (negative values move sub menu to the left)
var ssfontFaceFoot = "verdana";     // Font of main menu items
var ssfontSizeFoot = "9px";      // Font size of main menu items
var ssfontWeightFoot = "normal";    // Font Weight of main menu items
var ssTransparencyFoot = "90"    // Opacity of sub menus. 0 - 100.  (IE Only.)

//== End Configuration - Do not edit below this line =======================================================

function addMenuFoot(back,backH,font,fontH,title,url,target,action){
i = MenuFoot.length;
  MenuFoot[i] = new Array(back,backH,font,fontH,title,url,target,action); 
  subMenuFoot[i] = new Array();
  subSubMenuFoot[i] = new Array();
}

function addSubMenuFoot(back,backH,font,fontH,title,url,target,action){
j = subMenuFoot[i].length;
  subMenuFoot[i][j] = new Array(back,backH,font,fontH,title,url,target,action)
  subSubMenuFoot[i][j] = new Array();    
}

function addSubSubMenuFoot(back,backH,font,fontH,title,url,target,action){
k = subSubMenuFoot[i][j].length;
  subSubMenuFoot[i][j][k] = new Array(back,backH,font,fontH,title,url,target,action)  
}

var timerFoot; 

function showMenuFoot(orientationFoot){
  if(orientationFoot==""){orientationFoot=="horizontal"}
  buildMenuFoot(orientationFoot);
  buildSubMenuFoot();
  buildSubSubMenuFoot();
}
  
function buildMenuFoot(orientationFoot){
  buildFoot = '<table width="'+menuWidthFoot+'" border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="'+borderFoot+'"><tr><td><table border="0" cellpadding="0" cellspacing="'+borderWidthFoot+'" width="100%""><tr>';
  // first element different (to make the cell border different only)
  buildFoot += '<td nowrap="nowrap" style="cursor:pointer; background-color:'+MenuFoot[0][0]+'" onclick="'+MenuFoot[0][7]+';tdMouseClickFoot(\'MenuLinkFoot'+0+'\')" >';
  buildFoot += '<div align="center" id="MenuFoot'+0+'" style="padding:'+cellPaddingFoot+'px; background-color:'+MenuFoot[0][0]+'" onMouseOver="clearTimerFoot(); hideAllFoot(\'main\'); showSubMenuFoot(\'Menu\','+0+',\''+orientationFoot+'\'); showStatusFoot(\'over\',\'Main\','+0+'); return true;" onMouseOut="timerHideFoot(); ">';
  buildFoot += '<a rel="nofollow" id="MenuLinkFoot'+0+'" href="'+MenuFoot[0][5]+'" target="'+MenuFoot[0][6]+'" onclick="'+MenuFoot[0][7]+'" style="font-family:'+fontFaceFoot+';font-size:'+fontSizeFoot+';font-weight:'+fontWeightFoot+';color:'+MenuFoot[0][2]+';text-decoration:'+fontDecorationFoot+'">'+MenuFoot[0][4]
  if(mainIndicateFoot.toLowerCase()!="none" && subMenuFoot[0].length>0){buildFoot += '<span style="padding-left:3px">'+mainIndicateFoot+'<\/span>';}    
  buildFoot += '<\/a><\/div><\/td>';
  if(orientationFoot.toLowerCase()=="vertical" && 0<(MenuFoot.length-1)){buildFoot += "<\/tr><tr>"}
  //subsequent elements
  for (x=1;x<MenuFoot.length; x++){
    buildFoot += '<td nowrap="nowrap" style="border-left-width: 1px; border-left-style: dotted; border-left-color: #999999; cursor:pointer; background-color:'+MenuFoot[x][0]+'" onclick="tdMouseClickFoot(\'MenuLinkFoot'+x+'\')" >';
    buildFoot += '<div align="center" id="MenuFoot'+x+'" style="padding:'+cellPaddingFoot+'px; background-color:'+MenuFoot[x][0]+'" onMouseOver="clearTimerFoot(); hideAllFoot(\'main\'); showSubMenuFoot(\'Menu\','+x+',\''+orientationFoot+'\'); showStatusFoot(\'over\',\'Main\','+x+'); return true;" onMouseOut="timerHideFoot(); ">';
    buildFoot += '<a rel="nofollow" id="MenuLinkFoot'+x+'" href="'+MenuFoot[x][5]+'" target="'+MenuFoot[x][6]+'" onclick="'+MenuFoot[x][7]+'" style="font-family:'+fontFaceFoot+';font-size:'+fontSizeFoot+';font-weight:'+fontWeightFoot+';color:'+MenuFoot[x][2]+';text-decoration:'+fontDecorationFoot+'">'+MenuFoot[x][4]
    if(mainIndicateFoot.toLowerCase()!="none" && subMenuFoot[x].length>0){buildFoot += '<span style="padding-left:3px">'+mainIndicateFoot+'<\/span>';}    
    buildFoot += '<\/a><\/div><\/td>';
    if(orientationFoot.toLowerCase()=="vertical" && x<(MenuFoot.length-1)){buildFoot += "<\/tr><tr>"}
  }
  buildFoot += '<\/tr><\/table><\/td><\/tr><\/table>';  
  document.writeln(buildFoot);
}

function buildSubMenuFoot(){
  for(y=0; y<subMenuFoot.length; y++){   
    buildSubFoot = '<div id="SubFoot'+y+'" style="position:absolute; left:0px; top:0px; visibility:hidden">';
    if(subMenuFoot[y].length>0){ 
      buildSubFoot += '<table width="'+menuWidthFoot+'" border="0" cellpadding="0" cellspacing="0" bgcolor="'+borderFoot+'" style="padding-right:1px"><tr><td><table border="0" cellpadding="0" cellspacing="'+borderWidthFoot+'" width="100%" align="center">';
      for(z=0; z<subMenuFoot[y].length; z++){  
        buildSubFoot += '<tr><td nowrap="nowrap" onclick="tdMouseClickFoot(\'SubLinkFoot'+y+z+'\')" onMouseOver="showStatusFoot(); clearTimerFoot(); hideAllFoot(\'sub\'); showSubSubMenuFoot(\'Sub\','+y+','+z+'); showStatusFoot(\'over\',\'Sub\','+y+','+z+'); return true;" style="cursor:pointer"><div nowrap="nowrap" id="SubFoot'+y+z+'" style="cursor:pointer;padding:'+cellPaddingFoot+'px; background-color:'+subMenuFoot[y][z][0]+'" onMouseOut="timerHideFoot()">';        
        buildSubFoot += '<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center"><tr><td nowrap="nowrap"><a rel="nofollow" id="SubLinkFoot'+y+z+'" href="'+subMenuFoot[y][z][5]+'" target="'+subMenuFoot[y][z][6]+'" style="font-family:'+sfontFaceFoot+';font-size:'+sfontSizeFoot+';font-weight:'+sfontWeightFoot+';color:'+subMenuFoot[y][z][2]+';text-decoration:'+fontDecorationFoot+'">'+subMenuFoot[y][z][4]+'<\/a><\/div><\/td>';
        buildSubFoot += '<td align="center" nowrap="nowrap" onclick="tdMouseClickFoot(\'SubLinkFoot'+y+z+'\')" onMouseOver="showStatusFoot(); clearTimerFoot(); hideAllFoot(\'sub\'); showSubSubMenuFoot(\'Sub\','+y+','+z+'); showStatusFoot(\'over\',\'Sub\','+y+','+z+'); return true;" title="'+subMenuFoot[y][z][4]+'" style="cursor:pointer; padding-right:'+cellPaddingFoot+'px">';
        if(subIndicateFoot.toLowerCase()!="none" && subSubMenuFoot[y][z].length>0){
          buildSubFoot += subIndicateFoot;
        }else{
          buildSubFoot += " ";
        }
        buildSubFoot += '<\/td><\/tr><\/table><\/td><\/tr>';
      }
      buildSubFoot += '<\/table><\/td><\/tr><\/table>';
    }
    buildSubFoot += '<\/div>';
    document.write (buildSubFoot)
  }
}

function buildSubSubMenuFoot(){
  for(x=0; x<MenuFoot.length; x++){
    if(subMenuFoot[x].length>0){
      for(y=0; y<subMenuFoot[x].length; y++){
        buildSubSubFoot = '<div id="SubSubFoot'+x+y+'" style="position:absolute; left:0px; top:0px; visibility:hidden">'
        if(subSubMenuFoot[x][y].length>0){
          buildSubSubFoot += '<table border="0" cellpadding="0" cellspacing="0" bgcolor="'+borderFoot+'"><tr><td><table border="0" cellpadding="0" cellspacing="'+borderWidthFoot+'" width="100%" align="center">';
          for(z=0; z<subSubMenuFoot[x][y].length; z++){
            buildSubSubFoot += '<tr><td style="cursor:pointer" nowrap="nowrap"  onMouseOver="clearTimerFoot(); hideAllFoot(\'subsub\'); highlightSubSubMenuFoot('+x+','+y+','+z+'); showStatusFoot(\'over\',\'SubSub\','+x+', '+y+','+z+'); return true;" onMouseOut="timerHide()" onclick="tdMouseClickFoot(\'SubSubLink'+x+y+z+'\')"><div id="SubSubFoot'+x+y+z+'" style="font-family:'+fontFaceFoot+';font-size:'+fontSizeFoot+';font-weight:'+ssfontWeightFoot+';cursor:pointer;padding:'+cellPaddingFoot+'px; background-color:'+subSubMenuFoot[x][y][z][0]+'">';
            buildSubSubFoot += '<a rel="nofollow" id="SubSubLinkFoot'+x+y+z+'" href="'+subSubMenuFoot[x][y][z][5]+'" target="'+subSubMenuFoot[x][y][z][6]+'" style="font-family:'+ssfontFaceFoot+';font-size:'+ssfontSizeFoot+';font-weight:'+ssfontWeightFoot+';color:'+subSubMenuFoot[x][y][z][2]+';text-decoration:'+fontDecorationFoot+'">'+subSubMenuFoot[x][y][z][4]+'<\/a>';
            buildSubSubFoot += '<\/div><\/td><\/tr>';
          }
          buildSubSubFoot += '<\/table><\/td><\/tr><\/table>';         
        }
        buildSubSubFoot += '<\/div>';         
        document.writeln(buildSubSubFoot)   
      }     
    }
  }
}

function showSubMenuFoot(obj,id,orientationFoot){
  document.getElementById(obj+"Foot"+id).style.backgroundColor=MenuFoot[id][1];
  document.getElementById(obj+"LinkFoot"+id).style.color=MenuFoot[id][3];
  getOffset(eval('document.getElementById("'+obj+"Foot"+id+'")'),"left")
  getOffset(eval('document.getElementById("'+obj+"Foot"+id+'")'),"top")
  getOffset(eval('document.getElementById("'+obj+"Foot"+id+'")'),"height")
  getOffset(eval('document.getElementById("'+obj+"Foot"+id+'")'),"width")

  vOff=(orientationFoot.toLowerCase()=="vertical")?oWidth+borderWidthFoot:0
  hOff=(orientationFoot.toLowerCase()=="vertical")?oHeight+borderWidthFoot:0
  
  document.getElementById("SubFoot"+id).style.left=oLeft-borderWidthFoot+sHorizontalOffsetFoot+vOff+'px';
  document.getElementById("SubFoot"+id).style.top=oTop+oHeight+sVerticalOffsetFoot-hOff+'px';
  document.getElementById("SubFoot"+id).style.visibility="visible";
}

function showSubSubMenuFoot(obj,id, subid){
  document.getElementById(obj+id+subid).style.backgroundColor=subMenuFoot[id][subid][1];
  document.getElementById(obj+"LinkFoot"+id+subid).style.color=subMenuFoot[id][subid][3];
  
  getOffset(eval('document.getElementById("'+obj+"Foot"+id+subid+'")'),"left")
  getOffset(eval('document.getElementById("'+obj+"Foot"+id+subid+'")'),"top")
  getOffset(eval('document.getElementById("'+obj+"Foot"+id+subid+'")'),"height")
  getOffset(eval('document.getElementById("'+obj+"Foot"+id+subid+'")'),"width")
  
  document.getElementById("SubSubFoot"+id+subid).style.left=oLeft+oWidth+ssHorizontalOffsetFoot+'px';
  document.getElementById("SubSubFoot"+id+subid).style.top=oTop-borderWidthFoot+ssVerticalOffsetFoot+'px';
  document.getElementById("SubSubFoot"+id+subid).style.visibility="visible";
}

function highlightSubSubMenuFoot(id, subid, subsubid){
  document.getElementById("SubSubFoot"+id+subid+subsubid).style.backgroundColor=subSubMenuFoot[id][subid][subsubid][1];
  document.getElementById("SubSubLinkFoot"+id+subid+subsubid).style.color=subSubMenuFoot[id][subid][subsubid][3];
}

function timerHideFoot(level,id,subid){
  timer = setTimeout("hideAllFoot()",(subMenuDelay*1000))
}

function clearTimerFoot(){
  if(timer){clearTimeout(timer)}
}

// Hide all sub menu items, and recolour as required.
function hideAllFoot(level){
  showStatusFoot('out')  
  for(x=0;x<MenuFoot.length; x++){
    if(level!="subFoot"&&level!="subsubFoot"){
      document.getElementById("MenuFoot"+x).style.backgroundColor=MenuFoot[x][0]
      document.getElementById("MenuLinkFoot"+x).style.color=MenuFoot[x][2];
    }
    for(y=0;y<subMenuFoot[x].length; y++){
      if(subSubMenuFoot[x][y].length>0){
        if(level!="subsubFoot"){document.getElementById("SubSubFoot"+x+y).style.visibility="hidden";}
        for(z=0; z<subSubMenuFoot[x][y].length; z++){
          document.getElementById("SubSubFoot"+x+y+z).style.backgroundColor=subSubMenuFoot[x][y][z][0]
          document.getElementById("SubSubLinkFoot"+x+y+z).style.color=subSubMenuFoot[x][y][z][2]
        }
      }
      if(level!="subsubFoot"){
        document.getElementById("SubFoot"+x+y).style.backgroundColor=subMenuFoot[x][y][0]
        document.getElementById("SubLinkFoot"+x+y).style.color=subMenuFoot[x][y][2]}
    }
    if(level!="subFoot"&&level!="subsubFoot"){document.getElementById("SubFoot"+x).style.visibility="hidden";}
  }
}


// Find positioning for sub menus
function getOffsetFoot(obj, dim) {
  if(dim=="left") 
  {     
    oLeft = obj.offsetLeft;  
    while(obj.offsetParent!=null) 
    {    
      oParent = obj.offsetParent     
      oLeft += oParent.offsetLeft 
      obj = oParent 	
    }
    return oLeft
  }
  else if(dim=="top")
  {
    oTop = obj.offsetTop;
    while(obj.offsetParent!=null) 
    {
      oParent = obj.offsetParent
      oTop += oParent.offsetTop
      obj = oParent 	
    }
    return oTop
  }
  else if(dim=="width")
  {
    oWidth = obj.offsetWidth
    return oWidth
  }  
  else if(dim=="height")
  {
    oHeight = obj.offsetHeight
    return oHeight
  }    
  else
  {
    alert("Error: invalid offset dimension '" + dim + "' in getOffset()")
    return false;
  }
}

// Display correct text in status bar
function showStatusFoot(state,level,id,subid,subsubid){
  if(statusBar==0){msg=5}
  else if(statusBar==1){msg=4}
  else {msg=0}
    
  if(state=="over"){
    if(level=="Main" && msg>0){displayStatus=MenuFoot[id][msg]}
    else if(level=="Sub" && msg>0){displayStatus=subMenuFoot[id][subid][msg]}
    else if(level=="SubSub" && msg>0){displayStatus=subSubMenuFoot[id][subid][subsubid][msg]}
    else{displayStatus=statusBar;}
  }
  else{displayStatus="";}
  window.status=displayStatus
}

// when you click the box, perform the same function as if the user had clicked the hyperlink
function tdMouseClickFoot(theElement)
{
  if(document.getElementById && document.all){document.getElementById(theElement).click();}
}
//== End Script ============================================================================================
//-->
