
﻿ var Project=Class.create();Project.prototype={initialize:function(data1,data2,data3,data4,data5,data6,data7,data8,oSummary,oImageType,oLeed,oArchitectCredit,image1Path,image2Path,image3Path,image4Path,image5Path){this.id=data1.strip();this.practiceAreaId=data2.strip();this.areaId=data3.strip();this.subAreaId=data4.strip();this.itemId=data5.strip();this.name=data6.strip();this.location=data7.strip();this.description=data8;this.summary=oSummary;this.leed=oLeed;this.architectCredit=oArchitectCredit;this.path=image1Path;this.images=[];var i=0;if(image1Path!=null){this.images[i]=image1Path;i++;}
if(image2Path!=null){this.images[i]=image2Path;i++;}
if(image3Path!=null){this.images[i]=image3Path;i++;}
if(image4Path!=null){this.images[i]=image4Path;i++;}
if(image5Path!=null){this.images[i]=image5Path;i++;}
this.imageType=oImageType;},mainPageThumbnail:function(){var mpt=(this.path!=null)?this.path.gsub('.jpg','____.jpg'):'';return mpt;},mainPageDetailImage:function(){var mpt=(this.path!=null)?this.path.gsub('.jpg','___.jpg'):'';return mpt;},projectPageThumbnail:function(imageNumber){var mpt=(this.images[imageNumber]!=null)?this.images[imageNumber].gsub('.jpg','__.jpg'):'';return mpt;},projectPageDetailImage:function(imageNumber){var mpt=(this.images[imageNumber]!=null)?this.images[imageNumber].gsub('.jpg','_.jpg'):'';return mpt;}}
var LocationItem=Class.create();LocationItem.prototype={initialize:function(data1,data2,data3,data4,data5,oAddress,oPhoneNumbers,oImagePath,oLeftPosition,oTopPosition,lng,lat,cName,cTitle,cEmail,cImage,oTitle,oAirport){this.name=data1;this.type=data2;this.id=data3;this.country=data4;this.province=data5;this.address=oAddress;this.phoneNumbers=oPhoneNumbers;this.officeImage=oImagePath;this.officeLeft=oLeftPosition;this.officeTop=oTopPosition;this.latitude=parseFloat(lat);this.longitude=parseFloat(lng);this.contactName=cName;this.contactTitle=cTitle;this.contactEmail=cEmail;this.officeTitle=oTitle;this.contactImage=cImage;this.airport=oAirport;}}
var NewsReleaseItem=Class.create();NewsReleaseItem.prototype={initialize:function(oId,oTitle,oDate,oDescription,oArchived,oImagePath,oLeftValue,oItemNumber){this.id=oId;this.title=oTitle;this.description=oDescription;this.date=oDate;this.archived=oArchived;this.imagePath=oImagePath;this.leftValue=oLeftValue;this.itemNumber=oItemNumber;}}
var AnnouncementItem=Class.create();AnnouncementItem.prototype={initialize:function(oId,oTitle,oDate,oDescription,oArchived,oImagePath){this.id=oId;this.title=oTitle;this.description=oDescription;this.date=oDate;this.archived=oArchived;this.imagePath=oImagePath;}}
var ContentItem=Class.create();ContentItem.prototype={initialize:function(oId,oTitle,oSubTitle,oText1){this.id=oId;this.title=oTitle;this.description=oText1;this.subtitle=oSubTitle;}}
var IRContentItem=Class.create();IRContentItem.prototype={initialize:function(oId,oTitle,oText1,oText2,oText3,oIsHTML){this.id=oId;this.title=oTitle;this.text1=oText1;this.text2=oText2;this.text3=oText3;this.isHTML=oIsHTML;}}
var IRLocationItem=Class.create();IRLocationItem.prototype={initialize:function(oId,oLeftPosition){this.id=oId;this.leftPosition=oLeftPosition;}}
var ContentLinkItem=Class.create();ContentLinkItem.prototype={initialize:function(oId,oLeftPosition){this.id=oId;this.leftPosition=oLeftPosition;}}
var TestimonialItem=Class.create();TestimonialItem.prototype={initialize:function(oId,oName,oTitle,oAnswer1,oAnswer2,oAnswer3,oAnswer4,oAnswer5,oAnswer6,oAnswer7,oAnswer8,oAnswer9,oLargeImage,thumbnailImage){this.id=oId;this.name=oName;this.title=oTitle;this.answer1=oAnswer1;this.answer2=oAnswer2;this.answer3=oAnswer3;this.answer4=oAnswer4;this.answer5=oAnswer5;this.answer6=oAnswer6;this.answer7=oAnswer7;this.answer8=oAnswer8;this.answer9=oAnswer9;this.thumbnail=thumbnailImage;this.largeImage=oLargeImage;}}
var SectorItem=Class.create();SectorItem.prototype={initialize:function(oId,oName){this.id=oId;this.name=oName;}}
var ServiceItem=Class.create();ServiceItem.prototype={initialize:function(oId,oName){this.id=oId;this.name=oName;}}
var PageContent=Class.create();PageContent.prototype={initialize:function(data1,data2,data3,data4,data5,data6,data7){this.id=data1.strip();this.practiceAreaId=data2.strip();this.areaId=data3.strip();this.subAreaId=data4.strip();this.itemId=data5.strip();this.title=data6.strip();this.description=data7.strip();}}
var AboutContent=Class.create();AboutContent.prototype={initialize:function(oId,oTitle,oDescription,ofilePath,ofilePath2,ofilePath3){this.id=oId;this.title=oTitle;this.description=oDescription;this.imagePath=ofilePath;this.imagePath2=ofilePath2;this.imagePath3=ofilePath3;}}
var AwardLinkItem=Class.create();AwardLinkItem.prototype={initialize:function(oYear,oLeft){this.left=oLeft;this.year=oYear;}}
var AwardContentItem=Class.create();AwardContentItem.prototype={initialize:function(oId,oProjectName,oYear,oPlace,oAwardSubmission,oAwardName,oSponsoringOrg,oAssociateArchitect){this.id=oId;this.projectname=oProjectName;this.year=oYear;this.place=oPlace;this.awardsubmission=oAwardSubmission;this.awardname=oAwardName;this.sponsoringorg=oSponsoringOrg;this.associatearchitect=oAssociateArchitect;}}
var ECContentItem=Class.create();ECContentItem.prototype={initialize:function(oName,oDate,oType,oList){this.name=oName;this.date=oDate;this.type=oType;this.list=oList;}}
var FRDocumentItem=Class.create();FRDocumentItem.prototype={initialize:function(oTitle,oFile,oYear,oIndent){this.title=oTitle;this.filepath=oFile;this.year=oYear;this.indent=oIndent;}}
var FAQItem=Class.create();FAQItem.prototype={initialize:function(oQuestion,oAnswer){this.question=oQuestion;this.answer=oAnswer;}}
var DocumentItem=Class.create();DocumentItem.prototype={initialize:function(oTitle,oFile){this.title=oTitle;this.filepath=oFile;}}
var YearItem=Class.create();YearItem.prototype={initialize:function(oId,oName){this.id=oId;this.name=oName;}}
var ImageItem=Class.create();ImageItem.prototype={initialize:function(oId,oTitle,oThumbnail,oLargeImage){this.id=oId;this.title=oTitle;this.thumbnail=oThumbnail;this.largeImage=oLargeImage;}}
var AcquisitionItem=Class.create();AcquisitionItem.prototype={initialize:function(oName,oLocation,oDate,oSegments){this.name=oName;this.location=oLocation;this.date=oDate;this.segments=oSegments;}}
var ApplicationTipItem=Class.create();ApplicationTipItem.prototype={initialize:function(oNumber,oQuestion,oAnswer){this.number=oNumber;this.question=oQuestion;this.answer=oAnswer;}}
var SystemContentItem=Class.create();SystemContentItem.prototype={initialize:function(oTitle,oContent){this.title=oTitle;this.content=oContent;}}
function getFullDateString(date){var dateArray=date.split("/");var year=dateArray[2].substring(0,4);var date=dateArray[1];var month=parseInt(dateArray[0]);var monthName=(month==1)?'January':(month==2)?'February':(month==3)?'March':(month==4)?'April':(month==5)?'May':(month==6)?'June':(month==7)?'July':(month==8)?'August':(month==9)?'September':(month==10)?'October':(month==11)?'November':'December';return monthName+' '+date+', '+year;}
var DirectorItem=Class.create();DirectorItem.prototype={id:null,name:null,position:null,title:null,location:null,description:null,smallImage:null,largeImage:null,initialize:function(id,name,title,position,location,description,smallImage,largeImage){this.id=id;this.name=name;this.title=title;this.position=position;this.location=location;this.description=description;this.smallImage=smallImage;this.largeImage=largeImage;}}
var GovernanceItem=Class.create();GovernanceItem.prototype={text:null,description:null,initialize:function(text,description){this.text=text;this.description=description;}}
function getFirstChildNodeValue(listItem,id){var nv=listItem.getElementsByTagName(id)[0];if(nv==null){return"";}
else{var curValue='';if(nv.firstChild!=null)
{var i=0;while(i<nv.childNodes.length)
{curValue+=nv.childNodes[i].nodeValue;i++;}}
return curValue;}}
﻿Event.observe(window,'load',function(){var hnp=$('headerNavPanel');Event.observe(hnp,'mouseover',moNav,false);Event.observe(hnp,'mouseout',moNav,false);Event.observe(hnp,'click',clickNav,false);var searchButton=$('searchButton');if(searchButton){Event.observe(searchButton,'mouseover',moButton,false);Event.observe(searchButton,'mouseout',moButton,false);}
var searchButton=$('homeButton');if(searchButton){Event.observe(searchButton,'mouseover',moButton,false);Event.observe(searchButton,'mouseout',moButton,false);}
var hl=$('headerLogo');if(hl!=null)
Event.observe(hl,'click',goHome,false);});function goHome(e){document.location.href='default.htm';}
var scrolling=false;function moButton(e){var item=(e.fromElement!=null)?e.fromElement:e.target;if(item.id=='')
item=(e.toElement!=null)?e.toElement:e.rangeParent;if(item.id=='searchButton'){item.src=(e.type=='mouseover')?'../images/button_find_hover.gif':'../images/button_find.gif';}
else if(item.id=='homeButton'){item.src=(e.type=='mouseover')?'../images/homebuttonhover.gif':'../images/homebutton.gif';}}
function moNavPanel(e){var item=(e.fromElement!=null)?e.fromElement:e.target;var toElement=(e.toElement!=null)?e.toElement:e.rangeParent;if((toElement!=null)&&(toElement.id!=null)&&(toElement.id.indexOf('headerNavPanel')>-1)){return;}
if((item.id=='headerNavPanel')&&(toElement.id.indexOf('hnp')==-1)){if(!scrolling){scrolling=true;var navPanel=$('headerNavPanel');if(navPanel.style.left!='-680px'){navPanel.morph({left:'-680px'},{duration:1.2,queue:{scope:'hnScope',position:'with-last'}});$('hnpControl').src='../images/buttons/npcLeft.png';}
scrolling=false;}}}
function moNav(e){var item=(e.srcElement!=null)?e.srcElement:e.target;if((item.id=='headerNavPanel')||(item.id=='hnpControl'))return;var itemId=parseInt(item.id.gsub('hnpItemLabel',''));var itemSet=(itemId<=5)?'ms':(itemId<=8)?'cin':'la';var hnpItem=$('hnpItem'+itemId);var replaceImg,origImg;if(itemSet=='ms'){replaceImg=(item.className=='activeNavLabel')?'../images/buttons/navBoxBlue.gif':'../images/buttons/navBoxBlueHover.gif';origImg=(item.className=='activeNavLabel')?'../images/buttons/navBoxBlueHover.gif':'../images/buttons/navBoxBlue.gif';}
else if(itemSet=='cin'){replaceImg=(item.className=='activeNavLabel')?'../images/buttons/navBoxRed.gif':'../images/buttons/navBoxRedHover.gif';origImg=(item.className=='activeNavLabel')?'../images/buttons/navBoxRedHover.gif':'../images/buttons/navBoxRed.gif';}
else if(itemSet=='la'){replaceImg=(item.className=='activeNavLabel')?'../images/buttons/navBoxOrange.gif':'../images/buttons/navBoxOrangeHover.gif';origImg=(item.className=='activeNavLabel')?'../images/buttons/navBoxOrangeHover.gif':'../images/buttons/navBoxOrange.gif';}
if(item.id.indexOf('hnpItemLabel')>-1){if(!item.id.gsub)
return;var id=item.id.gsub('hnpItemLabel','');if(itemSet=='ms'){hnpItem.src=(e.type=='mouseover')?replaceImg:origImg;item.style.color=(e.type=='mouseover')?'#6699cc':'#00457C';}
else if(itemSet=='cin'){hnpItem.src=(e.type=='mouseover')?replaceImg:origImg;item.style.color=(e.type=='mouseover')?'#ff0033':'#840c2c';}
else if(itemSet=='la'){hnpItem.src=(e.type=='mouseover')?replaceImg:origImg;item.style.color=(e.type=='mouseover')?'#ff6600':'#EAA758';}}}
function clickNav(e){var item=(e.srcElement!=null)?e.srcElement:e.target;if((item.id=='hnpControl')||(item.id=='headerNavPanel'))return;var curId=(item.id!=null)?item.id.substring(item.id.length-1,item.id.length):0;switch(curId){case'6':document.location.href='careers.html';break;case'7':document.location.href='investorrelations.html';break;case'8':document.location.href='news.html';break;case'9':document.location.href='locationmap.html';break;case'0':document.location.href='aboutus.html';break;default:document.location.href='marketsector.html?paid='+curId;break;}}
var cScroller,pScroller;function showContactPanel(e){var item=(e.srcElement!=null)?e.srcElement:e.target;if((item.id=='footerLinks')||(item.id=='portalsLink'))return;var dhp=$('detailHoverPanel');if((item.id=='privacyLink')||(item.id=='copyrightLink')){if(sysItems.length==0){getPrivacyPolicy();}}
if(item.id=='homeLink'){document.location.href='default.htm';return;}
else if((item.id=='privacyLink')||(item.id=='privacyPolicyLink')){if(dhp.style.top=='26px')
$('dhpTextPanelWrapper').morph({top:'-430px'},{duration:0.8,queue:{scope:'showScope',position:'end'}});else
$('dhpTextPanelWrapper').style.top='-430px';if(pScroller==null)
pScroller=new Control.Scroller($('privacyContent'),$('pccHandle'),$('pccTrack'),{visibleHeight:335,delta:5});pScroller.slider.setValue(0,0);}
else if((item.id=='contactUsPanelLink')||(item.id=='contactUsLink')){if(dhp.style.top=='26px')
$('dhpTextPanelWrapper').morph({top:'-860px'},{duration:0.8,queue:{scope:'showScope',position:'end'}});else
$('dhpTextPanelWrapper').style.top='-860px';}
else if(item.id=='copyrightLink'){if(dhp.style.top=='26px')
$('dhpTextPanelWrapper').morph({top:'0px'},{duration:0.8,queue:{scope:'showScope',position:'end'}});else
$('dhpTextPanelWrapper').style.top='0px';if(cScroller==null)
cScroller=new Control.Scroller($('copyrightContent'),$('cccHandle'),$('cccTrack'),{visibleHeight:335,delta:5});cScroller.slider.setValue(0,0);}
if(dhp.style.top!='26px'){dhp.morph({top:'26px'},{duration:0.8,queue:{scope:'showScope',position:'end'}});$('dhpCover').style.left='0px';}}
function moFooterLinks(e){var item=(e.srcElement!=null)?e.srcElement:e.target;if(item.id=='')return;if(item.id=='footerLinks')return;item.style.color=(e.type=='mouseover')?'#EAA758':(item.id=='privacyPolicyLink')?'blue':'#AFAFAF';}
function closeContactWindow(){var dhp=$('detailHoverPanel');if(dhp.style.top=='26px'){dhp.morph({top:'1030px'},{duration:0.7,queue:{scope:'showScope',position:'end'}});$('dhpCover').style.left='1030px';}}
Event.observe('searchButton','click',searchSubmit,false);Event.observe('homeButton','click',homeSubmit,false);function searchSubmit(){var searchText=document.getElementById('searchInput').value;if(searchText!='')
{document.location.href="sitesearch.html?s="+searchText;}
return false;}
function homeSubmit(){document.location.href="/default.htm";}
function mo_ContactClose(e){var item=(e.srcElement!=null)?e.srcElement:e.target;item.style.color=(e.type=='mouseover')?'#00457C':'#fff';}
function mo_ContactSubmit(e){var item=(e.srcElement!=null)?e.srcElement:e.target;item.style.color=(e.type=='mouseover')?'#00457c':'#fff';}
function submitContactForm(e){var item=(e.srcElement!=null)?e.srcElement:e.target;var subject=$('cfSubject');var firstName=$('cfFirstName');var lastName=$('cfLastName');var email=$('cfEmail');var city=$('cfCity');var province=$('cfProvince');var ms=$('cfMarketSector');var marketsectorValue=(ms!=null)?ms.value:'';var gs=$('cfSubject');var generalSubjectValue=(gs!=null)?gs.value:'';var feedback=$('cfFeedback');if((subject.value!='')&&(firstName.value!='')&&(lastName.value!='')&&(email.value!='')&&(city.value!='')&&(province.value!='')&&((marketsectorValue!='')||(generalSubjectValue!=''))&&(feedback.value!='')){var itemId=item.id;var toField='';var subjectValue=subject.value.stripScripts().stripTags();var firstNameValue=firstName.value.stripScripts().stripTags();var lastNameValue=lastName.value.stripScripts().stripTags();var emailValue=email.value.stripScripts().stripTags();var cityValue=city.value.stripScripts().stripTags();var provinceValue=province.value.stripScripts().stripTags();var feedbackValue=feedback.value.stripScripts().stripTags();if(!validEmail(emailValue)){alert('Invalid Email address. Please enter a valid email address.');return;}
var qs='';if((ms==null)||((subject.style.left=='148px')&&(generalSubjectValue!=''))){toField='info@stantec.com';qs='subject='+generalSubjectValue+'&firstName='+firstNameValue+'&lastName='+lastNameValue+'&from='+emailValue+'&city='+cityValue+'&province='+provinceValue+'&marketsector='+generalSubjectValue+'&feedback='+feedbackValue+'&to='+toField;}
else if((ms!=null)&&(ms.style.left=='148px')&&(marketsectorValue!='')){toField='askstantec@stantec.com';qs='subject='+marketsectorValue+'&firstName='+firstNameValue+'&lastName='+lastNameValue+'&from='+emailValue+'&city='+cityValue+'&province='+provinceValue+'&marketsector='+marketsectorValue+'&feedback='+feedbackValue+'&to='+toField;}
if(qs==''){alert('Please complete all fields in this form.');return;}
var opt={method:'post',onSuccess:handleSubmitContactForm,on404:handleError,onFailure:handleError};new Ajax.Request('xmlQuery/contact/contactus.aspx?'+qs,opt);}
else{alert('Please complete all fields in this form.');}}
function validEmail(email){var atSign=email.indexOf("@")
var period=email.lastIndexOf(".")
var result=false;if((email=="")||(atSign==-1)||(period==-1)||(atSign==0))
return false;if((atSign>period)||(period-atSign==1)||(period==(email.length-1))){return false;}
if((email.indexOf("#")>-1)||(email.indexOf("!")>-1)||(email.indexOf("$")>-1)||(email.indexOf("%")>-1)||(email.indexOf("^")>-1)||(email.indexOf("&")>-1)||(email.indexOf("*")>-1)||(email.indexOf("?")>-1)||(email.indexOf(" ")>-1)||(email.indexOf("+")>-1)||(email.indexOf(";")>-1))
return false;return true;}
var handleSubmitContactForm=function(req){var data=(req.responseText.indexOf('Success')>-1);finishSubmitEmail(data,req.responseText);}
function finishSubmitEmail(result,errorMsg){if(result){alert('Thank you for your message.');new Effect.Event({queue:{position:'end',scope:'showScope'},beforeUpdate:function(){$('cfFirstName').value='';$('cfLastName').value='';$('cfEmail').value='';$('cfCity').value='';$('cfProvince').value='';if($('cfMarketSector')!=null)
$('cfMarketSector').selectedIndex=0;$('cfSubject').selectedIndex=0;$('cfFeedback').value='';}});closeContactWindow();}
else{alert('Please verify your email address. ');}}
var sysItems=[];var sysLink='';function getSystemContent(dest){var opt={method:'post',onSuccess:handleGetSystemContent,on404:handleError,onFailure:handleError};sysLink=dest;new Ajax.Request('xmlQuery/systemContent.aspx',opt);}
var handleGetSystemContent=function(req)
{var contentData=req.responseXML.getElementsByTagName('SystemContent');var item=null;var systemItems;var title,content;if(contentData.length>0){for(var i=0;i<contentData.length;i++)
{title=getFirstChildNodeValue(contentData[i],'Title');content=getFirstChildNodeValue(contentData[i],'Content');item=new SystemContentItem(title,content);sysItems.push(item);}}
loadSystemContent();}
function loadSystemContent(){for(var i=0;i<sysItems.length;i++){if(sysItems[i].title=='privacy')
$('privacyContent').innerHTML=sysItems[i].content;else if(sysItems[i].title=='copyright')
$('copyrightContent').innerHTML=sysItems[i].content;}
if(sysLink=='portal')
openPortal();}
function openPortal()
{if(sysItems.length==0)
getSystemContent('portal');else{var portalItem=sysItems.find(function(n){return n.title=='portal'});var link=portalItem.content.gsub('<div>','').gsub('</div>','');window.open(link);}}
function getPrivacyPolicy(){if(sysItems.length==0)
getSystemContent();else
loadSystemContent();}
function getInvestorRelationsContent(){var opt={method:'post',onSuccess:handleGetMainIRContent,on404:handleError,onFailure:handleError};new Ajax.Request('xmlQuery/investors/InvestorsMainContent.aspx',opt);}
function handleError(){}
function getContentTemp(){content.push(new ContentItem('overview','Overview','Company Profile','Stantec provides professional services in infrastructure and facilities. The Company’s comprehensive services include planning, engineering, architecture, interior design, landscape architecture, surveying, and geomatics, environmental sciences, project management, and project economics. In simple terms, the world of Stantec is the water we drink, the roadways we travel, the buildings we visit, the industries in which we work, and the neighbourhoods we call home. Stantec supports clients at every stage, from initial concept and financial feasibility to project completion and beyond. Stantec trades on the Toronto Stock Exchange under the symbol STN and on the NYSE under the symbol SXC.'));content.push(new ContentItem('overview','','Vision','Stantec’s goal is to become one of the top 10 global design firms by 2009. To achieve our vision, we will continue to pursue excellence in design and project delivery and to follow an orderly growth plan that builds on our solid foundation.'));content.push(new ContentItem('overview','','Strategy','Stantec is a growth company. Our services are delivered through a focused business model that allows us to manage risk while pursuing our objectives of continued revenue and earnings growth. The model mitigates our risks by ensuring that we are not dependent on any single geographic region, market segment, or life cycle phase for our business.'));content.push(new ContentItem('overview','','Track Record','53 years uninterrupted profitability. From the beginning, we built the Company on solid business practices focused on operating cost efficiently and providing quality services a straightforward, elegant approach that launched a 53-year tradition of meeting our clients’ needs and achieving consistent, profitable growth in revenue and earnings. People, passion, and progress have made our Company what it is today and created the foundation for what it will be tomorrow.<br><br> 13 years publicly traded. With a proven track record of uninterrupted profitability to our credit, we completed an initial public offering in March of 1994 to make room for a transition in ownership and to support a new plan to raise capital for growth. In the years since 1994, our gross revenue, net income, and diluted earnings per share have grown at an impressive compound average annual rate of 20.3%, 25.6%, and 17.7% respectively.  In 2005 we added a listing on the New York Stock Exchange to complement our Toronto Stock Exchange listing, executing our first trade in the United States under the symbol SXC.'));content.push(new ContentItem('financialreports','2007 Financial Reports','','<table class=\"mctaContentText\"><tr><td><span class=\"mctaContentHeaderText\">2007 Financial Reports</span></td></tr><tr><td colspan=\'2\'><Br><br>2007 Q3 YTD Highlights</td></tr><tr><td>Gross Revenue</td><td>15.2% </td></tr><tr><td>Net Revenue</td><td>16.6% </td></tr><tr><td>Net Income</td><td>12.8% </td></tr><tr><td>Diluted EPS</td><td>12.4% </td></tr><tr></tr><tr><td colspan=\'2\'><br>2007 Financial Reports</td></tr><tr><td> 2007 Q3 Report  </td></tr><tr><td>2007 Q2 Report  </td></tr><tr><td>2007 Q1 Report  </td></tr></table>'));content.push(new ContentItem('eventscalendar','Calendar of Events','','<table class=\"mctaContentText\"><tr><td><span class=\"mctaContentHeaderText\">Upcoming Events</span></td></tr><tr><td><br>Date</td><td><br>Event</td></tr><tr><td>February 21, 2008</td><td> 2007 Q4 Year-End Earnings Announcement<br>(webcast)</td></tr><tr><td>February 22, 2008</td><td>CIBC Institutional Investor Conference - Whistler, BC<br>(Webcast I Presentation)</td></tr><tr><td>May 1, 2008</td><td> 2008 Q1 Earnings Announcement<br>(Webcast)</td></tr><tr><td>March XX, 2008</td><td>Scotia Spring Growth Institutional Investor Conference<br>(Webcast)</td></tr><tr><td class=\"mctaContentHeaderText\"><br>Archived Events</td></tr><tr><td><br>Date</td><td><br> Event</td></tr><tr><td>November 1, 2007</td><td> 2007 Q3 Earnings Release<br>(Webcast I PDF Report)</td></tr><tr><td>September 20, 2007</td><td> D.A. Davidson Engineering & Construction Conference<br>(Webcast I Presentation)</td></tr><tr><td>August 2, 2007</td><td> 2007 Q2 Earnings Release<br>(Webcast I PDF Report)</td></tr><tr><td>May 3, 2007</td><td> FY 2006 Annual General Meeting<br>(Webcast I Presentation)<br></span></td></tr></table>'));content.push(new ContentItem('analystcoverage','Analyst Coverage','','<table class=\"mctaContentText\"><tr><td><span class=\"mctaContentHeaderText\">Analyst Coverage</span></td></tr><tr><td><br>BMO Capital Markets</td></tr><tr><td>Bert Powell</td></tr><tr><td>Ph: (416) 359-5301</td></tr><tr><td><br><br>Canaccord Capital</td></tr><tr><td>Sara Elford</td></tr><tr><td>Ph: (902) 442-3161</td></tr><tr><td><br><br>CIBC World Markets</td></tr><tr><td>Paul Lechem</td></tr><tr><td>Ph: (416) 956-6429</td></tr><tr><td><br><br>Cormark Securities</td></tr><tr><td>Sarah Hughes</td></tr><tr><td>Ph: (416) 943-6485</td></tr><tr><td>Jeff Fenwick</td></tr><tr><td>Ph: (416) 943-6739</td></tr><tr><td><br><br>D.A. Davidson</td></tr><tr><td>John Rogers</td></tr><tr><td>Ph: (503) 603-3020</td></tr><tr><td><br><br>Dundee Securities</td></tr><tr><td>Richard Stoneman</td></tr><tr><td>Ph: (416) 350-3337</td></tr><tr><td><br><br>Raymond James</td></tr><tr><td>Ben Cherniavsky</td></tr><tr><td>Ph: (604) 659-8244</td></tr><tr><td><br><br>Salman Partners</td></tr><tr><td>Ryan Crowther</td></tr><tr><td>Ph: (604) 622-5275</td></tr><tr><td><br><br>Scotia Capital</td></tr><tr><td>Anthony Zicha</td></tr><tr><td>Ph: (514) 350-7748</td></tr></table>'));content.push(new ContentItem('governance','Corporate Governance','','<div class=\"mctaContentText\"><span class=\"mctaContentHeaderText\">Integrity</span><br>At Stantec we embrace the highest standards of personal and professional integrity, and Our business principles are never compromised. Our ideals are those shared by all good companies-good governance, transparent accounting, and the delivery of long-term shareholder value.<br><br>Our business is based on solid practices-a matrix organizational structure that balances the operational and technical aspects of our Company; a focused business model that allows us to manage risk while pursuing continued growth; Risk Management and Practice Enhancement teams dedicated to ensuring good professional practices and loss prevention; and training and development for employees throughout our organization. As our Company evolves, we continue to invest in staff training. To this end we introduced TIE, an initiative focused on having the best-trained, best-informed, and best-equipped employees in our industry in order to improve our client service delivery.<br><br>At Stantec we know the integrity of a company\'s board of directors sets the tone for its operations, and we have in place a remarkable group of eight qualified, knowledgeable directors. All members of our board fulfill their roles guiding the management of the Company\'s business and affairs while adhering to sound corporate governance practices. Our corporate governance model complies with the corporate governance guidelines set out in National Policy 58-201 (NP 58-201), addressing practices in three major areas: stewardship, independence, and expertise.</div>'));content.push(new ContentItem('faqs','FAQs','','<table class=\"mctaContentText\"><tr><td><span class=\"mctaContentHeaderText\">FAQs</span></td></tr><tr><td><br><span class=\"mctaFaqQuestionText\">Which exchanges is Stantec listed on?</span></td></tr><tr><td>Stantec is listed on the Toronto Stock Exchange (TSX) under the symbol STN and on the New York Stock Exchange (NYSE) under the symbol SXC.</td></tr><tr><td><br><span class=\"mctaFaqQuestionText\">Do you have a Normal Course Issuer Bid outstanding? What is a Normal Course Issuer Bid? Why have one?</span></td></tr><tr><td>Yes, we do have a Normal Course Issuer Bid in place. A Normal Course Issuer Bid (NCIB) is a program that allows the company to buy back some of its own stock. If we believe our shares become temporarily undervalued for any reason, then we can purchase our own stock on the open market.</td></tr><tr><td><br><span class=\"mctaFaqQuestionText\">I’ve lost my stock certificates. How can I replace them?</span></td></tr><tr><td>Contact our transfer agent Computershare. They can look up your records and make any necessary adjustment.</td></tr><tr><td><br><span class=\"mctaFaqQuestionText\">What analysts follow the stock?</span></td></tr><tr><td>We are currently followed by several analysts. See the Analyst Coverage section for more details.</td></tr><tr><td><br><span class=\"mctaFaqQuestionText\">Do you have any preferred shares, or any other publicly traded securities?</span></td></tr><tr><td>No.</td></tr><tr><td><br><span class=\"mctaFaqQuestionText\">Do you anticipate paying a dividend?</span></td></tr><tr><td>Not in the foreseeable future.</td></tr><tr><td><br><span class=\"mctaFaqQuestionText\">Do you have a DRIP (Dividend Reinvestment Program)?</span></td></tr><tr><td>No, Stantec does not pay a dividend and therefore does not have such a program.</td></tr><tr><td><br><span class=\"mctaFaqQuestionText\">Have you had any stock splits?</span></td></tr><tr><td>Yes, Stantec has had two stock splits. One took effect on May 15, 2002, and the other on May 19, 2006. </td></tr><tr><td><br><span class=\"mctaFaqQuestionText\">Can I access your news releases?</span></td></tr><tr><td>Yes, you can access our news releases by viewing them on our site in the News section.</td></tr><tr><td><br><span class=\"mctaFaqQuestionText\">How much after the quarter end do you report?</span></td></tr><tr><td>We traditionally report our earnings three to five weeks after the quarter end. See the Financial Calendar section for more details.</td></tr><tr><td><br><br>'));content.push(new ContentItem('shareholderinfo','Shareholder Information','','<table class=\"mctaContentText\"><tr><td class=\"mctaContentHeaderText\">Head Office</td></tr><tr><td>200, 10160 - 112 Street</td></tr><tr><td>Edmonton AB T5K 2L6</td></tr><tr><td>Canada</td></tr><tr><td><br>Ph: (780) 917-7000</td></tr><tr><td>Fx: (780) 917-7330</td></tr><tr><td>Ir@stantec.com</td></tr><tr><td class=\"mctaContentHeaderText\"><br>Transfer Agent</td></tr><tr><td>Computershare</td></tr><tr><td>Edmonton AB T5K 2L6</td></tr><tr><td>Canada</td></tr><tr><td><br>Ph: 1-800-564-6253</td></tr><tr><td>www.computershare.com</td></tr><tr><td class=\"mctaContentHeaderText\"><br>Auditors</td></tr><tr><td>Ernst & Young LLP</td></tr><tr><td>Chartered Accountants</td></tr><tr><td>Edmonton, Alberta</td></tr></table>'));content.push(new ContentItem('investorkit','Investors Kit','','Stantec is committed to being a sustainable company and in pursuing that goal we are now offering our investor kit in electronic format. The kit provides the fundamental information required to understand Stantec’s business and success. Included is the most recent annual report, most recent quarterly report, our fact sheet and most recent investor presentation.'));}
var handleGetMainIRContent=function(req){var dataFromXML=req.responseXML.getElementsByTagName('InvestorsContent');var webcastImage,ikImage,rImage,webcastURL,openingFlash;if(dataFromXML.length>0){var curRow=dataFromXML[0];webcastImage=getFirstChildNodeValue(curRow,'WebCastImage');ikImage=getFirstChildNodeValue(curRow,'InvestorKitImage');rImage=getFirstChildNodeValue(curRow,'RequestImage');webcastURL=getFirstChildNodeValue(curRow,'WebCastURL');openingFlash=getFirstChildNodeValue(curRow,'OpeningFlash');}
var newsDataFromXML=req.responseXML.getElementsByTagName('NewsContents');var title,description,date,imagePath,archived,newsItem;for(var i=0;i<newsDataFromXML.length;i++)
{title=getFirstChildNodeValue(newsDataFromXML[i],'NewsTitle');description=getFirstChildNodeValue(newsDataFromXML[i],'FullDescription');date=getFirstChildNodeValue(newsDataFromXML[i],'Date');imagePath=getFirstChildNodeValue(newsDataFromXML[i],'NewsImage');archived=getFirstChildNodeValue(newsDataFromXML[i],'Archive');newsItem=new NewsReleaseItem('',title,date,description,archived,imagePath);newsItems.push(newsItem);}
finishPageLoad(webcastImage,ikImage,rImage,webcastURL,openingFlash);}
function getFinancialReportsContent(){var opt={method:'post',onSuccess:handleGetFinancialReportContent,on404:handleError,onFailure:handleError};new Ajax.Request('xmlQuery/investors/InvestorsFinancialReportsContent.aspx',opt);}
var handleGetFinancialReportContent=function(req){var dataFromXML=req.responseXML.getElementsByTagName('InvestorsContent');var items=[];var cyht,grp,gri,nrp,nri,nip,nii,dep,dei,pyfrImage,p2yfrImage,p3yfrImage,frf,currentYear;if(dataFromXML.length>0){var curRow=dataFromXML[0];currentYear=getFirstChildNodeValue(curRow,'CurrentYear');cyht=getFirstChildNodeValue(curRow,'FinancialReportsCurrentYearHighlightText');grp=getFirstChildNodeValue(curRow,'FinancialReportsGrossRevenuePercent');gri=getFirstChildNodeValue(curRow,'FinancialReportsGrossRevenueIncrease');nrp=getFirstChildNodeValue(curRow,'FinancialReportsNetRevenuePercent');nri=getFirstChildNodeValue(curRow,'FinancialReportsNetRevenueIncrease');nip=getFirstChildNodeValue(curRow,'FinancialReportsNetIncomePercent');nii=getFirstChildNodeValue(curRow,'FinancialReportsNetIncomeIncrease');dep=getFirstChildNodeValue(curRow,'FinancialReportsDilutedEPSPercent');dei=getFirstChildNodeValue(curRow,'FinancialReportsDilutedEPSIncrease');pyfrImage=getFirstChildNodeValue(curRow,'PreviousYearFinancialReportImage');p2yfrImage=getFirstChildNodeValue(curRow,'PreviousTwoYearsFinancialReportImage');p3yfrImage=getFirstChildNodeValue(curRow,'PreviousThreeYearsFinancialReportImage');frf=getFirstChildNodeValue(curRow,'FinancialReportsFooter');}
var docsFromXML=req.responseXML.getElementsByTagName('FinancialReportsDocuments');if(docsFromXML.length>0){var title,filepath,year,indent,document;for(var i=0;i<docsFromXML.length;i++)
{title=getFirstChildNodeValue(docsFromXML[i],'PDFTitle');filepath=getFirstChildNodeValue(docsFromXML[i],'PDFFile');year=getFirstChildNodeValue(docsFromXML[i],'Year');indent=getFirstChildNodeValue(docsFromXML[i],'Indent');document=new FRDocumentItem(title,filepath,year,indent);financialReportDocs.push(document);}}
var curItem,curDiv,curText,subtitle;var curPanel=$('financialreportsMCTAContent');var lineHeaderItem='position:relative;left:0px;width:380px;height:28px;font-family:Arial,Helvetica,sans-serif;font-size:11pt;font-weight:bold;color:#5883AD;';var lineH2Item='position:relative;left:0px;width:500px;height:18px;font-family:Arial,Helvetica,sans-serif;font-size:9pt;font-weight:bold;color:#666;';var lineItem='position:relative;left:0px;width:500px;height:18px;font-family:Arial,Helvetica,sans-serif;font-size:9pt;color:#666;';var spacerItem='position:relative;left:0px;width:500px;height:18px;';var thisYear=parseInt(currentYear);var lastYear=thisYear-1;var currentYearDocs=[];var lastYearDocs=[];var twoYearOldDocs=[];var threeYearOldDocs=[];var spacer=Builder.node('div',{style:spacerItem},'');curPanel.appendChild(addLineItem(thisYear+' Financial Reports',lineHeaderItem+';height:24px;left:4px'));curPanel.appendChild(addLineItem(cyht,lineH2Item+';left:34px;'));curPanel.appendChild(addHighlight(grp,gri,'Gross Revenue',lineItem));curPanel.appendChild(addHighlight(nrp,nri,'Net Revenue',lineItem));curPanel.appendChild(addHighlight(nip,nii,'Net Income',lineItem));curPanel.appendChild(addHighlight(dep,dei,'Diluted EPS',lineItem));curPanel.appendChild(Builder.node('div',{style:spacerItem},''));curPanel.appendChild(addLineItem(thisYear+' Financial Reports',lineH2Item+';left:34px;'));var twoYearOld=thisYear-2;var threeYearOld=thisYear-3;for(var i=0;i<financialReportDocs.length;i++){curItem=financialReportDocs[i];if(curItem.year==thisYear){currentYearDocs.push(curItem);}
else if(curItem.year==lastYear){lastYearDocs.push(curItem);}
else if(curItem.year==twoYearOld){twoYearOldDocs.push(curItem);}
else if(curItem.year==threeYearOld){threeYearOldDocs.push(curItem);}}
for(var i=0;i<currentYearDocs.length;i++){curPanel.appendChild(addFileItem(currentYearDocs[i],lineItem));}
if(lastYearDocs.length>0)
{curPanel.appendChild(Builder.node('div',{style:spacerItem},''));curPanel.appendChild(addLineItem(lastYear+' Financial Reports',lineHeaderItem+';height:24px;left:4px'));for(var i=0;i<lastYearDocs.length;i++){curPanel.appendChild(addFileItem(lastYearDocs[i],lineItem));}}
lastYear=lastYear-1;if(twoYearOldDocs.length>0)
{curPanel.appendChild(Builder.node('div',{style:spacerItem},''));curPanel.appendChild(addLineItem(lastYear+' Financial Reports',lineHeaderItem+';height:24px;left:4px'));for(var i=0;i<twoYearOldDocs.length;i++){curPanel.appendChild(addFileItem(twoYearOldDocs[i],lineItem));}}
lastYear=lastYear-1;if(threeYearOldDocs.length>0)
{curPanel.appendChild(Builder.node('div',{style:spacerItem},''));curPanel.appendChild(addLineItem(lastYear+' Financial Reports',lineHeaderItem+';height:24px;left:4px'));for(var i=0;i<threeYearOldDocs.length;i++){curPanel.appendChild(addFileItem(threeYearOldDocs[i],lineItem));}}
var sedar=Builder.node('a',{style:'text-align: center; width: 100%'},'');sedar.href="#";sedar.onclick=function(){window.open('http://www.sedar.com/DisplayCompanyDocuments.do?lang=EN&issuerNo=00002671');};sedar.className="shLinkText";sedar.innerHTML="SEDAR";var edgar=Builder.node('a',{style:'text-align: center; width: 100%'},'');edgar.href="#";edgar.onclick=function(){window.open('http://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=0001131383&owner=include&count=40');};edgar.className="shLinkText";edgar.innerHTML="EDGAR";var div=Builder.node('span',{style:'font-family:Arial,Helvetica,sans-serif;font-size:9pt;color:#666;text-align: center'},'');var t1=Builder.node('div',{style:'font-family:Arial,Helvetica,sans-serif;font-size:9pt;color:#666;text-align: center'},'');t1.innerHTML='For all other years of financial documents and regulatory filings please visit ';div.appendChild(t1)
div.appendChild(sedar);t1=Builder.node('div',{style:'font-family:Arial,Helvetica,sans-serif;font-size:9pt;color:#666;text-align: center'},'');t1.innerHTML=' or ';div.appendChild(t1)
div.appendChild(edgar);curPanel.appendChild(Builder.node('div',{style:spacerItem},''));curPanel.appendChild(Builder.node('div',{style:spacerItem},''));curPanel.appendChild(div);loadFinancialReportsContent();}
function addFileItem(item,itemStyle){var lineImgItem='position:absolute;left:215px;top:0px;width:16px;height:17px;';var curDiv=Builder.node('div',{style:itemStyle+';left:50px;'},'');var curText=(item.indent=='True')?Builder.node('div',{style:itemStyle+';cursor:pointer;position:absolute;width:180px;left:18px;'},''):Builder.node('div',{style:itemStyle+';cursor:pointer;position:absolute;width:180px;'},'');var curImg=Builder.node('img',{style:lineImgItem},'');var title=item.title.gsub('&','&amp;');curText.innerHTML=title;curImg.src='../images/buttons/pdf.gif';curDiv.appendChild(curText);curDiv.appendChild(curImg);curDiv.id=item.filepath;curDiv.onclick=function(e){window.open('../InvestorsDocuments/'+item.filepath);}
curDiv.onmouseover=function(e){curText.style.backgroundColor='#00457C';curText.style.color='#fff';}
curDiv.onmouseout=function(e){curText.style.backgroundColor='#fff';curText.style.color='#666';}
return curDiv;}
function addHighlight(grp,increase,itemText,itemStyle){var lineImgItem='position:absolute;left:145px;top:2px;width:10px;height:10px;';var curDiv=Builder.node('div',{style:itemStyle+';left:50px;'},'');var curText=Builder.node('div',{style:itemStyle+';position:absolute;width:180px;'},'');var curImg=Builder.node('img',{style:lineImgItem},'');var curText2=Builder.node('div',{style:itemStyle+';position:absolute;width:180px;left:160px;'},'');curText.innerHTML=itemText;curText2.innerHTML=grp+'%';curImg.src=(increase=='True')?'../images/buttons/arrow_up.gif':'../images/buttons/arrow_down.gif';curDiv.appendChild(curText);curDiv.appendChild(curImg);curDiv.appendChild(curText2);return curDiv}
function getOverviewContent(){var opt={method:'post',onSuccess:handleGetOverviewContent,on404:handleError,onFailure:handleError};new Ajax.Request('xmlQuery/investors/InvestorsOverviewContent.aspx',opt);}
var handleGetOverviewContent=function(req){var dataFromXML=req.responseXML.getElementsByTagName('InvestorsContent');var items=[];if(dataFromXML.length>0){var heading,overview;var item;for(var i=0;i<dataFromXML.length;i++)
{overview=getFirstChildNodeValue(dataFromXML[i],'Overview');heading=getFirstChildNodeValue(dataFromXML[i],'Heading');item=new ContentItem('overview','',heading,overview);items.push(item);content.push(item);}}
addPlainText('overview',items);}
function getAnalystCoverageContent(){var opt={method:'post',onSuccess:handleGetAnalystCoverageContent,on404:handleError,onFailure:handleError};new Ajax.Request('xmlQuery/investors/InvestorsAnalystCoverageContent.aspx',opt);}
var handleGetAnalystCoverageContent=function(req){var dataFromXML=req.responseXML.getElementsByTagName('InvestorsContent');var items=[];if(dataFromXML.length>0){var overview=getFirstChildNodeValue(dataFromXML[0],'AnalystCoverage');var item=new ContentItem('analystcoverage','','',overview);items.push(item);}
addPlainText('analystcoverage',items);}
function getEventsCalendarContent(){var opt={method:'post',onSuccess:handleGetEventsCalendarContent,on404:handleError,onFailure:handleError};new Ajax.Request('xmlQuery/investors/InvestorsEventsCalendarContent.aspx',opt);}
var handleGetEventsCalendarContent=function(req){var dataFromXML=req.responseXML.getElementsByTagName('Event');var archivedItems=[];var upcomingItems=[];if(dataFromXML.length>0){var oName,oDate,oType,oList;var item;for(var i=0;i<dataFromXML.length;i++)
{oName=getFirstChildNodeValue(dataFromXML[i],'EventName');oDate=getFirstChildNodeValue(dataFromXML[i],'EventDate');oType=getFirstChildNodeValue(dataFromXML[i],'EventType');oList=getFirstChildNodeValue(dataFromXML[i],'List');item=new ECContentItem(oName,oDate,oType,oList);if(oList=='Upcoming')
upcomingItems.push(item);else
archivedItems.push(item);}}
loadEventsCalendarContent(upcomingItems,archivedItems);}
function getFAQSContent(){var opt={method:'post',onSuccess:handleGetFAQSContent,on404:handleError,onFailure:handleError};new Ajax.Request('xmlQuery/investors/InvestorsFAQ.aspx',opt);}
var handleGetFAQSContent=function(req){var dataFromXML=req.responseXML.getElementsByTagName('FAQ');var faqs=[];if(dataFromXML.length>0){var oQuestion,oAnswer;var item;for(var i=0;i<dataFromXML.length;i++)
{oQuestion=getFirstChildNodeValue(dataFromXML[i],'Question');oAnswer=getFirstChildNodeValue(dataFromXML[i],'Answer');item=new FAQItem(oQuestion,oAnswer);faqs.push(item);}}
loadFAQsContent(faqs);}
function getGovernanceContent(){var opt={method:'post',onSuccess:handleGetPdfs,on404:handleError,onFailure:handleError};new Ajax.Request('xmlQuery/about/aboutGovernance.aspx',opt);}
var handleGetPdfs=function(req){var docsFromXML=req.responseXML.getElementsByTagName('GovernanceDocuments');if(docsFromXML.length>0){var title,name,document;for(var i=0;i<docsFromXML.length;i++)
{title=getFirstChildNodeValue(docsFromXML[i],'PDFTitle');filepath=getFirstChildNodeValue(docsFromXML[i],'PDFFile');document=new DocumentItem(title,filepath);governanceDocs.push(document);}}
var dataFromXML=req.responseXML.getElementsByTagName('AboutContent');var description;var contentItems=[];if(dataFromXML.length>0){var title,name,document,contentItem;if(dataFromXML.length>0)
{description=getFirstChildNodeValue(dataFromXML[0],'GovernanceSummary');contentItem=new ContentItem('governance','Corporate Governance','',description);content.push(contentItem);contentItems.push(contentItem);}}
loadDocContent('governance',contentItems);}
function getShareholderDocs(){var opt={method:'post',onSuccess:handleGetShareholderInfoPdfs,on404:handleError,onFailure:handleError};new Ajax.Request('xmlQuery/investors/InvestorsShareholderInfoContent.aspx',opt);}
var handleGetShareholderInfoPdfs=function(req){var docsFromXML=req.responseXML.getElementsByTagName('ShareholderDocuments');if(docsFromXML.length>0){var title,name,document;for(var i=0;i<docsFromXML.length;i++)
{title=getFirstChildNodeValue(docsFromXML[i],'PDFTitle');filepath=getFirstChildNodeValue(docsFromXML[i],'PDFFile');document=new DocumentItem(title,filepath);shareholderDocs.push(document);}}
var dataFromXML=req.responseXML.getElementsByTagName('InvestorsContent');var shareholderinfo;var contentItems=[];if(dataFromXML.length>0){contentItem=new ContentItem('shareholderinfo','Shareholder Information','',getFirstChildNodeValue(dataFromXML[0],'ShareholderInfoSummary'));content.push(contentItem);contentItems.push(contentItem);}
loadDocContent('shareholderinfo',contentItems);}
function getInvestorKitDocs(){var opt={method:'post',onSuccess:handleGetInvestorKitDocs,on404:handleError,onFailure:handleError};new Ajax.Request('xmlQuery/investors/InvestorsInvestorKit.aspx',opt);}
var handleGetInvestorKitDocs=function(req){var docsFromXML=req.responseXML.getElementsByTagName('InvestorKit');if(docsFromXML.length>0){var title,name,document;for(var i=0;i<docsFromXML.length;i++)
{title=getFirstChildNodeValue(docsFromXML[i],'PDFTitle');filepath=getFirstChildNodeValue(docsFromXML[i],'PDFFile');document=new DocumentItem(title,filepath);investorKitDocs.push(document);}}
var dataFromXML=req.responseXML.getElementsByTagName('InvestorsContent');var shareholderinfo;var contentItems=[];if(dataFromXML.length>0){contentItem=new ContentItem('investorkit','Investor Kit','',getFirstChildNodeValue(dataFromXML[0],'InvestorKitSummary'));content.push(contentItem);contentItems.push(contentItem);}
loadDocContent('investorkit',contentItems);}
var links=[];var content=[];var governanceDocs=[];var shareholderDocs=[];var investorKitDocs=[];var financialReportDocs=[];var newsItems=[];var webcastURL='';var contentItemDiv='position:relative;top:0px;left:0px;width:492px;display:block;';var spanTextHeader='position:absolute;left:10px;top:0px;height:20px;display:block;width:492px;font-family:Arial, Helvetica, sans-serif;font-weight:bold;line-height: 14px;font-size: 9pt; color:#333333;';var spanText='position:relative;left:5px;top:30px;width:492px;display:block;font-family:Arial, Helvetica, sans-serif; font-size: 9pt; color:#333333;';var newsItemLine='position:relative;left:0px;width:494px;height:28px;color:#eaeaea;cursor:pointer';var newsTitleText='position:relative;left:5px;top:0px;width:494px;height:15px;font-family:Arial, Helvetica, sans-serif; line-height: 14px;font-size: 8pt;';var newsDateText='position:absolute;left:5px;top:15px;width:494px;height:15px;font-family:Arial, Helvetica, sans-serif; line-height: 14px;font-size: 8pt;';var lastWindow='mainpage';var mcScroller,dhpScroller,faqScroller;var docScroller;var gScroller;var siScroller;var ikScroller;var scrollDistance=20;var scroller;var scrollStart=0;var scrollToValue;var openingFlashFile;Event.observe(window,'unload',function(e){Event.unloadCache();});Event.observe(window,'load',function(){mcScroller=new Control.Scroller('mainContentTextArea','mccHandle','mccTrack',{visibleHeight:446,delta:5});dhpScroller=new Control.Scroller('newsDescriptionPanel','dhpHandle','dhpTrack',{visibleHeight:322,delta:5});faqScroller=new Control.Scroller('faqsMCTAContent','faqsHandle','faqsTrack',{visibleHeight:446,delta:5});getInvestorRelationsContent();initLinks();});function finishPageLoad(webcastImage,ikImage,rImage,webcastPath,openingFlash){var wc=$('webcast');wc.src=webcastImage;wc.onclick=function(e){window.open(webcastPath);}
$('webcastText').onclick=function(e){window.open(webcastPath);}
$('investorkit').src=ikImage;$('emailupdate').src=rImage;if(!isRefreshingFromHistory){lastWindow='mainpage';showMainContent(openingFlash);openingFlashFile=openingFlash;}
else{var e=null;var item=currentState.itemId;if(item=='stockquoteca'){e=new Object();e.srcElement=$('stockquoteca');showCdnStockContent(e);}
else if(item=="stockquoteus"){e=new Object();e.srcElement=$('stockquoteus');showUSStockContent(e);}
else{e=new Object();e.srcElement=$(item);showContent(e);}}
isRefreshingFromHistory=false;}
function createState()
{}
function showMainContent(flashFile){if(!isFlashLoaded()){loadFlash(flashFile);}
var curItem;var top=0;var curDiv,newsTitle,newsDate;var curPanel=$('newsItems');if(curPanel.innerHTML==''){for(var i=0;i<newsItems.length;i++){curItem=newsItems[i];curDiv=Builder.node('div',{style:newsItemLine+';top:'+top+'px;'},'');newsTitle=Builder.node('span',{style:newsTitleText},'');newsDate=Builder.node('span',{style:newsDateText},'');newsTitle.innerHTML=(curItem.title!='')?(curItem.title.length>95)?curItem.title.substring(0,95)+'...':curItem.title:'';newsDate.innerHTML=curItem.date;curDiv.id='newsNumber'+i;newsTitle.id='newsTitle'+i;newsDate.id='newsDate'+i;curDiv.appendChild(newsTitle);curDiv.appendChild(newsDate);curPanel.appendChild(curDiv);}}
var np=$('newsPanel');if(np.style.top!='360px')
np.morph({top:'360px'},{duration:1.0,queue:{scope:'moveScope',position:'end'}});$('mainContentHeaderText').innerHTML='Investor Relations';}
function initStockLinks(){var cdnChartImage=$('canadaQuote');var usChartImage=$('usQuote');if(navigator.userAgent.indexOf("IE")!=-1){if(caMiniQuoteLoaded)
Event.observe(cdnChartImage,'click',showCdnStockContent,false);if(usMiniQuoteLoaded)
Event.observe(usChartImage,'click',showUSStockContent,false);}
else{if(caMiniQuoteLoaded)
Event.observe(cdnChartImage,'click',showFirefoxCdnStockContent,false);if(usMiniQuoteLoaded)
Event.observe(usChartImage,'click',showFirefoxUSStockContent,false);}
Event.observe(cdnChartImage,'mouseover',quoteOver,false);Event.observe(cdnChartImage,'mouseout',quoteOut,false);Event.observe(usChartImage,'mouseover',quoteOver,false);Event.observe(usChartImage,'mouseout',quoteOut,false);Event.observe(usChartImage,'mouseover',moChartImage,false);Event.observe(usChartImage,'mouseout',moChartImage,false);}
function moChartImage(e){var item=(e.srcElement!=null)?e.srcElement:e.target;}
var cdnSCScroller;var usSCScroller;var ffStockContentDiv='position:absolute;left:0px;top:0px;height:444px;width:1204px;overflow:hidden;display:none';var ffChartSpan='cursor:pointer;position:absolute;left:5px;top:3px;height:20px;width:100px;font-family:Arial, Arial, Helvetica, sans-serif;font-weight:bold;line-height: 14px;font-size: 9pt; color:#5883AD;';var ffQuoteSpan='cursor:pointer;position:absolute;left:110px;top:3px;height:20px;width:100px;font-family:Arial, Arial, Helvetica, sans-serif;font-weight:bold;line-height: 14px;font-size: 9pt; color:#5883AD;';var ffCdnChartDiv='position:absolute;left:0px;top:-385px;height:780px;width:504px;overflow:hidden;';var ffCdnQuoteDiv='position:absolute;left:510px;top:0px;height:380px;width:504px;overflow:hidden';var ffUSChartDiv='position:absolute;left:0px;top:-350px;height:733px;width:504px;overflow:hidden;';var ffUSQuoteDiv='position:absolute;left:510px;top:0px;height:345px;width:504px;overflow:hidden';var ffContentWrapperDiv='position:absolute;left:0px;top:30px;height:414px;width:1204px;overflow:hidden;';var ffWrapperSpanDiv='position:absolute;background-color:#E4EAF2;left:0px;top:0px;height:22px;width:516px;';var mctaContentH2Text='font-family:Arial, Arial, Helvetica, sans-serif;font-weight: bold;line-height: 14pt;font-size: 8pt;color: #00457C;';function initLinks(){links.push(new IRLocationItem('investorkit',0));links.push(new IRLocationItem('mainpage',-510));links.push(new IRLocationItem('overview',-1020));links.push(new IRLocationItem('financialreports',-1540));links.push(new IRLocationItem('eventscalendar',-2040));links.push(new IRLocationItem('analystcoverage',-2560));links.push(new IRLocationItem('governance',-3070));links.push(new IRLocationItem('faqs',-3580));links.push(new IRLocationItem('shareholderinfo',-4690));var rlh=$('rightLinkHolder');Event.observe(rlh,'mouseover',moElement,false);Event.observe(rlh,'mouseout',moElement,false);Event.observe($('mainpage'),'click',showContent,false);Event.observe($('overview'),'click',showContent,false);Event.observe($('financialreports'),'click',showContent,false);Event.observe($('eventscalendar'),'click',showContent,false);Event.observe($('analystcoverage'),'click',showContent,false);Event.observe($('governance'),'click',showContent,false);Event.observe($('faqs'),'click',showContent,false);Event.observe($('shareholderinfo'),'click',showContent,false);for(var i=0;i<links.length;i++){link=$(links[i].id);curContentHolder=$(links[i].id+'MCTAContent');left=parseInt(links[i].leftPosition)*-1;curContentHolder.style.left=left+'px';}
var cul=$('footerLinks');Event.observe(cul,'click',showContactPanel,false);Event.observe(cul,'mouseover',moFooterLinks,false);Event.observe(cul,'mouseout',moFooterLinks,false);var dhpclose=$('dhpCloseButton');Event.observe(dhpclose,'click',closeContactWindow,false);Event.observe(dhpclose,'mouseover',mo_ContactClose,false);Event.observe(dhpclose,'mouseout',mo_ContactClose,false);var cfsubmit=$('investorsCFSubmitButton');Event.observe(cfsubmit,'click',submitContactForm,false);Event.observe(cfsubmit,'mouseover',mo_ContactSubmit,false);Event.observe(cfsubmit,'mouseout',mo_ContactSubmit,false);var rfsb=$('rfSubmitButton');Event.observe(rfsb,'click',submitRequestForm,false);Event.observe(rfsb,'mouseover',mo_ContactSubmit,false);Event.observe(rfsb,'mouseout',mo_ContactSubmit,false);var ppLink=$('privacyPolicyLink');Event.observe(ppLink,'click',showContactPanel,false);Event.observe(ppLink,'mouseover',moFooterLinks,false);Event.observe(ppLink,'mouseout',moFooterLinks,false);var wcil=$('webcast');Event.observe(wcil,'mouseover',moImageElement,false);Event.observe(wcil,'mouseout',moImageElement,false);var ikil=$('investorkit');Event.observe('investorkitText','click',showContentFromLeftLink,false);Event.observe(ikil,'click',showContentFromLeftLink,false);Event.observe(ikil,'mouseover',moImageElement,false);Event.observe(ikil,'mouseout',moImageElement,false);var euil=$('emailupdate');Event.observe('emailupdateText','click',showRequestForm,false);Event.observe(euil,'click',showRequestForm,false);Event.observe(euil,'mouseover',moImageElement,false);Event.observe(euil,'mouseout',moImageElement,false);var doci=$('docItems');Event.observe(doci,'click',showDoc,false);Event.observe(doci,'mouseover',moDocElement,false);Event.observe(doci,'mouseout',moDocElement,false);var np=$('newsItems');Event.observe(np,'click',showNewsItems,false);Event.observe(np,'mouseover',moNewsItem,false);Event.observe(np,'mouseout',moNewsItem,false);var ol=$('overviewLink');Event.observe(ol,'mouseover',moElement,false);Event.observe(ol,'mouseout',moElement,false);var dhpNewsCloseButton=$('newsdhpCloseButton');Event.observe(dhpNewsCloseButton,'click',closeNewsItemPanel,false);Event.observe(dhpNewsCloseButton,'mouseover',moElement,false);Event.observe(dhpNewsCloseButton,'mouseout',moElement,false);Event.observe($('newsPrintImage'),'click',printItem,false);}
function submitRequestForm(e){var item=(e.srcElement!=null)?e.srcElement:e.target;var emailName=$('rfEmailName');var emailEmail=$('rfEmailEmail');var emailAnnualReport=$('rfEmailAnnualReportsCB');var emailQuarterlyReports=$('rfEmailQuarterlyReportsCB');var emailNewsReleases=$('rfEmailNewsReleasesCB');var mailAnnualReport=$('rfMailAnnualReportsCB');var mailQuarterlyReports=$('rfMailQuarterlyReportsCB');var mailName=$('rfMailName');var mailRegion=$('rfMailRegion');var mailCity=$('rfMailCity');var mailAddress=$('rfMailAddress');var mailCountry=$('rfMailCountry');var mailComments=$('rfMailComments');var mailPostalCode=$('rfMailPostalCode');var getEmail=((emailName.value!='')&&(emailEmail.value!='')&&(emailAnnualReport.checked||emailQuarterlyReports.checked||emailNewsReleases.checked));var getMail=((mailAnnualReport.checked||mailQuarterlyReports.checked)&&(mailName.value!='')&&(mailRegion.value!='')&&(mailCity.value!='')&&(mailAddress.value!='')&&(mailCountry.value!='')&&(mailPostalCode.value!=''))
if(getEmail||getMail){var itemId=item.id;var toField='';toField='ir@stantec.com';var qs='';if(getEmail){var emailNameValue=(emailName.value!='')?emailName.value.stripScripts().stripTags():'';var emailEmailValue=(emailEmail.value!='')?emailEmail.value.stripScripts().stripTags():'';if(!validEmail(emailEmailValue)){alert('Invalid Email address. Please enter a valid email address.');return;}
qs='emailName='+emailNameValue+'&emailAddress='+emailEmailValue+'&eAnnualReport='+emailAnnualReport.checked+'&eQuarterlyReport='+emailQuarterlyReports.checked+'&eNewsReleases='+emailNewsReleases.checked;}
if(getMail){if(qs!='')
qs=qs+'&';var mailNameValue=(mailName.value!='')?mailName.value.stripScripts().stripTags():'';var mailAddressValue=(mailAddress.value!='')?mailAddress.value.stripScripts().stripTags():'';var mailCountryValue=(mailCountry.value!='')?mailCountry.value.stripScripts().stripTags():'';var mailCityValue=(mailCity.value!='')?mailCity.value.stripScripts().stripTags():'';var mailRegionValue=(mailRegion.value!='')?mailRegion.value.stripScripts().stripTags():'';var mailPostalCodeValue=(mailPostalCode.value!='')?mailPostalCode.value.stripScripts().stripTags():'';var mailCommentsValue=(mailComments.value!='')?mailComments.value.stripScripts().stripTags():'';qs=qs+'mName='+mailNameValue+'&mAddress='+mailAddressValue+'&mCountry='+mailCountryValue+'&mRegion='+mailRegionValue+'&mCity='+mailCityValue+'&mPostalCode='+mailPostalCodeValue+'&mComments='+mailCommentsValue+'&mAnnualReport='+mailAnnualReport.checked+'&mQuarterlyReport='+mailQuarterlyReports.checked;}
qs=qs+'&to='+toField;var opt={method:'post',onSuccess:handleSubmitRequestForm,on404:handleError,onFailure:handleError};new Ajax.Request('xmlQuery/contact/request.aspx?'+qs,opt);}
else{alert('Please complete all fields in this form.');}}
function validEmail(email){var atSign=email.indexOf("@")
var period=email.lastIndexOf(".")
var result=false;if((email=="")||(atSign==-1)||(period==-1)||(atSign==0))
return false;if((atSign>period)||(period-atSign==1)||(period==(email.length-1))){return false;}
if((email.indexOf("#")>-1)||(email.indexOf("!")>-1)||(email.indexOf("$")>-1)||(email.indexOf("%")>-1)||(email.indexOf("^")>-1)||(email.indexOf("&")>-1)||(email.indexOf("*")>-1)||(email.indexOf("?")>-1)||(email.indexOf(" ")>-1)||(email.indexOf("+")>-1)||(email.indexOf(";")>-1))
return false;return true;}
function finishSubmitRequestForm(result,errorMsg){if(result){alert('Thank you.  Your request has been sent.');new Effect.Event({queue:{position:'end',scope:'showScope'},beforeUpdate:function(){$('rfEmailName').value='';$('rfEmailEmail').value='';$('rfEmailAnnualReportsCB').checked=false;$('rfEmailQuarterlyReportsCB').checked=false;$('rfEmailNewsReleasesCB').checked=false;$('rfMailAnnualReportsCB').checked=false;$('rfMailQuarterlyReportsCB').checked=false;$('rfMailName').value='';$('rfMailRegion').value='';$('rfMailCity').value='';$('rfMailAddress').value='';$('rfMailCountry').value='';$('rfMailComments').value='';$('rfMailPostalCode').value='';}});closeRequestForm();}
else{alert("An error occurred while creating this request. "+'\n'+"If this error persists please contact us via email at ir@stantec.com.  "+'\n'+"We apologize for this inconvenience.");}}
var handleSubmitRequestForm=function(req){var data=(req.responseText.indexOf('Success')>-1);finishSubmitRequestForm(data,req.responseText);}
function moImageElement(e){var item=(e.srcElement!=null)?e.srcElement:e.target;var itemId=item.id;}
function showContentFromLeftLink(e){var item=(e.srcElement!=null)?e.srcElement:e.target;var itemId=item.id;var newE=null;if(itemId=='investorkit')
showContent(e);else if(itemId=='investorkitText')
{var newE=new Object();newE.srcElement=$('investorkit');showContent(newE);}}
function moElement(e){var item=(e.srcElement!=null)?e.srcElement:e.target;if(item.id=='mainpage')
item.style.color=(e.type=='mouseover')?'#00457C':'#fff';else
item.style.color=(e.type=='mouseover')?'#EAA758':(item.id=='mainpage')?'#fff':'#5883AD';}
function resetStockView(){new Effect.Appear($('contentSpinner'),{duration:0.4,queue:{scope:'moveScope',position:'end'}});$('mainContentControlWrapper').morph({left:'530px'},{duration:0.3,queue:{scope:'hideScope',position:'end'}});if(mcScroller)
mcScroller.slider.setValue(0,0);var fs=$('faqContentControlWrapper');if(fs.style.left!='530px')
fs.morph({left:'530px'},{duration:0.3,queue:{scope:'hideScope',position:'end'}});var mccw=$('mainContentControlWrapper');if(mccw.style.left!='530px')
mccw.morph({left:'530px'},{duration:0.3,queue:{scope:'hideScope',position:'end'}});var pScroller=$(lastWindow+'ContentControlWrapper');if(pScroller!=null){if(pScroller.style.left!='530px')
pScroller.morph({left:'530px'},{duration:0.3,queue:{scope:'hideScope',position:'end'}});}
var np=$('newsPanel');if(np.style.top!='490px')
np.morph({top:'490px'},{duration:1.0,queue:{scope:'moveScope',position:'end'}});}
function resetViews(){var mcWrapper=$('mainContent');if(mcWrapper.style.top=='-490px'){var uswd=$('usffscWrapperDiv');if(uswd!=null)uswd.innerHTML='';var ccwd=$('cdnffscWrapperDiv');if(ccwd!=null)ccwd.innerHTML='';$('usStockContent').style.top='980px';mcWrapper.morph({top:'1px'},{duration:1.0,queue:{scope:'moveScope',position:'end'}});$('cdnStockContent').morph({top:'490px'},{duration:1.0,queue:{scope:'moveScope',positions:'with-last'}});var sccw=$('cdnStockContentControlWrapper');if(sccw.style.left!='514px')
sccw.morph({left:'514px'},{duration:0.4,queue:{scope:'moveScope',position:'with-last'}});}
else if(mcWrapper.style.top=='-980px'){var ccwd=$('cdnffscWrapperDiv');if(ccwd!=null)ccwd.innerHTML='';var uswd=$('usffscWrapperDiv');if(uswd!=null)uswd.innerHTML='';$('cdnStockContent').style.top='490px';mcWrapper.morph({top:'1px'},{duration:1.0,queue:{scope:'moveScope',position:'end'}});$('usStockContent').morph({top:'980px'},{duration:1.0,queue:{scope:'moveScope',positions:'with-last'}});var usccw=$('usStockContentControlWrapper');if(usccw.style.left!='514px')
usccw.morph({left:'514px'},{duration:0.4,queue:{scope:'moveScope',position:'with-last'}});}
else if(mcWrapper.style.top==''){mcWrapper.style.top='1px';}
if(lastWindow=='plainTextPanel'){$('mainContentControlWrapper').morph({left:'530px'},{duration:0.3,queue:{scope:'hideScope',position:'end'}});mcScroller.slider.setValue(0,0);var fs=$('faqContentControlWrapper');if(fs.style.left!='530px')
fs.morph({left:'530px'},{duration:0.3,queue:{scope:'hideScope',position:'end'}});}
else if(lastWindow=='financialreports'){var mccw=$('mainContentControlWrapper');if(mccw.style.left!='530px')
mccw.morph({left:'530px'},{duration:0.3,queue:{scope:'hideScope',position:'end'}});}
else if((lastWindow=='governance')||(lastWindow=='shareholderinfo')||(lastWindow=='investorkit')){hideDocPanel();var pScroller=$(lastWindow+'ContentControlWrapper');if(pScroller.style.left!='530px')
pScroller.morph({left:'530px'},{duration:0.3,queue:{scope:'hideScope',position:'end'}});}
else if(lastWindow=='mainpage'){if(isFlashLoaded()){unloadFlash();}
var np=$('newsPanel');if(np.style.top!='490px')
np.morph({top:'490px'},{duration:1.0,queue:{scope:'moveScope',position:'end'}});}}
function hideDocPanel(){var di=$('docPanel');if(di.style.top!='490px')
di.morph({top:'490px'},{duration:0.3,queue:{scope:'hideScope',position:'end'}});var govccScroller=$('governanceContentControlWrapper');if(govccScroller.style.left!='530px')
govccScroller.morph({left:'530px'},{duration:0.3,queue:{scope:'hideScope',position:'with-last'}});}
function showContent(e){var item=(e==null)?$('overview'):(e.srcElement!=null)?e.srcElement:e.target;var curId=item.id;var curItemId=item.id;new Effect.Appear($('contentSpinner'),{duration:0.4,queue:{scope:'moveScope',position:'end'}});if(!isRefreshingFromHistory)
{var state=new State();if(curItemId)
{state.itemId=curItemId;state.itemName=$(curItemId).innerHTML;}
setTitle();currentState=state;sendCurrentStateToHistory();setTimeout("setTitle();",400);}
else
{var obj=$(currentState.itemId);if(obj)
currentState.itemName=obj.innerHTML
setTitle();}
isRefreshingFromHistory=false;unloadFlash();if((curItemId=='stockquoteca')||(curItemId=='stockquoteus')){$('mainContentHeaderText').innerHTML=(curItemId=='stockquoteca')?'TSX:STN':'NYSE: STN';return;}
resetViews();$('mainContentHeaderText').innerHTML=currentState.getName();if((curItemId=='overview')||(curItemId=='eventscalendar')||(curItemId=='analystcoverage')||(curItemId=='faqs')){lastWindow='plainTextPanel';showPlainTextContent(curItemId);}
else if(curItemId=='financialreports'){lastWindow='financialreports';showFinancialReportsContent(curItemId);$('mainContentHeaderText').innerHTML='Financial Reports';}
else if((curItemId=='governance')||(curItemId=='shareholderinfo')||(curItemId=='investorkit')){lastWindow=curItemId;showGovernanceContent(curItemId);}
else{lastWindow='mainpage';showMainContent(openingFlashFile);}
var leftValue=links.findAll(function(n){return n.id==item.id});if(leftValue.length>0)
$('mainContentTextArea').morph({left:leftValue[0].leftPosition+'px'},{duration:0.8,queue:{scope:'moveScope',position:'end'}});if((item.id!='overviewLink')&&(item.id!='mainpage')){$('overviewLink').morph({left:'474px'},{duration:0.8,queue:{scope:'hide2Scope',position:'end'}});}
else{var ol=$('overviewLink');if(ol.style.left!='')
ol.morph({left:'540px'},{duration:0.8,queue:{scope:'hide2Scope',position:'end'}});}}
function showFinancialReportsContent(itemId){if(financialReportDocs.length==0)
getFinancialReportsContent();else
loadFinancialReportsContent();}
function loadFinancialReportsContent(){var mccw=$('mainContentControlWrapper');mccw.morph({left:'514px'},{duration:0.3,queue:{scope:'hideScope',position:'end'}});new Effect.Fade($('contentSpinner'),{duration:1.4,queue:{scope:'hideScope',position:'end'}});}
function loadDocContent(itemId,items){var curItem;var curDiv,curImg,curLink;var curPanel=$('docItems');var govDocImg='position:absolute;left:24px;top:0px;height:24px;width:24px;';var govDocDiv='position:absolute;left:0px;top:0px;height:110px;width:70px;z:index:9;cursor:pointer';var govDocLink='position:absolute;left:0px;top:28px;text-align:center;height:80px;width:70px;font-family:Arial,Helvetica,sans-serif;line-height:8pt;font-size:8pt;color:#fff;';var left=0;var curList=(itemId=='governance')?governanceDocs:(itemId=='shareholderinfo')?shareholderDocs:(itemId=='investorkit')?investorKitDocs:null;if(curList==null)return;$('mainContentHeaderText').innerHTML=(itemId=='governance')?"Governance":(itemId=='shareholderinfo')?"Shareholder Information":(itemId=='investorkit')?"Investor Kit":'';if(items!=null){addPlainText(itemId,items);}
for(var i=0;i<curList.length;i++){curItem=curList[i];curDiv=Builder.node('div',{style:govDocDiv+';left:'+left+'px;'},'');curImg=Builder.node('img',{style:govDocImg},'');curLink=Builder.node('div',{style:govDocLink},'');curImg.src='/images/about/governance/pdf_small.png';curImg.id='govDocImage'+i;curLink.name='../AboutDocuments/'+curItem.filepath;curLink.id='govDocDiv'+i;curDiv.id='govDocWrapper'+i;curLink.innerHTML=curItem.title;curDiv.appendChild(curImg);curDiv.appendChild(curLink);curPanel.appendChild(curDiv);left=left+80;}
left=left+46;var docTop='360px';if(curList.length<6){curPanel.style.width='522px';docTop='360px';var left=(curList.length==4)?'100px':(curList.length==5)?'60px':(curList.length==3)?'140px':(curList.length==2)?'180px':'220px';curPanel.morph({left:left},{duration:0.3,queue:{scope:'hideScope',position:'end'}});$('docControlWrapper').style.top='124px';}
else{curPanel.style.width=left+'px';if(docScroller==null)
docScroller=new Control.Scroller('docItems','docHandle','docTrack',{visibleWidth:500,delta:5,axis:'horizontal'});docScroller.slider.setValue(0,0);$('docControlWrapper').style.top='110px';curPanel.morph({left:'20px'},{duration:0.3,queue:{scope:'hideScope',position:'end'}});}
$('docPanel').morph({top:docTop},{duration:0.3,queue:{scope:'hideScope',position:'with-last'}});new Effect.Fade($('contentSpinner'),{duration:1.4,queue:{scope:'hideScope',position:'end'}});showScroller(itemId);}
function showScroller(itemId){var scr=(itemId=='governance')?gScroller:(itemId=='shareholderinfo')?siScroller:(itemId=='investorkit')?ikScroller:null;var content=itemId+'MCTAContent';var track=itemId+'Track';var handle=itemId+'Handle';if(scr==null)
scr=new Control.Scroller(content,handle,track,{visibleHeight:324,delta:5,heightPadding:100});scr.slider.setValue(0,0);var pScroller=$(itemId+'ContentControlWrapper');if(pScroller.style.left!='514px')
pScroller.morph({left:'514px'},{duration:0.3,queue:{scope:'hideScope',position:'end'}});}
function showGovernanceContent(itemId){var di=$('docItems');var curPanel=$(itemId+'MCTAContent');di.innerHTML='';if((itemId=='governance')&&(governanceDocs.length==0))
getGovernanceContent();else if((itemId=='investorkit')&&(investorKitDocs.length==0))
getInvestorKitDocs();else if((itemId=='shareholderinfo')&&(shareholderDocs.length==0))
getShareholderDocs();else if(itemId=='governance')
loadDocContent('governance');else if(itemId=='investorkit')
loadDocContent('investorkit');else if(itemId=='shareholderinfo')
loadDocContent('shareholderinfo');}
function moDocElement(e){var item=(e.srcElement!=null)?e.srcElement:e.target;var itemId=item.id;if(itemId=='docItems')return;var curItemId;if(itemId.indexOf('Image')>-1)
curItemId=itemId.gsub('govDocImage','');else if(itemId.indexOf('Div')>-1)
curItemId=itemId.gsub('govDocDiv','');else if(itemId.indexOf('Wrapper')>-1)
curItemId=itemId.gsub('govDocWrapper','');$('govDocDiv'+curItemId).style.color=(e.type=='mouseover')?'#EAA758':'#fff';}
function showDoc(e){var item=(e.srcElement!=null)?e.srcElement:e.target;var itemId=item.id;if(itemId=='docItems')return;var curItemId;if(itemId.indexOf('Image')>-1)
curItemId=itemId.gsub('govDocImage','');else if(itemId.indexOf('Div')>-1)
curItemId=itemId.gsub('govDocDiv','');else if(itemId.indexOf('Wrapper')>-1)
curItemId=itemId.gsub('govDocWrapper','');var curItem=(lastWindow=='governance')?governanceDocs[parseInt(curItemId)]:(lastWindow=='shareholderinfo')?shareholderDocs[parseInt(curItemId)]:investorKitDocs[parseInt(curItemId)];if(curItem!=null){window.open(curItem.filepath,'Stantec');}}
function addPlainText(itemId,items){var curPanel=$(itemId+'MCTAContent');if(curPanel.innerHTML==''){var curItem,curDiv,curText1,subtitle;for(var i=0;i<items.length;i++){curItem=items[i];if((itemId=='investorkit')||(itemId=='overview')||(itemId=='governance')||(itemId=='analystcoverage')||(itemId=='shareholderinfo')){curDiv=Builder.node('div',{style:contentItemDiv+';left:4px;'},'');curText1=Builder.node('div',{style:spanText+';top:0px;color:#555;left:5px;'},'');}
else{curDiv=Builder.node('div',{style:contentItemDiv+';left:14px;'},'');curText1=Builder.node('div',{style:spanText+';top:0px;color:#555;'},'');}
curText1.innerHTML=curItem.description;if(curItem.subtitle!=''){if(itemId=='overview')
curSubTitleDiv=Builder.node('div',{style:mctaContentH2Text+';left:4px;'},'');else
curSubTitleDiv=Builder.node('div',{style:mctaContentH2Text+';left:14px;'},'');curSubTitleDiv.innerHTML=curItem.subtitle;if(i>0)
curDiv.appendChild(Builder.node('div',{style:mctaContentH2Text+'position:relative;height:10px;width:210px;left:14px;top:0px;'},''));curDiv.appendChild(curSubTitleDiv);}
curDiv.appendChild(curText1);curPanel.appendChild(curDiv);}}
new Effect.Fade($('contentSpinner'),{duration:1.4,queue:{scope:'hideScope',position:'end'}});}
function showPlainTextContent(itemId,item){var curPanel=$(itemId+'MCTAContent');if(curPanel.innerHTML==''){if(itemId=='overview'){$('mainContentHeaderText').innerHTML='Overview';getOverviewContent();}
else if(itemId=='eventscalendar'){$('mainContentHeaderText').innerHTML='Events Calendar';getEventsCalendarContent();}
else if(itemId=='analystcoverage'){$('mainContentHeaderText').innerHTML='Analyst Coverage';getAnalystCoverageContent();}
else if(itemId=='faqs'){$('mainContentHeaderText').innerHTML='Frequently Asked Questions';getFAQSContent();}}
else{new Effect.Fade($('contentSpinner'),{duration:0.4,queue:{scope:'hideScope',position:'end'}});}
if(itemId!='faqs')
$('mainContentControlWrapper').morph({left:'514px'},{duration:0.3,queue:{scope:'hideScope',position:'end'}});else{var fs=$('faqContentControlWrapper');if(fs.style.left!='514px')
fs.morph({left:'514px'},{duration:0.3,queue:{scope:'hideScope',position:'end'}});}}
function loadFlash(flashFile){movieName=flashFile;var html='<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '+'  codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" '+'  width="508" height="360" style="left:7px;position:absolute;top:0px;" align="middle">'+'<param name="allowScriptAccess" value="sameDomain" />'+'<param name="movie" value="'+movieName+'" />'+'<param name="wmode" value="transparent" />'+'<param name="scale" value="default" />'+'<param name="quality" value="high" />'+'<param name="bgcolor" value="#CCCCCC" />'+'<param name="menu" value="false" />'+'<embed id="flashPlayer" src="'+movieName+'" name="flashPlayer" allowScriptAccess="sameDomain" '+'   type="application/x-shockwave-flash" scale="default" quality="high" wmode="transparent" menu="false" pluginspage="http://www.adobe.com/go/getflashplayer" '+'   quality="high" bgcolor="#333" scale="default" width="508" height="360" align="middle" style="top:0px;left:5px;z-index:5;" />'+'</object>';createFlashContainer(html);}
function unloadFlash(){if(isFlashLoaded()){new Effect.Appear($('contentSpinner'),{duration:0.4,queue:{scope:'hideScope',position:'end'}});var flashContainer=$('flashdiv');if(flashContainer.parentNode)
{flashContainer.parentNode.removeChild(flashContainer);}
new Effect.Event({delay:1.0,duration:0.0,beforeUpdate:function()
{$('mainContentTextArea').style.visibility='visible';new Effect.Fade($('contentSpinner'),{duration:1.4,queue:{scope:'hideScope',position:'end'}});}});}}
function isFlashLoaded(){var fd=$('flashdiv');if(fd==undefined)
return false;else if(fd==null)
return false;else
return true;}
function createFlashContainer(html){var flashContainer=$('flashdiv');if(!isFlashLoaded()){var mccw=$('mainContentControlWrapper');if(mccw.style.left!='530px'){mccw.morph({left:'530px'},{duration:0.4,queue:{scope:'initScope',position:'end'}});}
flashContainer=document.createElement('div');flashContainer.setAttribute("id","flashdiv");flashContainer.setAttribute("align","center");flashContainer.setAttribute("z-index","10");var mctaDiv=$('mainContentTextArea').parentNode;mctaDiv.appendChild(flashContainer);}
$('mainContentTextArea').style.visibility='hidden';flashContainer.innerHTML=html;return flashContainer;}
function loadEventsCalendarContent(upcomingItems,archivedItems){var lineHeaderItem='position:absolute;top:0px;left:10px;width:380px;height:28px;font-family:Arial,Helvetica,sans-serif;font-size:11pt;font-weight:bold;color:#5883AD;';var lineH2Item='position:absolute;left:10px;top:30px;width:500px;height:18px;font-family:Arial,Helvetica,sans-serif;font-size:9pt;font-weight:bold;color:#666;';var lineItem='position:relative;left:10px;width:500px;height:18px;font-family:Arial,Helvetica,sans-serif;font-size:9pt;color:#666;';var spacerItem='position:relative;left:10px;width:500px;height:18px;';if(upcomingItems!=null){var curPanel=$('eventscalendarMCTAContent');var topValue=50;curPanel.appendChild(addLineItem("Upcoming Events",lineHeaderItem));curPanel.appendChild(Builder.node('div',{style:spacerItem},''));curPanel.appendChild(addLineItem("Date",lineH2Item+';left:10px;width:120px;'));curPanel.appendChild(addLineItem("Event",lineH2Item+';left:145px;width:120px;'));curPanel.appendChild(Builder.node('div',{style:spacerItem},''));curPanel.appendChild(addListItems(upcomingItems,lineItem,topValue));topValue=upcomingItems.length*35+18;curPanel.appendChild(Builder.node('div',{style:spacerItem},''));topValue=topValue+38;curPanel.appendChild(addLineItem("Archived Events",lineHeaderItem+';top:'+topValue+'px'));curPanel.appendChild(Builder.node('div',{style:spacerItem},''));topValue=topValue+38;curPanel.appendChild(addLineItem("Date",lineH2Item+';left:10px;width:120px;top:'+topValue+'px'));curPanel.appendChild(addLineItem("Event",lineH2Item+';left:145px;width:120px;top:'+topValue+'px'));curPanel.appendChild(Builder.node('div',{style:spacerItem},''));topValue=topValue+18;curPanel.appendChild(addListItems(archivedItems,lineItem,topValue));}
new Effect.Fade($('contentSpinner'),{duration:1.4,queue:{scope:'hideScope',position:'end'}});}
function addListItems(list,itemStyle,topValue){var curItem,curDate,curText,curText2;var top=topValue;var listSize=list.length*35;var curDiv=Builder.node('div',{style:itemStyle+';position:absolute;height:'+listSize+'px;top:'+top+'px'},'');var divTop=0;for(var i=0;i<list.length;i++){curItem=list[i];curDate=Builder.node('div',{style:itemStyle+';position:absolute;width:120px;left:5px;top:'+divTop+'px;'},'');curText=Builder.node('div',{style:itemStyle+';position:absolute;width:370px;left:140px;top:'+divTop+'px;'},'');divTop=divTop+15;curText2=Builder.node('div',{style:itemStyle+';position:absolute;top:15px;width:370px;left:140px;top:'+divTop+'px;'},'');curDate.innerHTML=curItem.date;curText.innerHTML=curItem.name;curText2.innerHTML=curItem.type;curDiv.appendChild(curDate);curDiv.appendChild(curText);curDiv.appendChild(curText2);divTop=divTop+20;}
return curDiv;}
function addLineItem(itemText,lineStyle){var curDiv=Builder.node('div',{style:lineStyle},'');curDiv.innerHTML=itemText;return curDiv;}
function moNewsItem(e){var item=(e.srcElement!=null)?e.srcElement:e.target;var itemId=item.id;if(itemId.indexOf('newsNumber')>-1)return;itemId=itemId.gsub('newsTitle','');itemId=itemId.gsub('newsDate','');$('newsNumber'+itemId).style.color=(e.type=='mouseover')?'#EAA758':'#EAEAEA';var i=0;}
function showNewsItems(e){var item=(e.srcElement!=null)?e.srcElement:e.target;var itemId=item.id.gsub('newsTitle','');itemId=itemId.gsub('newsDate','');var cur=newsItems[itemId];$('newsdhpHeaderText').innerHTML=cur.title;$('newsdhpSubTitleText').innerHTML=cur.date;$('newsdhpDescriptionText').innerHTML=cur.description;var dhpNI=$('dhpNewsImage');dhpNI.src=(cur.imagePath=='')?'../images/sed.jpg':cur.imagePath;dhpNI.onload=function addMargins(){var iHeight=parseInt(dhpNI.getHeight());var iWidth=parseInt(dhpNI.getWidth());var oimd=$('dhpNewsImageWrapper');var yMargin=0;var xMargin=Math.round((oimd.offsetWidth-iWidth)/2)-5;oimd.style.margin=yMargin+'px '+xMargin+'px '+yMargin+'px '+xMargin+'px;';}
$('newsDetailHoverPanel').morph({left:'138px'},{duration:0.8,queue:{scope:'showScope',position:'end'}});$('dhpCover').style.left='0px';dhpScroller.slider.setValue(0,0);}
function closeNewsItemPanel(e){var dhp=$('newsDetailHoverPanel');if(dhp.style.left=='138px'){dhp.morph({left:'1030px'},{duration:0.7,queue:{scope:'showScope',position:'end'}});$('dhpCover').style.left='1030px';}}
function printItem(){var title=$('newsdhpHeaderText').innerHTML;var subTitle=$('newsdhpSubTitleText').innerHTML;var description=$('newsdhpDescriptionText').innerHTML;var output="<html>\n"+"<head>\n"+"<title>Stantec - News Releases & Announcements</title>\n"+"<script>\n"+"function step1() {\n"+"  setTimeout('step2()', 10);\n"+"}\n"+"function step2() {\n"+"  window.print();\n"+"}\n"+"</scr"+"ipt>\n"+"</head>\n"+"<body onLoad='step1()'>\n"+"<img src=\"../images/logo_small.gif\" /><h2 style=\"font-family:Arial;font-weight:bold;font-size:12pt;color:#00457C\">"+title+"</h2>\n"+"<h2 style=\"font-family:Arial;font-size:9pt;color:#333\">"+subTitle+"</h2>\n"+"<span style=\"font-family:Arial;font-size:9pt;\">"+description+"</span>\n"+"</body>\n"+"</html>\n";var iLeft=(window.screen.availWidth-820)*0.5;var iTop=(window.screen.availHeight-653)*0.5;var iHeight=(window.screen.availHeight-653)*0.5;var options="directories=no,toolbar=no,location=no,status=no,resizable=yes,menubar=no,scrollbars=yes,width=820,height=653,top="+iHeight+",left="+iLeft;var tempWindow=window.open("about:blank","_new",options);tempWindow.document.open();tempWindow.document.write(output);tempWindow.document.close();}
function loadFAQsContent(items){var spanQuestion='position:relative;left:10px;top:0px;width:494px;font-family:Arial, Arial, Helvetica, sans-serif; line-height: 14pt;font-size: 9pt; font-weight:bold; color:#111;';var curDiv=$('faqsMCTAContent');var curItem;var cq,question,answer;var c;var cqWrapper=Builder.node('div',{style:spanQuestion+';top:0px;width:495px;color:#840c2c;cursor:pointer;margin:0px;padding:0px;'},'');cqWrapper.id='questionsWrapper';var altItem=';top:0px;width:495px;color:maroon;cursor:pointer;background-color:#EAEAEA;height:20px;';var regItem=';top:0px;width:495px;color:#666;cursor:pointer;height:20px;margin:0px;padding:0px;';var itemHeight=items.length*30;cqWrapper.style.height=itemHeight+'px';var curQuestionDiv;for(var i=0;i<items.length;i++){curItem=items[i];c=(i+1)+'. '+curItem.question;question=Builder.node('div',{style:spanQuestion+';width:495px;color:#5883AD'},c);question.id='question'+i;answer=Builder.node('div',{style:spanText+';top:20px;width:495px;color:#000;left:10px;'},'');hrLine=Builder.node('div',{style:spanText+';width:495px;color:#000;'},'');answer.innerHTML=curItem.answer;hrLine.innerHTML='<hr>';curDiv.appendChild(question);curDiv.appendChild(answer);curDiv.appendChild(Builder.node('div',{style:spanText+';height:14px;width:495px;color:#000;'},''));curDiv.appendChild(hrLine);curDiv.appendChild(Builder.node('div',{style:spanText+';height:28px;width:495px;color:#000;'},''));}
new Effect.Fade($('contentSpinner'),{duration:1.4,queue:{scope:'hideScope',position:'end'}});}
function moQuestion(e){var item=(e.srcElement!=null)?e.srcElement:e.target;var ii=item.id.gsub('questionLink','');var il=parseInt(ii)%2;item.style.color=(e.type=='mouseover')?'#5883AD':(il==0)?'#333':'maroon';}
function moveToItem(e){var item=(e.srcElement!=null)?e.srcElement:e.target;var curItemId=item.id.gsub('Link','');var body=$('faqsMCTAContent');var topText=body.style.marginTop;var topValue=(topText=='')?0:Math.round(parseFloat(topText.gsub('px','')));var contactTop=$(curItemId).offsetTop;scrollStart=Math.abs(topValue);scrollToValue=contactTop;if(scrollStart>scrollToValue)
scrollUp();else
scrollDown();}
function moveSlider(sliderValue){faqScroller.slider.setValue(sliderValue,0);}
function scrollDown(){if((scrollStart+scrollDistance)>scrollToValue){faqScroller.updateView(scrollToValue);moveSlider(scrollToValue);return;}
if(scrollStart<scrollToValue){scrollStart=scrollStart+scrollDistance;faqScroller.updateView(scrollStart);moveSlider(scrollStart);setTimeout('scrollDown()',1);}
else if(scrollStart>=scrollToValue){faqScroller.updateView(scrollStart);moveSlider(scrollStart);}}
function scrollUp(){if((scrollStart-scrollDistance)<scrollToValue){faqScroller.updateView(scrollToValue);moveSlider(scrollToValue);return;}
if(scrollStart>scrollToValue){scrollStart=scrollStart-scrollDistance;faqScroller.updateView(scrollStart);moveSlider(scrollStart);setTimeout('scrollUp()',1);}
else if(scrollStart<=scrollToValue){faqScroller.updateView(scrollStart);moveSlider(scrollStart);}}
var initRequestForm=false;function showRequestForm(e){var item=(e.srcElement!=null)?e.srcElement:e.target;if(!initRequestForm){var rfcb=$('rfCloseButton');Event.observe(rfcb,'click',closeRequestForm,false);Event.observe(rfcb,'mouseover',moCloseRequest,false);Event.observe(rfcb,'mouseout',moCloseRequest,false);initRequestForm=true;}
$('requestPanel').morph({top:'28px'},{duration:0.8,queue:{scope:'showScope',position:'end'}});$('dhpCover').style.left='0px';}
function closeRequestForm(){var dhp=$('requestPanel');if(dhp.style.top=='28px'){dhp.morph({top:'1030px'},{duration:0.7,queue:{scope:'showScope',position:'end'}});$('dhpCover').style.left='1030px';}}
function moCloseRequest(e){var item=(e.srcElement!=null)?e.srcElement:e.target;item.style.color=(e.type=='mouseover')?'#EAA758':'#FFF';}
function showFirefoxCdnStockContent(e){var item=(e.srcElement!=null)?e.srcElement:e.target;if(!isRefreshingFromHistory)
{var state=new State();if(item)
{state.itemId=item.id;state.itemName='TSX:STN';}
setTitle();currentState=state;sendCurrentStateToHistory();setTimeout("setTitle();",400);}
else
{var obj=$(item.id);if(obj)
currentState.itemName='TSX:STN';setTitle();}
resetStockView();$('mainContentHeaderText').innerHTML='TSX:STN';new Effect.Appear($('contentSpinner'),{duration:0.4,queue:{scope:'hideScope',position:'end'}});hideDocPanel();$('cdnSQTAContent').style.width='516px';$('cdnStockQuoteTextAreaWrapper').style.width='516px';var ffscWrapperDiv=Builder.node('div',{style:ffStockContentDiv},'');ffscWrapperDiv.id='cdnffscWrapperDiv';var spanWrapper=Builder.node('div',{style:ffWrapperSpanDiv},'');var chartSpan=Builder.node('div',{style:ffChartSpan},'View Chart');var quoteSpan=Builder.node('div',{style:ffQuoteSpan},'View Quote');var contentWrapperDiv=Builder.node('div',{style:ffContentWrapperDiv},'');contentWrapperDiv.id='cdnContentWrapperDiv';var chartDiv=Builder.node('div',{style:ffCdnChartDiv},'');var quoteDiv=Builder.node('div',{style:ffCdnQuoteDiv},'');chartDiv.id='cdnffscChartDiv';quoteDiv.id='cdnffscQuoteDiv';Event.observe(chartSpan,'click',showCdnFFSCChartDiv,false);Event.observe(quoteSpan,'click',showCdnFFSCQuoteDiv,false);Event.observe(chartSpan,'mouseover',moElement,false);Event.observe(quoteSpan,'mouseover',moElement,false);Event.observe(chartSpan,'mouseout',moElement,false);Event.observe(quoteSpan,'mouseout',moElement,false);spanWrapper.appendChild(chartSpan);spanWrapper.appendChild(quoteSpan);contentWrapperDiv.appendChild(chartDiv);contentWrapperDiv.appendChild(quoteDiv);ffscWrapperDiv.appendChild(spanWrapper);ffscWrapperDiv.appendChild(contentWrapperDiv);$('cdnSQTAContent').appendChild(ffscWrapperDiv);$('cdnStockContentControlWrapper').morph({left:'530px'},{duration:0.4,queue:{scope:'moveScope',position:'end'}});var mc=$('mainContent');var cdnStockContent=$('cdnStockContent');var usStockContent=$('usStockContent');if((mc.style.top=='1px')||(mc.style.top=='')){mc.morph({top:'-490px'},{duration:1.0,queue:{scope:'moveScope',position:'with-last'}});}
else if(usStockContent.style.top=='1px'){mc.style.top='-490px';var uswd=$('usffscWrapperDiv');if(uswd!=null)uswd.innerHTML='';usStockContent.morph({top:'490px'},{duration:1.0,queue:{scope:'moveScope',positions:'with-last'}});}
cdnStockContent.morph({top:'1px'},{duration:1.0,queue:{scope:'moveScope',position:'with-last'}});$('stockQuoteHeaderText').innerHTML='Canadian Stock Quote';setTimeout('finishShowCDNFFCSContent()',1100);}
function showCdnFFSCChartDiv(){new Effect.Fade($('cdnffscQuoteDiv'),{duration:0.4,queue:{scope:'moveScope',position:'end'}});setTimeout('stepShowCdnFFSCChartDiv()',400);}
function stepShowCdnFFSCChartDiv(){$('cdnffscQuoteDiv').innerHTML='';setTimeout('finishShowCdnFFSCChartDiv()',0);}
function finishShowCdnFFSCChartDiv(){$('cdnContentWrapperDiv').morph({left:'0px'},{duration:0.0,queue:{scope:'moveScope',position:'end'}});new Effect.Appear($('cdnffscChartDiv'),{duration:0.7,queue:{scope:'moveScope',position:'end'}});$('cdnffscChartDiv').innerHTML='<iframe id=\"stnQuoteFrame\" src=\"http://www.integratir.com/quote_chart.asp?ticker=t.stn\" width=\"504\" height=\"1250px\" frameborder=\"0\" scrolling=\"no\">'+'<ilayer src=\"http://www.integratir.com/quote_chart.asp?ticker=t.stn\"><a href=\"http://www.integratir.com/quote_chart.asp?ticker=t.stn\">Stock Quote and Chart</a></ilayer></iframe>';new Effect.Fade($('contentSpinner'),{duration:1.4,queue:{scope:'hideScope',position:'end'}});}
function showCdnFFSCQuoteDiv(){new Effect.Fade($('cdnffscChartDiv'),{duration:0.4,queue:{scope:'moveScope',position:'end'}});setTimeout('stepShowCdnFFSCQuoteDiv()',400);}
function stepShowCdnFFSCQuoteDiv(){$('cdnffscChartDiv').innerHTML='';setTimeout('finishShowCdnFFSCQuoteDiv()',0);}
function finishShowCdnFFSCQuoteDiv(){$('cdnContentWrapperDiv').morph({left:'-510px'},{duration:0.0,queue:{scope:'moveScope',position:'end'}});new Effect.Appear($('cdnffscQuoteDiv'),{duration:0.7,queue:{scope:'moveScope',position:'end'}});$('cdnffscQuoteDiv').innerHTML='<iframe id=\"sxcQuoteFrame\" src=\"http://www.integratir.com/quote_chart.asp?ticker=t.stn\" width=\"504\" height=\"1250px\" frameborder=\"0\" scrolling=\"no\">'+'<ilayer src=\"http://www.integratir.com/quote_chart.asp?ticker=t.stn\"><a href=\"http://www.integratir.com/quote_chart.asp?ticker=t.stn\">Stock Quote and Chart</a></ilayer></iframe>';new Effect.Fade($('contentSpinner'),{duration:1.4,queue:{scope:'hideScope',position:'end'}});}
function finishShowCDNFFCSContent(){$('cdnffscChartDiv').innerHTML='<iframe id=\"sxcQuoteFrame\" src=\"http://www.integratir.com/quote_chart.asp?ticker=t.stn\" width=\"504\" height=\"1250px\" frameborder=\"0\" scrolling=\"no\">'+'<ilayer src=\"http://www.integratir.com/quote_chart.asp?ticker=t.stn\"><a href=\"http://www.integratir.com/quote_chart.asp?ticker=t.stn\">Stock Quote and Chart</a></ilayer></iframe>';$('cdnffscWrapperDiv').style.display='block';new Effect.Fade($('contentSpinner'),{duration:0.4,queue:{scope:'hideScope',position:'end'}});}
function showFirefoxUSStockContent(e){var item=(e.srcElement!=null)?e.srcElement:e.target;if(!isRefreshingFromHistory)
{var state=new State();if(item)
{state.itemId=item.id;state.itemName='NYSE: STN';}
setTitle();currentState=state;sendCurrentStateToHistory();setTimeout("setTitle();",400);}
else
{var obj=$(item.id);if(obj)
currentState.itemName='NYSE: STN';setTitle();}
resetStockView();$('mainContentHeaderText').innerHTML='NYSE: STN';new Effect.Appear($('contentSpinner'),{duration:0.4,queue:{scope:'hideScope',position:'end'}});hideDocPanel();$('usSQTAContent').style.width='516px';$('usStockQuoteTextAreaWrapper').style.width='516px';var ffscWrapperDiv=Builder.node('div',{style:ffStockContentDiv},'');ffscWrapperDiv.id='usffscWrapperDiv';var spanWrapper=Builder.node('div',{style:ffWrapperSpanDiv},'');var chartSpan=Builder.node('div',{style:ffChartSpan},'View Chart');var quoteSpan=Builder.node('div',{style:ffQuoteSpan},'View Quote');var contentWrapperDiv=Builder.node('div',{style:ffContentWrapperDiv},'');contentWrapperDiv.id='usContentWrapperDiv';var chartDiv=Builder.node('div',{style:ffUSChartDiv},'');var quoteDiv=Builder.node('div',{style:ffUSQuoteDiv},'');chartDiv.id='usffscChartDiv';quoteDiv.id='usffscQuoteDiv';Event.observe(chartSpan,'click',showUSFFSCChartDiv,false);Event.observe(quoteSpan,'click',showUSFFSCQuoteDiv,false);Event.observe(chartSpan,'mouseover',moElement,false);Event.observe(quoteSpan,'mouseover',moElement,false);Event.observe(chartSpan,'mouseout',moElement,false);Event.observe(quoteSpan,'mouseout',moElement,false);spanWrapper.appendChild(chartSpan);spanWrapper.appendChild(quoteSpan);contentWrapperDiv.appendChild(chartDiv);contentWrapperDiv.appendChild(quoteDiv);ffscWrapperDiv.appendChild(spanWrapper);ffscWrapperDiv.appendChild(contentWrapperDiv);$('usSQTAContent').appendChild(ffscWrapperDiv);$('usStockContentControlWrapper').morph({left:'530px'},{duration:0.4,queue:{scope:'moveScope',position:'end'}});var mc=$('mainContent');var cdnStockContent=$('cdnStockContent');var usStockContent=$('usStockContent');if(mc.style.top=='-490px'){mc.style.top='-980px';var cwd=$('cdnffscWrapperDiv');if(cwd!=null)cwd.innerHTML='';cdnStockContent.morph({top:'-490px'},{duration:1.0,queue:{scope:'moveScope',position:'with-last'}});}
else if((mc.style.top=='1px')||(mc.style.top=='')){$('mainContent').morph({top:'-980px'},{duration:1.0,queue:{scope:'moveScope',position:'with-last'}});cdnStockContent.style.top='-490px';}
usStockContent.morph({top:'1px'},{duration:1.0,queue:{scope:'moveScope',positions:'with-last'}});$('stockQuoteHeaderText').innerHTML='Canadian Stock Quote';setTimeout('finishShowUSFFCSContent()',1100);}
function showUSFFSCChartDiv(){new Effect.Fade($('usffscQuoteDiv'),{duration:0.4,queue:{scope:'moveScope',position:'end'}});setTimeout('stepShowUSFFSCChartDiv()',400);}
function stepShowUSFFSCChartDiv(){$('usffscQuoteDiv').innerHTML='';setTimeout('finishShowUSFFSCChartDiv()',0);}
function finishShowUSFFSCChartDiv(){$('usContentWrapperDiv').morph({left:'0px'},{duration:0.0,queue:{scope:'moveScope',position:'end'}});new Effect.Appear($('usffscChartDiv'),{duration:0.7,queue:{scope:'moveScope',position:'end'}});$('usffscChartDiv').innerHTML='<iframe id=\"sxcQuoteFrame\" src=\"http://www.integratir.com/quote_chart.asp?ticker=STN\" width=\"504\" height=\"1250px\" frameborder=\"0\" scrolling=\"no\">'+'<ilayer src=\"http://www.integratir.com/quote_chart.asp?ticker=sxc\"><a href=\"http://www.integratir.com/quote_chart.asp?ticker=STN\">Stock Quote and Chart</a></ilayer></iframe>';new Effect.Fade($('contentSpinner'),{duration:1.4,queue:{scope:'hideScope',position:'end'}});}
function showUSFFSCQuoteDiv(){new Effect.Fade($('usffscChartDiv'),{duration:0.4,queue:{scope:'moveScope',position:'end'}});setTimeout('stepShowUSFFSCQuoteDiv()',400);}
function stepShowUSFFSCQuoteDiv(){$('usffscChartDiv').innerHTML='';setTimeout('finishShowUSFFSCQuoteDiv()',0);}
function finishShowUSFFSCQuoteDiv(){$('usContentWrapperDiv').morph({left:'-510px'},{duration:0.0,queue:{scope:'moveScope',position:'end'}});new Effect.Appear($('usffscQuoteDiv'),{duration:0.7,queue:{scope:'moveScope',position:'end'}});$('usffscQuoteDiv').innerHTML='<iframe id=\"sxcQuoteFrame\" src=\"http://www.integratir.com/quote_chart.asp?ticker=STN\" width=\"504\" height=\"1250px\" frameborder=\"0\" scrolling=\"no\">'+'<ilayer src=\"http://www.integratir.com/quote_chart.asp?ticker=sxc\"><a href=\"http://www.integratir.com/quote_chart.asp?ticker=STN\">Stock Quote and Chart</a></ilayer></iframe>';new Effect.Fade($('contentSpinner'),{duration:1.4,queue:{scope:'hideScope',position:'end'}});}
function finishShowUSFFCSContent(){$('usffscChartDiv').innerHTML='<iframe id=\"sxcQuoteFrame\" src=\"http://www.integratir.com/quote_chart.asp?ticker=STN\" width=\"504\" height=\"1250px\" frameborder=\"0\" scrolling=\"no\">'+'<ilayer src=\"http://www.integratir.com/quote_chart.asp?ticker=sxc\"><a href=\"http://www.integratir.com/quote_chart.asp?ticker=STN\">Stock Quote and Chart</a></ilayer></iframe>';$('usffscWrapperDiv').style.display='block';new Effect.Fade($('contentSpinner'),{duration:1.4,queue:{scope:'hideScope',position:'end'}});}
function showCdnStockContent(e){resetStockView();var item=(e==null)?$('overview'):(e.srcElement!=null)?e.srcElement:e.target;var curItemId=item.id;if(!isRefreshingFromHistory)
{var state=new State();if(curItemId)
{state.itemId=curItemId;state.itemName='TSX:STN';}
setTitle();currentState=state;sendCurrentStateToHistory();setTimeout("setTitle();",400);}
else
{var obj=$(currentState.itemId);if(obj)
currentState.itemName='TSX:STN';setTitle();setTitle();}
$('mainContentHeaderText').innerHTML='TSX:STN';if(cdnSCScroller==null){cdnSCScroller=new Control.Scroller('cdnSQTAContent','sccHandle','sccTrack',{visibleHeight:446,delta:5});}
cdnSCScroller.slider.setValue(0,0);hideDocPanel();var mc=$('mainContent');var cdnStockContent=$('cdnStockContent');var usStockContent=$('usStockContent');if((mc.style.top=='1px')||(mc.style.top=='')){mc.morph({top:'-490px'},{duration:1.0,queue:{scope:'moveScope',position:'with-last'}});}
else if(usStockContent.style.top=='1px'){mc.style.top='-490px';cdnStockContent.style.top='-490px';usStockContent.morph({top:'490px'},{duration:1.0,queue:{scope:'moveScope',positions:'with-last'}});}
cdnStockContent.morph({top:'1px'},{duration:1.0,queue:{scope:'moveScope',position:'with-last'}});$('stockQuoteHeaderText').innerHTML='Canadian Stock Quote';var cdnccw=$('cdnStockContentControlWrapper');if(cdnccw.style.left!='514px')
cdnccw.morph({left:'514px'},{duration:0.4,queue:{scope:'moveScope',position:'with-last'}});$('cdnSQTAContent').innerHTML='<iframe id=\"stnQuoteFrame\" src=\"http://www.integratir.com/quote_chart.asp?ticker=t.stn\" width=\"504\" height=\"1200px\" frameborder=\"0\" scrolling=\"no\">'+'<ilayer src=\"http://www.integratir.com/quote_chart.asp?ticker=t.stn\"><a href=\"http://www.integratir.com/quote_chart.asp?ticker=t.stn\">Stock Quote and Chart</a></ilayer></iframe>';new Effect.Fade($('contentSpinner'),{duration:1.4,queue:{scope:'moveScope',position:'end'}});}
function showUSStockContent(e){resetStockView();$('mainContentHeaderText').innerHTML='NYSE: STN';var item=(e==null)?$('overview'):(e.srcElement!=null)?e.srcElement:e.target;var curItemId=item.id;if(!isRefreshingFromHistory)
{var state=new State();if(curItemId)
{state.itemId=curItemId;state.itemName='NYSE: STN';}
setTitle();currentState=state;sendCurrentStateToHistory();setTimeout("setTitle();",400);}
else
{var obj=$(currentState.itemId);if(obj)
currentState.itemName='NYSE: STN';setTitle();setTitle();}
if(usSCScroller==null){usSCScroller=new Control.Scroller('usSQTAContent','ussccHandle','ussccTrack',{visibleHeight:446,delta:5});}
usSCScroller.slider.setValue(0,0);hideDocPanel();var mc=$('mainContent');var cdnStockContent=$('cdnStockContent');var usStockContent=$('usStockContent');if(mc.style.top=='-490px'){mc.style.top='-980px';cdnStockContent.morph({top:'-490px'},{duration:1.0,queue:{scope:'moveScope',position:'with-last'}});}
else if((mc.style.top=='1px')||(mc.style.top=='')){$('mainContent').morph({top:'-980px'},{duration:1.0,queue:{scope:'moveScope',position:'with-last'}});}
usStockContent.morph({top:'1px'},{duration:1.0,queue:{scope:'moveScope',positions:'with-last'}});var usccw=$('usStockContentControlWrapper');if(usccw.style.left!='514px')
usccw.morph({left:'514px'},{duration:0.4,queue:{scope:'moveScope',position:'with-last'}});$('usSQTAContent').innerHTML='<iframe id=\"sxcQuoteFrame\" src=\"http://www.integratir.com/quote_chart.asp?ticker=STN\" width=\"504\" height=\"1200px\" frameborder=\"0\" scrolling=\"no\">'+'<ilayer src=\"http://www.integratir.com/quote_chart.asp?ticker=sxc\"><a href=\"http://www.integratir.com/quote_chart.asp?ticker=STN\">Stock Quote and Chart</a></ilayer></iframe>';new Effect.Fade($('contentSpinner'),{duration:1.4,queue:{scope:'moveScope',position:'end'}});}
function quoteOver(e)
{var item=(e.srcElement!=null)?e.srcElement:e.target;if((item.id=='canadaQuote')&&(!caMiniQuoteLoaded))
return;else if((item.id=='usQuote')&&(!usMiniQuoteLoaded))
return;item.style.border='2px #EAA758 solid';}
function quoteOut(e)
{var item=(e.srcElement!=null)?e.srcElement:e.target;if((item.id=='canadaQuote')&&(!caMiniQuoteLoaded))
return;else if((item.id=='usQuote')&&(!usMiniQuoteLoaded))
return;item.style.border='';}
﻿var titlePrefix="Stantec";var State=Class.create();State.prototype={itemId:null,itemName:null,initialize:function(itemId,itemName)
{this.itemId=itemId;this.itemName=itemName;},copy:function(other)
{this.itemId=other.itemId;this.itemName=other.itemName;},getName:function()
{if(this.itemName==null)
return"Investor Relations";return this.itemName;}}
var currentState=null;var isRefreshingFromHistory=false;Event.observe(window,'load',function(){});function initialize()
{dhtmlHistory.addListener(handleHistoryChange);if(dhtmlHistory.isFirstLoad())
{firstLoad=true;}
if(dhtmlHistory.getCurrentLocation())
{currentState=getStateFromLocation(dhtmlHistory.getCurrentLocation());setTitle();dhtmlHistory.addListener(handleHistoryChange);}
if(currentState==null)
{currentState=new State();}
else
{handleHistoryChange('ir_'+currentState.itemId,currentState);}}
function getStateFromLocation(location)
{if(location)
{var str=null;if(location.indexOf('ir_')>-1)
{str=location.replace('ir_','');}
if(str)
{var state=new State();state.itemId=str;if($(str))
{if(state.itemId=="usQuote")
{state.itemName='NYSE:SXC';}
else if(state.itemId=="canadaQuote")
{state.itemName='TSX:STN';}
else
{state.itemName=$(str).innerHTML;}
return state;}
return null;}
return null;}
return null;}
function handleHistoryChange(newLocation,historyData){var histState=historyData;if((newLocation!=null)&&(histState==null))
{histState=getStateFromLocation(newLocation);}
if(histState)
{var state=null;if(newLocation)
{state=getStateFromLocation(newLocation);}
if(currentState==null)
currentState=new State();currentState.copy(histState);setTitle();if(dhtmlHistory.isInternetExplorer()){addToTitle(window.document.title);}
isRefreshingFromHistory=true;if(state.itemId!=currentState.itemId)
{currentState.copy(state);}
e=new Object();e.srcElement=$(currentState.itemId);if(e.srcElement)
{unloadFlash();if(currentState.itemId.indexOf('Quote')!=-1)
{if(navigator.userAgent.indexOf("IE")!=-1){if(currentState.itemId=="usQuote")
{showUSStockContent(e);}
else if(currentState.itemId=="canadaQuote")
{showCdnStockContent(e);}}
else{if(currentState.itemId=="usQuote")
{showFirefoxUSStockContent(e);}
else if(currentState.itemId=="canadaQuote")
{showFirefoxCdnStockContent(e);}}}
else
{showContent(e);}}
else
{showContent(null);}
setTitle();}}
function sendCurrentStateToHistory(){addToTitle(window.document.title);if(currentState.itemId){try
{dhtmlHistory.add("ir_"+currentState.itemId,currentState);}
catch(e)
{}}}
function addToTitle(title){var historyFrame=document.getElementById("DhtmlHistoryFrame");if(historyFrame){var title='';if((currentState==null)||(currentState.getName()==null))
{title=titlePrefix;}
else
{title=titlePrefix+' - '+stripTitle(currentState.getName());}
historyFrame.title=stripTitle(title);historyFrame.document.title=stripTitle(title);}}
function stripTitle(title){if(title){var sTitle=title.replace('<br>',' ');sTitle=sTitle.replace('<BR>',' ');sTitle=sTitle.replace('&amp;','&');return sTitle;}
return titlePrefix;}
function setTitle(){var titleObj=null;if(window.parent)
{titleObj=window.parent.document;}
else
{titleObj=window.document;}
if((currentState==null)||(currentState.getName()==null))
{titleObj.title=titlePrefix+"- Investor Relations";}
else
{titleObj.title=titlePrefix+' - '+stripTitle(currentState.getName());}}