
var url = window.location.href;
var filename=(url.substring(url.lastIndexOf("\/")+1,url.lastIndexOf("\.")))
var filename=(url.substring(url.lastIndexOf("\/")+1,url.lastIndexOf("\.")))
var section = filename.slice(0,2);
//document.write("April 16th 2009: This is coding information showing which section the page is linked to. Please ignore.<br>Page: ");
//document.write(filename);
//document.write(" Section: ");
//document.write(section);


// This code puts the header and navigation at the top of each page of the T&B website
// The code highlites the correct button according to file name.
// Coding in this way allows to modify the header across the whole site changing only
// this page.

// in = Index page
// p2 = About us
// p3 = Finance
// p4 = Benefits
// p5 = Project Experience
// p6 = Customer Care
// p7 = Environmental
// p8 = Safety & Training
// p9 = Contact Us
// Ne = News


document.write('<table width="722" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr><td colspan="10"><IMG NAME="HOME1" SRC="images/shim.gif" WIDTH=722 HEIGHT=20 BORDER=0><BR><IMG NAME="HOME1" SRC="images/header_base_01.gif" WIDTH=722 HEIGHT=13 BORDER=0></td></tr>');
document.write('<tr><td colspan="10"><IMG NAME="HOME2" SRC="images/header_base_02.gif" WIDTH=327 HEIGHT=48 BORDER=0><IMG NAME="HOME3" SRC="images/header_base_03.gif" WIDTH=282 HEIGHT=48 BORDER=0><IMG NAME="HOMEanim" SRC="images/logo_animation.gif" WIDTH=113 HEIGHT=48 BORDER=0><br><IMG NAME="HOME5" SRC="images/header_base_05.gif" WIDTH=327 HEIGHT=17 BORDER=0><IMG NAME="HOME6" SRC="images/header_base_06.gif" WIDTH=395 HEIGHT=17 BORDER=0></td></tr>');
document.write('<tr>');

if (section=="in"){
document.write('<TD WIDTH=50 HEIGHT=25><a href="index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'home\',\'\',\'images/header_over_07.gif\',1)"><img src="images/header_over_07.gif" name="home" width="50" height="25" border="0"></a></TD>');
}else{
document.write('<TD WIDTH=50 HEIGHT=25><a href="index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'home\',\'\',\'images/header_over_07.gif\',1)"><img src="images/header_base_07.gif" name="home" width="50" height="25" border="0"></a></TD>');
}


if (section=="p2"){
document.write('<TD WIDTH=62 HEIGHT=25><a href="p2a.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'about_us\',\'\',\'images/header_over_08.gif\',1)"><img src="images/header_over_08.gif" name="about_us" width="62" height="25" border="0"></a></TD>');
}else{
document.write('<TD WIDTH=62 HEIGHT=25><a href="p2a.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'about_us\',\'\',\'images/header_over_08.gif\',1)"><img src="images/header_base_08.gif" name="about_us" width="62" height="25" border="0"></a></TD>');
}

if (section=="p3"){
document.write('<TD WIDTH=52 HEIGHT=25><a href="p3a.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'finance\',\'\',\'images/header_over_09.gif\',1)"><img src="images/header_over_09.gif" name="finance" width="52" height="25" border="0"></a></TD>');
}else{
document.write('<TD WIDTH=52 HEIGHT=25><a href="p3a.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'finance\',\'\',\'images/header_over_09.gif\',1)"><img src="images/header_base_09.gif" name="finance" width="52" height="25" border="0"></a></TD>');
}

if (section=="p4"){
document.write('<TD WIDTH=55 HEIGHT=25><a href="p4a.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'benefits\',\'\',\'images/header_over_10.gif\',1)"><img src="images/header_over_10.gif" name="benefits" width="55" height="25" border="0"></a></TD>');
}else{
document.write('<TD WIDTH=55 HEIGHT=25><a href="p4a.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'benefits\',\'\',\'images/header_over_10.gif\',1)"><img src="images/header_base_10.gif" name="benefits" width="55" height="25" border="0"></a></TD>');
}

if (section=="p5"){
document.write('<TD WIDTH=108 HEIGHT=25><a href="p5.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'project\',\'\',\'images/header_over_11.gif\',1)"><img src="images/header_over_11.gif" name="project" width="108" height="25" border="0"></a></TD>');
}else{
document.write('<TD WIDTH=108 HEIGHT=25><a href="p5.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'project\',\'\',\'images/header_over_11.gif\',1)"><img src="images/header_base_11.gif" name="project" width="108" height="25" border="0"></a></TD>');
}

if (section=="p6"){
document.write('<TD WIDTH=91 HEIGHT=25><a href="p6a.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'customer\',\'\',\'images/header_over_12.gif\',1)"><img src="images/header_over_12.gif" name="customer" width="91" height="25" border="0"></a></TD>');
}else{
document.write('<TD WIDTH=91 HEIGHT=25><a href="p6a.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'customer\',\'\',\'images/header_over_12.gif\',1)"><img src="images/header_base_12.gif" name="customer" width="91" height="25" border="0"></a></TD>');
}

if (section=="p7"){
document.write('<TD WIDTH=88 HEIGHT=25><a href="p7a.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'environ\',\'\',\'images/header_over_13.gif\',1)"><img src="images/header_over_13.gif" name="environ" width="88" height="25" border="0"></a></TD>');
}else{
document.write('<TD WIDTH=88 HEIGHT=25><a href="p7a.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'environ\',\'\',\'images/header_over_13.gif\',1)"><img src="images/header_base_13.gif" name="environ" width="88" height="25" border="0"></a></TD>');
}

if (section=="p8"){
document.write('<TD WIDTH=103 HEIGHT=25><a href="p8a.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'safety\',\'\',\'images/header_over_14.gif\',1)"><img src="images/header_over_14.gif" name="safety" width="103" height="25" border="0"></a></TD>');
}else{
document.write('<TD WIDTH=103 HEIGHT=25><a href="p8a.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'safety\',\'\',\'images/header_over_14.gif\',1)"><img src="images/header_base_14.gif" name="safety" width="103" height="25" border="0"></a></TD>');
}

if (section=="p9"){
document.write('<TD WIDTH=69 HEIGHT=25><a href="p9a.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'contact\',\'\',\'images/header_over_15.gif\',1)"><img src="images/header_over_15.gif" name="contact" width="69" height="25" border="0"></a></TD>');
}else{
document.write('<TD WIDTH=69 HEIGHT=25><a href="p9a.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'contact\',\'\',\'images/header_over_15.gif\',1)"><img src="images/header_base_15.gif" name="contact" width="69" height="25" border="0"></a></TD>');
}

if (section=="Ne"){
document.write('<TD WIDTH=44 HEIGHT=25><a href="http://tandb.messaging.co.uk/__802572AC0036286F.nsf/display/Newsarchive09.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'news\',\'\',\'images/header_over_16.gif\',1)"><img src="images/header_over_16.gif" name="news" width="44" height="25" border="0"></a></TD>');
}else{
document.write('<TD WIDTH=44 HEIGHT=25><a href="http://tandb.messaging.co.uk/__802572AC0036286F.nsf/display/Newsarchive09.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'news\',\'\',\'images/header_over_16.gif\',1)"><img src="images/header_base_16.gif" name="news" width="44" height="25" border="0"></a></TD>');
}

document.write('</tr>');
document.write('</table>');
