// JScript File
//gets a object safely between all browsers
function getElement(sID){if(document.getElementById){return document.getElementById(sID);}else if(document.all){return document.all[sID];}else if(document.layers){return document.layers[sID];}}
window.redirect = function(url){window.location.href = url;}
function toggleAwardLogos(){var defaulttext = $(".AwardDetails").html();$(".AwardLogos a").hover(function(){$(".AwardDetails").html($(this).find("img").attr("alt"));hoverAwardImage($(this).find("img"));},function(){$(".AwardDetails").html(defaulttext);hoverAwardImage($(this).find("img"));});}
function hoverAwardImage(sender){var senderUrl = sender.attr("src");var isHovered = senderUrl.search(/grey/);if (isHovered != -1){newsenderUrl = senderUrl.replace("http://www.ddwilliamson.com/controls/scripts/-grey.gif",".gif");}else {newsenderUrl = senderUrl.replace(".gif","http://www.ddwilliamson.com/controls/scripts/-grey.gif");}sender.attr("src", newsenderUrl);}
$(document).ready(function(){  hideLastNavlinkBorder();correctLastMainNavMargin()}); 
function hideLastNavlinkBorder(){$(".subnavigation1 a:last").css("background-image","none");}
function correctLastMainNavMargin(){$(".navigationparent a:last").css("margin-right","0px");}
