<!--
function write_pre ( page, root ) {
  document.write('<meta http-equiv="Expires" CONTENT="0">\n');
  document.write('<meta http-equiv="Cache-Control" CONTENT="no-cache">\n');
  document.write('<meta http-equiv="Pragma" CONTENT="no-cache">\n');
  document.write('<head>\n');
  document.write("  <title>Food On A Plate, Ireland's Takeaway Restaurant Directory, Menu & Price Listing Service</title>\n");
  document.write('  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n');
//  document.write('  <meta name="description" content="Ireland\'s Takeaway Restaurant Directory, Menu and Price Listing Service">\n');
//  document.write('  <meta name="keywords" content="takeaway, restaurant, menu, prices, takeaway restaurant, menu list, price list, food, plate, food on a plate">\n');
  document.write('  <script language="JavaScript">\n');
  document.write('    NewImg1 = new Array ("' + writePath(root, "images/foapmobile.jpg") + '","' + writePath(root, "images/foapmobile.jpg") + '","' + writePath(root, "images/place_add.gif") + '");\n');
  document.write('    NewImg2 = new Array ("' + writePath(root, "images/food11.jpg") + '","' + writePath(root, "images/food15.jpg") + '","' + writePath(root, "images/place_add.gif") + '");\n');
  document.write('    NewImg3 = new Array ("' + writePath(root, "images/food13.jpg") + '","' + writePath(root, "images/food12.jpg") + '","' + writePath(root, "images/place_add.gif") + '");\n');
  document.write('    var ImgNum1 = 0;\n');
  document.write('    var ImgNum2 = 0;\n');
  document.write('    var ImgNum3 = 0;\n');
  document.write('    var ImgLength = NewImg1.length - 1;\n');
  document.write('    var delay = 3000;\n');
  document.write('    var lock = false;\n');
  document.write('    var run;\n');
  document.write('  </script>\n');
  document.write('</head>\n');
  document.write('<script language="JavaScript">\n');
  document.write('  areaArray = new Array(301);\n');
  document.write('</script>\n');
  document.write('<script language="JavaScript" src="' + writePath(root, "scripts/search.js") + '" type="text/javascript"></script>\n');
  document.write('<body bgcolor="#660000" text="#CCCC99" link="#CCCC99" vlink="#CCCC99" alink="#CCCC99">\n');

  document.write('<input type="hidden" name="usearea" value="">\n');

  document.write('<table width="100%" height="100%" cellspacing="0">\n');
  document.write('  <tr height="50">\n');
  document.write('    <td width="10%" valign="top" align="center"> \n');
  document.write('      <img src="' + writePath(root, "images/food150_2.jpg") + '"> \n');

  document.write('      <br><img src="' + writePath(root, "images/grow.gif") + '"> \n');

  document.write('    </td> \n');
  document.write('    <td width="80%" valign="top"> \n');
  document.write('      <table width="100%" cellspacing="0" cellpadding="0">\n');
  document.write('        <tr>\n');
  document.write('          <td align="center"> <img src="' + writePath(root, "images/logo3.gif") + '"> \n');

  document.write('            <form name="searchForm" method="post" action="' + writePath(root, "jserv/list.jsp") + '" onSubmit="return (navigate())" style="margin-bottom:0;"> \n');
  document.write('              <select name="county" onChange=countyChange()>\n');
  document.write('                <option value="" selected>Select a County ...</option>\n');
  document.write('                <option value="carlow">Carlow</option>\n');
  document.write('                <option value="cavan">Cavan</option>\n');
  document.write('                <option value="clare">Clare</option>\n');
  document.write('                <option value="cork">Cork</option>\n');
  document.write('                <option value="donegal">Donegal</option>\n');
  document.write('                <option value="dublin">Dublin</option>\n');
  document.write('                <option value="galway">Galway</option>\n');
  document.write('                <option value="kerry">Kerry</option>\n');
  document.write('                <option value="kildare">Kildare</option>\n');
  document.write('                <option value="kilkenny">Kilkenny</option>\n');
  document.write('                <option value="laois">Laois</option>\n');
  document.write('                <option value="limerick">Limerick</option>\n');
  document.write('                <option value="leitrim">Leitrim</option>\n');
  document.write('                <option value="longford">Longford</option>\n');
  document.write('                <option value="louth">Louth</option>\n');
  document.write('                <option value="meath">Meath</option>\n');
  document.write('                <option value="mayo">Mayo</option>\n');
  document.write('                <option value="monaghan">Monaghan</option>\n');
  document.write('                <option value="offaly">Offaly</option>\n');
  document.write('                <option value="roscommon">Roscommon</option>\n');
  document.write('                <option value="sligo">Sligo</option>\n');
  document.write('                <option value="tipperary">Tipperary</option>\n');
  document.write('                <option value="waterford">Waterford</option>\n');
  document.write('                <option value="westmeath">Westmeath</option>\n');
  document.write('                <option value="wexford">Wexford</option>\n');
  document.write('                <option value="wicklow">Wicklow</option>\n');
  document.write('              </select>&nbsp; \n');
  document.write('              <select name="area" size="1" id="area">\n');
  document.write('                <option value="" selected>Select an Area ...</option>\n');
  document.write('              </select>&nbsp; \n');
  document.write('              <select name="type">\n');
  document.write('                <option value="all" selected>All Food Types ...</option>\n');
  document.write('                <option value="can">Cantonese</option>\n');
  document.write('                <option value="chi">Chinese</option>\n');
  document.write('                <option value="fre">French</option>\n');
  document.write('                <option value="ind">Indian</option>\n');
  document.write('                <option value="ita">Italian</option>\n');
  document.write('                <option value="jap">Japanese</option>\n');
  document.write('                <option value="chp">Pizza/Chip Shop/Gen</option>\n');
  document.write('                <option value="tha">Thai</option>\n');
  document.write('              </select>\n');
  document.write('              <br>\n');
//  document.write('              <font face="Arial, Helvetica, sans-serif" size="1">Only list restaurants that deliver:</font>\n');
//  document.write('              <input type="checkbox" name="delivery" true>\n');
  document.write('                <br><img src="' + writePath(root, "images/click.gif") + '"> \n');
  document.write('              <br>\n');
  document.write('              <input type="image" name="Search" src="' + writePath(root, "images/btn_go.gif") + '" border="0" onMouseOver="this.src=' + "'" + writePath(root, "images/btn_go_over.gif") + "'" + '" onMouseOut="this.src=' + "'" + writePath(root, "images/btn_go.gif") + "'" + '">\n');
  document.write('            </form>\n');
  document.write('          </td>\n');
  document.write('        </tr>\n');
  document.write('      </table>\n');
  document.write('    </td>\n');

  document.write('    <td width="10%" valign="top">\n');


//  document.write('<applet archive="Verticalscrolly.jar" code="Verticalscrolly.class" width="151" height="115">//width and heigth of the applet\n');
//  document.write('<param name="Scrollspeed" value="70">\n');          //Delaytime of the scroll
//  document.write('<param name="Numblines" value="38">\n');             //Number of scroll lines
//  document.write('<param name="Xposition" value="2">\n');             //Position of text
//  document.write('<param name="Space" value="14">\n');                //Space between lines
//  document.write('<param name="Fontface" value="Arial">\n');          //Type of font
//  document.write('<param name="Fontsize" value="11">\n'); //Size of the font
//  document.write('<param name="Bold" value="FALSE">\n'); // Bold font set to true 
//  document.write('<param name="Plain" value="TRUE">\n'); //Standard Font
//  document.write('<param name="Italic" value="FALSE">\n'); //Italic True or False
//  document.write('<param name="Bgcolor" value="204,204,153">\n'); //Backgrondcolo
//  document.write('<param name="Fgcolor" value="102,0,0">\n'); //Fontcolor
//  document.write('<param name="Text0" value="-------------------------------------">\n');
//  document.write('<param name="Text1" value="-                Welcome               -">\n');
//  document.write('<param name="Text2" value="-                      to                     -">\n');
//  document.write('<param name="Text3" value="-          Food On A Plate          -">\n');
//  document.write('<param name="Text4" value="-------------------------------------">\n');
//
//  document.write('        <param name="Text5" value="                ">\n');
//  document.write('        <param name="Text6" value="                ">\n');
//  document.write('        <param name="Text7" value="Thanks for visiting the site">\n');
//  document.write('        <param name="Text8" value="We hope you find it as useful">\n');
//  document.write('        <param name="Text9" value="as we do!">\n');
//  document.write('        <param name="Text10" value="                    ">\n');
//  document.write('        <param name="Text11" value="You can make this free">\n');
//  document.write('        <param name="Text12" value="service even more useful for">\n');
//  document.write('        <param name="Text13" value="yourself and others.">\n');
//  document.write('        <param name="Text14" value="                    ">\n');
//  document.write('        <param name="Text15" value="Please feel free to point out">\n');
//  document.write('        <param name="Text16" value="any errors or omissions by">\n');
//  document.write('        <param name="Text17" value="using our Comments section.">\n');
//  document.write('        <param name="Text18" value="            ">\n');
//  document.write('        <param name="Text19" value="If any of your local takeaways">\n');
//  document.write('        <param name="Text20" value="are not listed, please let us">\n');
//  document.write('        <param name="Text21" value="know.">\n');
//  document.write('        <param name="Text22" value="             ">\n');
//  document.write('        <param name="Text23" value="If we do not have a Menu">\n');
//  document.write('        <param name="Text24" value="listing, ask your takeaway to">\n');
//  document.write('        <param name="Text25" value="join us.">\n');
//  document.write('        <param name="Text26" value="            ">\n');
//  document.write('        <param name="Text27" value="As this is a brand new service">\n');
//  document.write('        <param name="Text28" value="we hope you will bear with us">\n');
//  document.write('        <param name="Text29" value="during our initial growth ">\n');
//  document.write('        <param name="Text30" value="stage.  We can only provide">\n');
//  document.write('        <param name="Text31" value="information for those takeaway">\n');
//  document.write('        <param name="Text32" value="outlets that wish to partake">\n');
//  document.write('        <param name="Text33" value="in this service. So check back">\n');
//  document.write('        <param name="Text34" value="regularly because it will be">\n');
//  document.write('        <param name="Text35" value="continually expanding.">\n');
//  document.write('        <param name="Text36" value="            ">\n');
//  document.write('        <param name="Text37" value="Enjoy your Food On A Plate!">\n');

//  document.write('</applet>\n');

document.write('     <a href="' + writePath(root, "mobile.html") + '">\n');
document.write('       <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="150" height="115"> \n');
document.write('         <param name=movie value="foap_mobile.swf"> \n');
document.write('         <param name=quality value=high> \n');
document.write('         <param name=loop value=true> \n');
document.write('         <embed src="foap_mobile.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="150" height="115"> \n');
document.write('         </embed> \n');
document.write('       </object>  \n');
document.write('     </a>\n');

//  document.write('      <br><img src="' + writePath(root, "images/click.gif") + '"> \n');
  document.write('                <br><br><img src="' + writePath(root, "images/1000.gif") + '"> \n');

  document.write('    </td>\n');
  document.write('  </tr>\n');
  document.write('  <tr>\n');
  document.write('    <td colspan="3" valign="top">\n');
  document.write('      <hr>\n');
  document.write('    </td>\n');
  document.write('  </tr>\n');

  document.write('  <tr>\n');
  document.write('    <td valign="top" width="15%"> \n');

  if (page != "HOME" )
    writeRolloverAnchor(root, "home.html", "home", "images/btn_home.gif", "images/btn_home_over.gif");
  if (page != "NEWS" )
    writeRolloverAnchor(root, "news.html", "news", "images/btn_news.gif", "images/btn_news_over.gif");
  if (page != "SUBSCRIBE" ) 
    writeRolloverAnchor(root, "jserv/email.jsp?action=SUBSCRIBE", "subscribe", "images/btn_subscribe.gif", "images/btn_subscribe_over.gif");
  if (page != "COMMENTS" )
    writeRolloverAnchor(root, "jserv/email.jsp?action=COMMENTS", "comments", "images/btn_comments.gif", "images/btn_comments_over.gif");
  if (page != "TELL" )
    writeRolloverAnchor(root, "tellafriend.html", "tellafriend", "images/btn_tellafriend.gif", "images/btn_tellafriend_over.gif");
  if (page != "SUGGEST" ) 
    writeRolloverAnchor(root, "jserv/email.jsp?action=SUGGEST", "sugrest", "images/btn_sugrest.gif", "images/btn_sugrest_over.gif");
  if (page != "CONTACT" )
    writeRolloverAnchor(root, "jserv/email.jsp?action=CONTACT", "contactus", "images/btn_contactus.gif", "images/btn_contactus_over.gif");

  // Bookmark anchor.
  document.write('      <a href="javascript:addToFavourites()" onmouseover="document.bookmark.src=' + "'" + writePath(root, "images/btn_add_over.gif") + "'" + '" onmouseout="document.bookmark.src=' + "'" + writePath(root, "images/btn_add.gif") + "'" + '"> <img name="bookmark" border="0" src="' + writePath(root, "images/btn_add.gif") + '"/></a>\n');

  document.write('    </td>\n');

  document.write('    <td valign="top"> \n');
  document.write('      <table width="100%" cellspacing="0" cellpadding="0">\n');
  document.write('        <tr>\n');
  document.write('          <td valign="top" width="70%">\n');
}

function write_post(root) {

  document.write('          </td>\n');
  document.write('        </tr>\n');
  document.write('      </table>\n');
  document.write('    </td>\n');

  document.write('    <td valign="top" align="right" width="15%">\n');

//  document.write('      <img src="' + writePath(root, "images/food15.jpg") + '" name="slideshow1" onmouseover="this.style.cursor=&quot;hand&quot;" onclick="openlink(this.name, ImgNum1)">');
//  document.write('      <br>\n');
//  document.write('      <img src="' + writePath(root, "images/food11.jpg") + '" name="slideshow2" onmouseover="this.style.cursor=&quot;hand&quot;" onclick="openlink(this.name, ImgNum2)">');
//  document.write('      <br>\n');
//  document.write('      <img src="' + writePath(root, "images/food13.jpg") + '" name="slideshow3" onmouseover="this.style.cursor=&quot;hand&quot;" onclick="openlink(this.name, ImgNum3)">');

    document.write('      <a href="javascript:openlink(' + "'slideshow1'" + ', ImgNum1)"> <img name="slideshow1" border="0" src="' + writePath(root, "images/foapmobile.jpg") + '"/></a>\n');
    document.write('      <a href="javascript:openlink(' + "'slideshow2'" + ', ImgNum1)"> <img name="slideshow2" border="0" src="' + writePath(root, "images/food11.jpg") + '"/></a>\n');
    document.write('      <a href="javascript:openlink(' + "'slideshow3'" + ', ImgNum1)"> <img name="slideshow3" border="0" src="' + writePath(root, "images/food13.jpg") + '"/></a>\n');


  document.write('    </td>\n');
  document.write('  </tr>\n');
  document.write('  <tr>\n');
  document.write('    <td colspan="3">\n');
  document.write('      <hr>\n');
  document.write('    </td>\n');
  document.write('  </tr>\n');
  document.write('  <tr>\n');

  document.write('    <td width="15%"> \n');
  document.write('    </td> \n');
  document.write('    <td width="70%" valign="top" align="center"> \n');
  document.write('      <font face="Arial, Helvetica, sans-serif" size="1">\n');
  document.write('        <a href="' + writePath(root, "home.html") + '">Home</a> | <a href="' + writePath(root, "news.html") + '">News</a> | <a href="' + writePath(root, "jserv/email.jsp?action=SUBSCRIBE") + '">Subscribe</a> | <a href="' + writePath(root, "jserv/email.jsp?action=COMMENTS") + '">Comments</a> | <a href="' + writePath(root, "tellafriend.html") + '">Tell A Friend</a> | <a href="' + writePath(root, "jserv/email.jsp?action=SUGGEST") + '">Suggest Restaurant</a>  <br><a href="' + writePath(root, "jserv/email.jsp?action=CONTACT") + '">Contact us</a> | <a href="javascript:addToFavourites()">Add To Favourites</a>\n');
  document.write('        <br>&copy; Copyright 2002 Farscope Technologies Ltd.<br>\n');
  document.write('        <a href="' + writePath(root, "disclaimer.html") + '">Disclaimer</a>\n');
  document.write('      </font> \n');
  document.write('    </td>\n');
  document.write('    <td width="15%"> \n');
  document.write('    </td> \n');
  document.write('  </tr>\n');
  document.write('</table>\n');

  document.write('<script language="JavaScript">\n');
  document.write('pageLoad();\n');
  document.write('auto();\n');
  document.write('</script>\n');

  document.write('</body>\n');
//  document.write('</script>\n');
}


function chgImg(direction) {
  if (document.images) {
    ImgNum1 = ImgNum1 + direction;
    ImgNum2 = ImgNum2 + direction;
    ImgNum3 = ImgNum3 + direction;
    if (ImgNum1 > ImgLength) {
      ImgNum1 = 0;
    }
    if (ImgNum2 > ImgLength) {
      ImgNum2 = 0;
    }
    if (ImgNum3 > ImgLength) {
      ImgNum3 = 0;
    }
    if (ImgNum1 < 0) {
      ImgNum1 = ImgLength;
    }
    if (ImgNum2 < 0) {
      ImgNum2 = ImgLength;
    }
    if (ImgNum3 < 0) {
      ImgNum3 = ImgLength;
    }
    document.slideshow1.src = NewImg1[ImgNum1];
    document.slideshow2.src = NewImg2[ImgNum2];
    document.slideshow3.src = NewImg3[ImgNum3];
  }
}

function auto() {
  if (lock == true) {
    lock = false;
    window.clearInterval(run);
  }
  else if (lock == false) {
    lock = true;
    run = setInterval("chgImg(1)", delay);
  }
}

function openlink(name, imageNumber) {
 var url;
 if ( name == "slideshow1" ) {
   if (imageNumber == 0) url = "http://www.foodonaplate.com/mobile.html";
   if (imageNumber == 1) url = "http://www.foodonaplate.com/mobile.html";
   if (imageNumber == 2) url = "http://www.foodonaplate.com/yoursite.html";
 }
 if ( name == "slideshow2" ) {
   if (imageNumber == 0) url = "http://www.foodonaplate.com/yoursite.html";
   if (imageNumber == 1) url = "http://www.foodonaplate.com/yoursite.html";
   if (imageNumber == 2) url = "http://www.foodonaplate.com/yoursite.html";
 }
 if ( name == "slideshow3" ) {
   if (imageNumber == 0) url = "http://www.foodonaplate.com/yoursite.html";
   if (imageNumber == 1) url = "http://www.foodonaplate.com/yoursite.html";
   if (imageNumber == 2) url = "http://www.foodonaplate.com/yoursite.html";
 }
 if (url != "")
   var sList = window.open(url, "list", "width=500,height=400,scrollbars=yes,resizable=yes");
}

function writePath( rootPath, target) {
  if ( rootPath != "." && rootPath != ".." ) alert (rootPath + "/" + target);
  return rootPath + "/" + target;
}

function writeRolloverAnchor(root, targetUrl, objectName, upImage, overImage) {

  var onmouseoverString = 'document.' + objectName + '.src="' + root + '/' + overImage + '"';
  var onmouseoutString  = 'document.' + objectName + '.src="' + root + '/' + upImage + '"';
  var hrefString        = writePath( root, targetUrl);

  outputString = "<a href='" + hrefString + "' " +
                 "onmouseover='" + onmouseoverString + "' " +
                 "onmouseout='" + onmouseoutString + "' " +
                 ">" +
                 "<img name='" + objectName + "' border='0' src='" + writePath( root, upImage) + "'>" +
                 "</a>\n";

  document.write(outputString);
}

function writeAdd( fileName ) {
  document.write('      <applet code=souvenir.class width=100 height=100> \n');
  document.write('        <param name=filename value="' + fileName + '"> \n');
  document.write('        <param name=target value="_blank"> \n');
  document.write('        <param name=delay value="50"> \n');
  document.write('        <param name=increment value="30"> \n');
  document.write('        <param name=bgcolor value="CCCC99"> \n');
  document.write('      </applet> \n');
}

function netscape_check() {
  if (navigator.appName=="Netscape") 
    if (document.layers)
      return true;
    else return false;
  else return false;
}

function countyChange(){
  if ( !netscape_check() ) 
    usearea.value="";
  setAreaCodes(document.searchForm.county,document.searchForm.area);
}

function addToFavourites(){
  if ( netscape_check() == false && (parseInt(navigator.appVersion) >= 4) ) 
  {
    window.external.AddFavorite( "http://www.foodonaplate.com", "Food On A Plate, for all your takeaway needs!");
  }
  else 
  {
    alert("You appear to be using a Netscape Browser\n\nPress CTRL-D to add us to your favourites list.");
  }
}
//-->

