// HM - Required
if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

function DirecSearch()
{
   var searchTxt = document.pdl.Search_Text.value;
   var url = 'http://pdlaka01.tsl.telus.com/pdl/search.asp' + '?Type=Name&Search_Text='+searchTxt;
   hWnd = window.open(url,"PDLWindow","left=0,top=0,location=yes,menubar=yes,toolbar=yes,status=yes,scrollbars=yes,resizable=yes");
}

// TELUS_buildNav - Global Nav builder
function TELUS_buildNav(){
var imagePath = "http://global-nav.tsl.telus.com/images/";

var globalNav = "<table border='0' cellpadding='0' cellspacing='0' width='760'><tr><td><img src='../js/" + imagePath + "p.gif' height='4' width='100%'><br>";

globalNav += "</td></tr></table>";
globalNav += "<style type=\"text/css\" style='white-space:nowrap'> #globalnav {height:16px;display:inline;margin:0px;padding:0px;} #globalnav .nav {background-image: url("+imagePath+"bg.gif);padding: 0px 0px 6px 0px;} #globalnav a {font-family:Arial;color:#FFFFFF;font-size:12px;text-decoration:none;font-weight: bold;}</style>";
globalNav += "<div id=globalnav><table border='0' cellpadding='0' cellspacing='0' align='left'><tr><td><img src='../js/"+imagePath+"bg_left.gif' ></td><td valign='top' nowrap class='nav' style='height:24px'><span style='visibility:hidden' id='fixNSBug'></span><span id='target1' style='width:0;position:relative'></span><img src='../js/"+imagePath+"p.gif' width='8' height='1' alt='' align='absmiddle' >";
globalNav += "<a  href='http://habitat.tmi.telus.com/' onFocus='blur()'>home</a><img src='../js/"+imagePath+"navG_sep.gif'  alt='' align='absmiddle'>";
globalNav += "<a  href='javascript:void(0)' onFocus='blur()' onMouseOver=\"HM_f_PopUp('elMenu1',event)\" onMouseOut=\"HM_f_PopDown('elMenu1')\">business units</a><img src='../js/"+imagePath+"navG_sep.gif'  alt='' align='absmiddle'>";
globalNav += "<a  href='javascript:void(0)' onFocus='blur()' onMouseOver=\"HM_f_PopUp('elMenu2',event)\" onMouseOut=\"HM_f_PopDown('elMenu2')\">myHR</a><img src='../js/"+imagePath+"navG_sep.gif'  alt='' align='absmiddle'>";
globalNav += "<a  href='javascript:void(0)' onFocus='blur()' onMouseOver=\"HM_f_PopUp('elMenu3',event)\" onMouseOut=\"HM_f_PopDown('elMenu3')\">services</a><img src='../js/"+imagePath+"navG_sep.gif'  alt='' align='absmiddle'  >";
globalNav += "<a  href='javascript:void(0)' onFocus='blur()' onMouseOver=\"HM_f_PopUp('elMenu4',event)\" onMouseOut=\"HM_f_PopDown('elMenu4')\">fun</a><img src='../js/"+imagePath+"navG_sep.gif'  alt='' align='absmiddle'>";
globalNav += "<a  href='javascript:void(0)' onFocus='blur()' onMouseOver=\"HM_f_PopUp('elMenu5',event)\" onMouseOut=\"HM_f_PopDown('elMenu5')\">help</a>";
globalNav += "</td><td><img src='../js/"+imagePath+"bg_right.gif' ></td></tr></table>";
globalNav += "<span style='white-space:nowrap'>";
globalNav += "<form style='margin:0px;padding:0px;display:inline;vertical-align:top;white-space:nowrap' name='pdl' method='post' class='bodytext0' id='cardssearchtop' action=\"javascript:DirecSearch()\">";
globalNav += "<img src='../js/"+imagePath+"nav-teamdir.gif'>";
globalNav += "<input type='text' size='10' value='' name='Search_Text'> ";
globalNav += "<input name='cardssearchbutton' id='cardssearch' type='image' border='0' src='../js/"+imagePath+"go.gif'></form>";
globalNav += "</span></div>";

return(globalNav);
}

function TELUS_showCopyright(){
var myDate = new Date();
var myYear= myDate.getYear();
var out = '';

// solve Y2K problem
if((myYear>=0)&&(myYear<=1900)){
    myYear=myYear+1900;
}
out = "© TELUS";
return out;
}

function TELUS_showContact(name,email){
if (TELUS_showContact.arguments.length>0){
var myURL = window.document.URL;
var out = "<b>Webmaster</b>: " + name + " <a href=\"mailto:" + email + "?subject=Web site inquiry from: " + myURL + "\">" + email +"</a>";
return out;
} else { return " ";}

}
