<!--
var scriptInstances = document.getElementsByTagName('script');var scriptPath = (scriptInstances[0].src.substring(0,scriptInstances[2].src.indexOf('script')));
checkJavascript = function () {var head = document.getElementsByTagName("head")[0];if (head) {var scriptStyles = document.createElement("link");	scriptStyles.rel = "stylesheet"; scriptStyles.type = "text/css"; scriptStyles.href = scriptPath + "style/hide_with_script.css";head.appendChild(scriptStyles);}}

checkJavascript();

if(location.href.indexOf('condos_townhomes')>-1){with(document){write("<style type='text/css'>");write("#buttonCondos a, #buttonCondos a:hover {");write("background-position: -53px -160px;");write("}");write("#buttonHome a {");write("background-position: 0px -40px;");write("}");write("#buttonHome a:hover {");write("background-position: 0px -120px;");write("}");write("</style>");}}else if(location.href.indexOf('international')>-1){with(document){write("<style type='text/css'>");write("#buttonInternational a, #buttonInternational a:hover {");write("background-position: -195px -160px;");write("}");write("#buttonCondos a {");write("background-position: -53px -40px;");write("}");write("#buttonCondos a:hover {");write("background-position: -53px -120px;");write("}");write("</style>");}}else if(location.href.indexOf('residential_resales')>-1){with(document){write("<style type='text/css'>");write("#buttonResidential a, #buttonResidential a:hover {");write("background-position: -353px -160px;");write("}");write("#buttonInternational a {");write("background-position: -195px -40px;");write("}");write("#buttonInternational a:hover {");write("background-position: -195px -120px;");write("}");write("</style>");}}else if(location.href.indexOf('agents')>-1){with(document){write("<style type='text/css'>");write("#buttonAgents a, #buttonAgents a:hover {");write("background-position: -480px -160px;");write("}");write("#buttonResidential a {");write("background-position: -353px -40px;");write("}");write("#buttonResidential a:hover {");write("background-position: -353px -120px;");write("}");write("</style>");}}else if(location.href.indexOf('developers')>-1){with(document){write("<style type='text/css'>");write("#buttonDevelopers a, #buttonDevelopers a:hover {");write("background-position: -558px -160px;");write("}");write("#buttonAgents a {");write("background-position: -480px -40px;");write("}");write("#buttonAgents a:hover {");write("background-position: -480px -120px;");write("}");write("</style>");}}else if(location.href.indexOf('about_toronto')>-1){with(document){write("<style type='text/css'>");write("#buttonToronto a, #buttonToronto a:hover {");write("background-position: -662px -160px;");write("}");write("#buttonDevelopers a {");write("background-position: -558px -40px;");write("}");write("#buttonDevelopers a:hover {");write("background-position: -558px -120px;");write("}");write("</style>");}}else if(location.href.indexOf('about_baker')>-1){with(document){write("<style type='text/css'>");write("#buttonBaker a, #buttonBaker a:hover {");write("background-position: -765px -160px;");write("}");write("#buttonToronto a {");write("background-position: -662px -40px;");write("}");write("#buttonToronto a:hover {");write("background-position: -662px -120px;");write("}");write("</style>");}}else if(location.href.indexOf('news')>-1){with(document){write("<style type='text/css'>");write("#buttonNews a, #buttonNews a:hover {");write("background-position: -851px -160px;");write("}");write("#buttonBaker a {");write("background-position: -765px -40px;");write("}");write("#buttonBaker a:hover {");write("background-position: -765px -120px;");write("}");write("</style>");}}else if(location.href.indexOf('contact')>-1){with(document){write("<style type='text/css'>");write("#buttonContact a, #buttonContact a:hover {");write("background-position: -894px -160px;");write("}");write("#buttonNews a {");write("background-position: -851px -40px;");write("}");write("#buttonNews a:hover {");write("background-position: -851px -120px;");write("}");write("</style>");}}else if((location.href.indexOf('other')>-1)||(location.href.indexOf('account')>-1)||(location.href.indexOf('error_pages')>-1)){}else{with(document){write("<style type='text/css'>");write("#buttonHome a, #buttonHome a:hover {");write("background-position: 0 -160px;");write("}");write("</style>");}}
var mydate=new Date();var year=mydate.getFullYear();var daym=mydate.getDate();var month=mydate.getMonth();if(daym<10) daym="0"+daym;var montharray=new Array('January','February','March','April','May','June','July','August','September','October','November','December');
matchColumns=function(){var divs,contDivs,maxHeight,divHeight,d;divs=document.getElementsByTagName('div');contDivs=[];maxHeight=0;for(var i=0;i<divs.length;i++){if(/\bcolumn\b/.test(divs[i].className)){d=divs[i];contDivs[contDivs.length]=d;if(d.offsetHeight){divHeight=d.offsetHeight;}
else if(d.style.pixelHeight){divHeight=d.style.pixelHeight;}
maxHeight=Math.max(maxHeight,divHeight);}}
for(var i=0;i<contDivs.length;i++){contDivs[i].style.height=maxHeight+"px";}}
function addLoadEvent(func,params){var oldonload = window.onload;if (typeof window.onload != 'function') {window.onload = func;} else {window.onload = function() {oldonload();if (params != null) func(params);else func();}}}

var avenir = { src: scriptPath + '/fonts/avenir.swf' };sIFR.activate(avenir);sIFR.replace(avenir, {selector: 'h1#title', wmode: 'opaque', css: '.sIFR-root {text-transform:uppercase; color: #333333; background-color:#e0dad6;}'});
-->
