var update = "December, 2007";
function write_bott_credit() {
  document.writeln('<div style=\"background-color:transparent;padding:5px 0;width:600px;\">');
  document.writeln('<p class=\"caption\">Site copyright &copy; 2007-2008 ALL RIGHTS RESERVED Last update: ' + update + '<br \/>Contact <a href=\"http:\/\/www.bobdickason.com\/p_scr\/webmaster_form.php\">Webmaster<\/a>');
  document.writeln('<\/div>');
};

function write_bott_address() {
  document.writeln('<div style=\"background-color:transparent;padding:5px 0;width:100%;padding-bottom:20px;\">');
  document.writeln('<p class=\"caption\" style=\"line-height:12px;\"><strong>Scamander Beach Resort Hotel<\/strong><br \/>Tasman Highway, Scamander,<br \/>Tasmania 7215, Australia<br \/><br \/>Phone: 03 6372 5255<br \/>Fax: 03 6372 5428<br \/><br \/><a href=\"mailto:enquiries@scamanderbeach.com.au\">Contact Us<\/a>');
  document.writeln('<\/div>');
};


// Pop-up image window used by all enlargements
// Called by: "<a href="#" onClick="javascript: image_show('something.jpg'); return false;"><img src="img_xxx/something_t.jpg" width="0" height="0"></a>
var details = new Array(
// full slide name | image type | folder | production name | info | other information | byline
'yrd_wide|jpg|img_trains|Model Trains|Wide shot of the yards.||'
);
// Thumbnail link
var j = 0;
function thumb(img_no) {
  for (j = 0; j <= details.length - 1; j ++) {
    img_id = details[j].split("|")[0];
    img_type = details[j].split("|")[1];
    fold_id = details[j].split("|")[2];
    prodn = details[j].split("|")[3];
    perf = details[j].split("|")[4];
    info = details[j].split("|")[5];
    by = details[j].split("|")[6];
    if (img_no == img_id) {
      document.writeln('<a href=\"#\" onClick=\"javascript:image_show(\'' + img_no + '\'); return false;\"><img src=\"' + fold_id + '\/' + img_id + '_t.' + img_type + '\" border=\"0\"><\/a>');
    return true;
    }; 
  };
}
var i = 0;
function image_show(img_no) {
  for (i = 0; i <= details.length - 1; i ++) {
    img_id = details[i].split("|")[0];
    img_type = details[i].split("|")[1]
    fold_id = details[i].split("|")[2];
    prodn = details[i].split("|")[3];
    perf = details[i].split("|")[4];
    info = details[i].split("|")[5];
    by = details[i].split("|")[6];
    if (img_no == img_id) {
      win = window.open('','train_pics','toolbar-yes,scrollbars=yes,resizable=yes,width=750,height=600,screenX=50,screenY=50');
      win.document.writeln('<html>\n<head>\n<title>Scamander Trading and post Office<\/title>\n<style>\n');
      win.document.writeln('p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #CCCC33; line-height: 140%}');
      win.document.writeln('.title { font-size: 18px; font-weight: bold}');
      win.document.writeln('.caption { font-size: 9px}\n-->');
      win.document.writeln('<\/style>\n<\/head>\n<body bgcolor=\"#001100\" text=\"#cccc33\">\n<center>\n  <table width=\"700\" cellspacing=\"0\" cellpadding=\"0\">');
      win.document.writeln('    <tr>\n      <td align=\"center\" valign=\"middle\" width=\"350\"><p class=\"title\">' + prodn + '<\/p><\/td>');
      win.document.writeln('      <td align=\"center\" valign=\"middle\" width=\"350\">\n        <a href=\"javascript:window.close();\"><p class=\"caption\">CLOSE WINDOW</p><\/a>\n      <\/td>\n    <\/tr>');
      win.document.writeln('    <tr>\n      <td align=\"center\" valign=\"middle\" colspan=\"2\" bgcolor=\"#001100\">\n        <img src=\"' + fold_id + '\/' + img_id + '.' + img_type + '\">\n      <\/td>\n    <\/tr>');
      win.document.writeln('    <tr>\n      <td align=\"right\" valign=\"middle\"> &nbsp; <\/td>\n      <td align=\"left\" valign=\"middle\">\n        <p>' + perf + '<\/p>\n      <\/td>\n    <\/tr>');
      win.document.writeln('    <tr>\n      <td align=\"right\" valign=\"middle\">\n        <p class=\"caption\">' + info + '<\/p>\n      <\/td>\n      <td align=\"left\" valign=\"middle\">\n        <p class=\"caption\">' + by + '<\/p>\n      <\/td>\n    <\/tr>');
      win.document.writeln('    <tr>\n      <td align=\"center\" valign=\"middle\" colspan=\"2\">\n        <p class=\"caption\">www.scamandertradingpost.com.au &copy;2007, Bob Dickason<br>\n        <\/p>\n      <\/td>\n    <\/tr>\n  <\/table>');
      win.document.writeln('<\/center>\n<\/body>\n<\/html>');
      win.document.close();
      if (parseInt(navigator.appVersion) >= 4) {
        win.window.focus();
      };
    return true;
    };
  };
}


  var options =  new Array(
  'Accommodation|accom',
  'Facilities|facilities',
  'Five-Spice Restaurant|restaurant',
  'Functions|functions',
  'Contact|contact',
  'Home|index'
  );
  var z = 0;
  splitter = /\s/;
  page_title = document.title.split(splitter);
  the_title = page_title[5];
  js = '';
function write_menu() {
  document.writeln('<p style=\"margin-left:15px;line-height:40px;\">');
  for (z = 0; z <= options.length - 1; z ++) {
    title_id = options[z].split("|")[0];
    file_id = options[z].split("|")[1];
    if (the_title == title_id) {
      js = '<a href=\"javascript:\" onClick=\"alert(\'You are veiwing the ' + title_id + ' page.\'); return false;\" title\=\"You are viewing the ' + title_id + ' page.\">';
    }  else {
      js = '<a href=\"' + file_id + '.html\" title\=\"Click to go to ' + title_id + ' page.\">';
    };
    document.writeln('&nbsp;&nbsp;' + '&nbsp;&nbsp;' + js + title_id + '<\/a><br>');
  };
  document.writeln('<\/p>');
};

  var y = 0;
function write_bott_menu() {
  document.writeln('<p>');
  for (y = 0; y <= options.length - 1; y ++) {
    title_id = options[y].split("|")[0];
    file_id = options[y].split("|")[1];
    if (the_title == title_id) {
      js = '<a href=\"javascript:\" onClick=\"alert(\'You are viewing the ' + title_id + ' page.\'); return false;\" title\=\"You are viewing the ' + title_id + ' page.\">';
    }  else {
      js = '<a href=\"' + file_id + '.html\" title\=\"Click to go to ' + title_id + ' page.\">';
    };
    document.writeln(js + title_id + '<\/a>');
    if (y == 5) {
      document.write('');
    }  else {
      document.write(' | ');
    };
  };
  document.writeln('<\/p>');
};

  function toggle_show(blocknum, isOpen) {
    hid = ('hide' + (blocknum));
    unhid = ('click' + (blocknum));
    if(document.getElementById) {
      if(document.getElementById(hid).style.display ) {
        if( isOpen != 0 ) {
          document.getElementById(hid).style.display = "block";
          document.getElementById(unhid).style.display = "none";
        } else {
          document.getElementById(hid).style.display = "none";
          document.getElementById(unhid).style.display = "block";
          }
      } else {
        location.href = isOpen;
        return true;
        }
    } else {
      location.href = isOpen;
      return true;
    }
  }
