// JavaScript Document

var sPage = window.location.pathname;

var temp = new Array();
temp = sPage.split('/');

//var sPage = sPath.substring(sPath.indexOf('saccomckinney.com'+1));  //****PROD LINK ****
//var sPageReal = sPath.substring(sPath.indexOf('newsite')+8);  //****LOCAL LINK ****

//window.alert(temp[1]);
//window.alert(sPage);

document.write('<body>');

document.write('<div id="topHeader">');  //open the top header div

document.write('<div class="left">');
document.write('<div id="leftline1" class="trans3"><!-- a line --></div>');
document.write('<div id="leftline2" class="trans7"><!-- a line --></div></div>');

//local link
document.write('<div id="logo"><img src="/images/logo3.png" alt="Sacco + McKinney"  /></div>');

document.write('<table id="topNav">');
document.write('<tr>');

if(temp[1]=='index.html' || temp[1]=='') document.write('<td class="navOn trans5"><span class="spcr">|</span>Home</td>');
else document.write('<td><a class="navOff" href="/index.html"><span class="spcr">|</span>Home</a></td>');

if(temp[1]=='about.html') document.write('<td class="navOn trans5"><span class="spcr">|</span>About Us</td>');
else document.write('<td><a class="navOff" href="/about.html"><span class="spcr">|</span>About Us</a></td>');

if(temp[1]=='portfolio.html' || temp[1]=='projectsbyclient.html' || temp[1]=='projectsbytype.html' || temp[1]=='colleges') document.write('<td class="navOn trans5"><span class="spcr">|</span>Portfolio</td>');
else document.write('<td><a class="navOff" href="/portfolio.html"><span class="spcr">|</span>Portfolio</a></td>');

if(temp[1]=='careers.html') document.write('<td class="navOn trans5"><span class="spcr">|</span>Careers</td>');
else document.write('<td><a class="navOff" href="/careers.html"><span class="spcr">|</span>Careers</a></td>');

if(temp[1]=='contact.html') document.write('<td class="navOn trans5"><span class="spcr">|</span>Contact Us</td>');
else document.write('<td><a class="navOff" href="/contact.html"><span class="spcr">|</span>Contact Us</a></td>');

document.write('</tr>');
document.write('</table>');

document.write('<div class="left"><div id="rightline1" class="trans3"><!-- a line --></div>');
document.write('<div id="rightline2" class="trans7"><!-- a line --></div></div>');
     
document.write('</div>');  //close the topHeader div

document.write('<div id="topLine" class="horLine"><!-- line under top main links --></div>');

document.write('<div class="white">');
document.write('<div id="content">'); // CONTENT DIV
//document.write('<div id="contentbg" class="trans1">'); //background


