//Contents for About us
var tmenu2=new Array()
tmenu2[0]='<a href="http://www.scottwilson.com/about_us/headquarters.aspx">Headquarters</a>'
tmenu2[1]='<a href="http://www.scottwilson.com/about_us/corporate_statement.aspx">Corporate Statement</a>'
tmenu2[2]='<a href="http://www.scottwilson.com/about_us/governance.aspx">Governance</a>'
tmenu2[3]='<a href="http://www.scottwilson.com/about_us/social_responsibility.aspx">Social Responsibility</a>'
tmenu2[4]='<a href="http://www.scottwilson.com/about_us/company_facts.aspx">Company Facts</a>'
tmenu2[5]='<a href="http://www.scottwilson.com/about_us/main_board.aspx">Main Board</a>'
tmenu2[6]='<a href="http://www.scottwilson.com/about_us/executive_committee.aspx">Executive Committee</a>'
tmenu2[7]='<a href="http://www.scottwilson.com/about_us/awards.aspx">Awards</a>'
tmenu2[8]='<a href="http://www.scottwilson.com/about_us/un_global_compact.aspx">UN Global Compact</a>'


//Contents for News
var tmenu3=new Array()
tmenu3[0]='<a href="http://www.scottwilson.com/news/press_releases.aspx">Press Releases</a>'
tmenu3[1]='<a href="http://www.scottwilson.com/news/past_press_releases.aspx">Past Press Releases</a>'
tmenu3[2]='<a href="http://www.scottwilson.com/news/notes_to_editors.aspx">Notes To Editors</a>'
tmenu3[3]='<a href="http://www.scottwilson.com/news/rss_feed.aspx">RSS Feed</a>'
tmenu3[4]='<a href="http://www.scottwilson.com/news/press_team.aspx">Press Team</a>'

//Contents for Investors
var tmenu4=new Array()
tmenu4[0]='<a href="/company-summary">Financial Information</a>'
tmenu4[1]='<a href="/prices-delayed">Share Price</a>'
tmenu4[2]='<a href="/significant-shareholders">Shareholder Information</a>'
tmenu4[3]='<a href="/regulatory-news">News &amp; Alerts</a>'
tmenu4[4]='<a href="/reports">Company Reports and Documents</a>'
tmenu4[5]='<a href="/presentations">Presentations</a>'


//Contents for Sectors
var tmenu5=new Array()
tmenu5[0]='<a href="http://www.scottwilson.com/sectors/transportation.aspx">Transportation</a>'
tmenu5[1]='<a href="http://www.scottwilson.com/sectors/buildings__infrastructure.aspx">Buildings &amp; Infrastructure</a>'
tmenu5[2]='<a href="http://www.scottwilson.com/sectors/environment.aspx">Environment</a>'
tmenu5[3]='<a href="http://www.scottwilson.com/sectors/natural_resources.aspx">Natural Resources</a>'


//Contents for Contact Us
var tmenu6=new Array()
tmenu6[0]='<a href="http://www.scottwilson.com/contact_us/africa.aspx">Africa</a>'
tmenu6[1]='<a href="http://www.scottwilson.com/contact_us/asia_pacific.aspx">Asia Pacific</a>'
tmenu6[2]='<a href="http://www.scottwilson.com/contact_us/australia.aspx">Australia</a>'
tmenu6[3]='<a href="http://www.scottwilson.com/contact_us/europe.aspx">Europe</a>'
tmenu6[4]='<a href="http://www.scottwilson.com/contact_us/middle_east.aspx">Middle East</a>'
tmenu6[5]='<a href="http://www.scottwilson.com/contact_us/south_asia.aspx">South Asia</a>'
tmenu6[6]='<a href="http://www.scottwilson.com/contact_us/uk__ireland.aspx">UK &amp; Ireland</a>'
tmenu6[7]='<a href="http://www.scottwilson.com/contact_us/north_america.aspx">North America</a>'


//Contents for International
var tmenu7=new Array()
tmenu7[0]='<a href="http://www.scottwilson.com/international/china__hong_kong.aspx">China &amp; Hong Kong</a>'
tmenu7[1]='<a href="http://www.scottwilson.com/international/europe.aspx">Europe</a>'

//var tmenu5=new Array()
//tmenu5[0]='<a href="#"> Show Employment Form</a>'


var menuwidth='120px' //default menu width
var menubgcolor='#eee8e8'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all


if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"><div class="in ltin tpin"><p></p></div></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu1(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu1(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu1()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu1(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu1(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu





function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

