var lu_author = "Richard Ashmore";

var lu_date = "Tuesday 23 February 2005";



var ma_author = "webmaster@tlpgroup.co.uk";

var ma_contact = "sales@tlpgroup.co.uk";

var server = "tlpgroup.co.uk";



var to_check_menubar;

var to_redirect;

var to_redirect_timer;

var ua_supported;

var user_agent;



var links_html = "";



var tlp = "TLP Group of Companies";



var site_flashed = tlp + " - [Flash Enhanced Version]";

var site_regular = tlp + " - [Regular Version]";



var wb_ie = "Microsoft Internet Explorer";

var wb_ns = "Netscape";





 //-----------------------------------------------------------------------------

// Standard Startup Routine



determine_browser();







 //-----------------------------------------------------------------------------

// Root Funcions



function onload_home() {

 if (initialise() == false) return false;

 if (screen.width < 800) window.location = "welcome_to_tlp_online.html";

 return true;

 }



function onload_index() {

 validate_resolution();

 resize_intro();

 if (user_agent == wb_ie) ie_onload_index();

 to_redirect = setTimeout("redirect_intro()", 15000);

 return true;

 }



function onload_menubar() {

 process_view_context();

 if (user_agent == wb_ns) ns_onload_menubar();

 }



function onload_site_content() {

 if (user_agent == wb_ns) ns_onload_site_content();

 }







 //-----------------------------------------------------------------------------

// Utility Funcions



function body_html() {

 if (parent.window.location == window.location) return "<body>";

 if (screen.width > 800) return "<body background='res/background.gif'>";

 return "<body>";

 }



function determine_browser() {

 user_agent = navigator.appName;

 if (user_agent == wb_ie) ua_supported = "TRUE";

 if (user_agent == wb_ns) ua_supported = "TRUE";

 }



function elink(mailbox) {

 var html_1 = "<a href='mailto:" + mailbox + "@" + server + "'>";

 var html_2 = mailbox + "@" + server + "</a>";

 return html_1 + html_2;

 }



function flash_enhanced() {

 if (parent.window.document.title == site_flashed) return true;

 else return false;

 }



function flash_img(fi_name, fi_height, fi_width, fi_color, fi_type) {

 if (fi_height == null) fi_height = 50;

 if (fi_width == null) fi_width = 567;

 if (fi_type == null) fi_type = "gif";

 if (fi_color == null) fi_color = "#FFF";

 if (flash_enhanced()) {

  var html_1 = "<embed bgcolor='" + fi_color + "' height='" + fi_height + "' ";

  var html_2 = "quality='high' scale='exactfit' src='res/" + fi_name + ".swf'";

  var html_3 = " width='" + fi_width + "'>";

  return html_1 + html_2 + html_3;

  }

 else {

  var html_1 = "<img src='res/" + fi_name + "." + fi_type + "' height='";

  var html_2 = fi_height + "' width='" + fi_width + "'><br>";

  return html_1 + html_2;

  }

 }



function footer_html() {

 var code_1 = "<tr><td><img src='res/paleblue.gif' width='567' height='1'><h6 ";

 var code_2 = "class='footer'>If you wish to contact TLP, please email us at <";

 var code_3 = "a href='mailto:" + ma_contact + "'>" + ma_contact + "</a> ©2004";

 var code_4 = " TLP Group of Companies.<br>All Rights Reserved.  This site was";

 var code_5 = " last updated on " + lu_date + " by <a href='mailto:" + ma_author

 var code_6 = "'>" + lu_author + "</a></h6></td></table></layer></body>";

 process_view_context();

 return links_html + code_1 + code_2 + code_3 + code_4 + code_5 + code_6;

 }



function get_links_html() {

 var code_1 = "<img src='res/paleblue.gif' width='567' height='1'><h6 class='f";

 var code_2 = "ooter'>[<a href='";

 var lnk_01 = "welcome_to_tlp_online.html'>Welcome to TLP Online";

 var lnk_02 = "the_winning_team.html'>The Winning Team";

 var lnk_03 = "no_prizes_for_second_place.html'>No Prizes for 2nd Place";

 var lnk_04 = "achieving_our_goals.html'>Achieving Our Goals";

 var lnk_05 = "tlp_express_delivery.html'>TLP Express Delivery";

 var lnk_06 = "pallet_express_systems.html'>Pallet Express Systems";

 var lnk_07 = "our_goals_and_philosophy.html'>Our Goals & Philosophy";

 var lnk_08 = "submit_feedback.html'>Submit Feedback";

 var lnk_09 = "contact_the_tlp_group.html'>Contact The TLP Group";

 var lnk_10 = "index.html'>Home Page";

 var html_a = "</a>][<a href='";

 var html_b = "</a>]<br>[<a href='";

 var html_c = "</a>]<br>&nbsp;";

 var html_1 = code_1 + code_2;

 var html_2 = lnk_01 + html_a + lnk_02 + html_a + lnk_03 + html_a;

 var html_3 = lnk_04 + html_a + lnk_05 + html_b + lnk_06 + html_a;

 var html_4 = lnk_07 + html_a + lnk_08 + html_a + lnk_09 + html_a;

 links_html = html_1 + html_2 + html_3 + html_4 + lnk_10 + html_c;

 }



function header_html(ph_page_title, ph_menu_item) {

 var html_1 = body_html() + "<layer visibility='hidden'><table border='0' cell";

 var html_2 = "padding='0' cellspacing='0' class='page_content'><tr><td>";

 var html_3 = flash_img(ph_page_title);

 select_menu_item(ph_menu_item);

 return html_1 + html_2 + html_3;

 }



function http_response_header() {

 var html_1 = "<meta name='resource-type' content='document'><meta http-equiv=";

 var html_2 = "'author' content='Richard Ashmore'><meta http-equiv='description' co";

 var html_3 = "ntent='TLP Online'><meta http-equiv='keywords' content='";

 var html_4 = "'><meta http-equiv='distribution' content='Global'>";

 var kwd_01 = "TLP, TLP express, TLP express Delivery, TLP express delivery se";

 var kwd_02 = "rvices, pallet, pallet express, pallet express systems, pallet ";

 var kwd_03 = "express systems ltd, bowers, bowers distribution, bowers distri";

 var kwd_04 = "bution ltd, depot, deliver, delivery, dispatch, distribution, p";

 var kwd_05 = "arcel, parcels, pallets, freight, carrier, carriers, carriage, ";

 var kwd_06 = "shipments, express, economy, transport, shipping, 9am, 10am, ne";

 var kwd_07 = "xt day, next day, depot, parkhouse, UK, national, POD, Proof of";

 var kwd_08 = " delivery, courier, collection, over night, overnight, over nit";

 var kwd_09 = "e, overnite, same day, sameday, worldwide, global, panic, timed";

 var kwd_10 = ", timed delivery, timed delivery, fragile, storage, logistics, ";

 var kwd_11 = "packages";

 var return_1 = html_1 + html_2 + html_3 + kwd_01 + kwd_02 + kwd_03 + kwd_04;

 var return_2 = kwd_05 + kwd_06 + kwd_07 + kwd_08 + kwd_09 + kwd_10 + kwd_11;

 return return_1 + return_2 + html_4;

 }



function initialise() {

 if (ua_supported != "TRUE") {

  unsupported_browser();

  return false;

  }

 return true;

 }



function make_menu_rgn(rgn_id, rgn_page) {

 var rgn_top = (rgn_id * 26) + 10;

 var rgn_btm = (rgn_id * 26) + 32;

 var html_1 = "<area coords='0, " + rgn_top + ", 197, " + rgn_btm + "' ";

 var html_2 = "href='" + rgn_page + ".html' target='content'>";

 return html_1 + html_2;

 }



function process_view_context() {

 if (parent.window.location == window.location) {

  if (window.document.title == "TLP Website Menu Bar") {

   window.location = "index.html";

   }

  get_links_html();

  }

 }



function resize_intro() {

 if (user_agent == wb_ie) ie_resize_intro();

 if (user_agent == wb_ns) ns_resize_intro();

 }



function select_menu_item(menu_item) {

 if (user_agent == wb_ie) ie_select_menu_item(menu_item);

 }



function validate_resolution() {

 var help_1 = "This site is designed to be viewed on monitors with a minimum s";

 var help_2 = "creen resolution of 800x600 pixels, and may be displayed incorr";

 var help_3 = "ectly at lower resolutions.";

 if (screen.width < 800) alert(help_1 + help_2 + help_3);

 }



function redirect_intro() {

 window.location = "home.html";

 }



function unsupported_browser() {

 window.location = "unknown_ua.html";

 }







 //-----------------------------------------------------------------------------

// Internet Explorer Specific Funcions



function ie_menubar_ready(menu_item) {

 if (parent.menubar.window.document.readyState == "complete") return true;

 else {

  to_check_menu = setTimeout("ie_select_menu_item(" + menu_item + ")", 10);

  }

 }



function ie_onload_index() {

 to_redirect_timer = setInterval("update_redirect_timer()", 1000);

 }



function ie_resize_intro() {

 var intro_size

 intro_size = "71%";

 if (screen.width == 1024) intro_size = "79%";

 window.id_intro.width = intro_size;

 window.id_intro.height = intro_size;

 }



function ie_select_menu_item(menu_item) {

 if (flash_enhanced()) {

  if (ie_menubar_ready(menu_item)) {

   parent.menubar.window.select_menu_item(menu_item);

   }

  }

 }







 //-----------------------------------------------------------------------------

// Netscape Specific Funcions



function ns_onload_menubar() {

 document.layers[0].left = -1;

 document.layers[0].top = -1;

 document.layers[0].visibility = "inherit";

 }



function ns_onload_site_content() {

 ns_reposition_content_borders();

 }



function ns_reposition_content_borders(){

 document.layers[0].left = 9;

 document.layers[0].top = -1;

 document.layers[0].visibility = "inherit";

 }



function ns_resize_intro() {

 var intro_top

 intro_top = (screen.height - 546)/2;

 document.layers[0].top = intro_top;

 document.layers[0].visibility = "inherit";

 }





