function changeMathSign(elementId) { var mathSign = document.getElementById(elementId); if (mathSign.innerHTML=="-") mathSign.innerHTML="+"; else mathSign.innerHTML="-"; matchColumnHeights(); fixBorders(); }function matchColumnHeights() { var leftCol = document.getElementById("leftCol"); var centerCol = document.getElementById("centerCol"); if(leftCol){ var leftColHeight = leftCol.offsetHeight; var centerColHeight = centerCol.offsetHeight; if(centerColHeight>leftColHeight) { leftCol.style.height = centerColHeight + "px"; }else { //centerCol.style.height = leftColHeight + "px"; } } //alert("center: " + centerColHeight + " || " + centerCol.offsetHeight); //alert("left: " + leftColHeight + " || " + leftCol.offsetHeight + " || " + leftCol.style.pixelHeight); }function getCurrentProject() { var localhost = false; //on localhost structure of url is different if(localhost) var projectSlot = 5; else var projectSlot = 4; var urlStr = ""+window.location+""; var arr = urlStr.split("/"); currentProject = arr[projectSlot]; if(urlStr.indexOf("mailinglist/")>=1) currentProject="mailinglist"; //needs to come before contact because contact is in the url else if(urlStr.indexOf("news/")>=1) currentProject="news"; else if(urlStr.indexOf("artist_statement/")>=1) currentProject="artist_statement"; else if(urlStr.indexOf("contact/")>=1) currentProject="contact"; currentElement = document.getElementById(currentProject); if(currentElement){ currentParentId = currentElement.parentNode.id; currentParent = document.getElementById(currentParentId); if(currentParent.style.visibility=="hidden") { showhidesubmenu(currentParentId); changeMathSign(currentParentId+"Sign"); } if(!theDreadedIE7 && !theDreadedIE6)currentElement.style.fontWeight="bolder"; currentElement.innerHTML=">>"+currentElement.innerHTML+""; } }function checkEcProjectPage() { checkPageSize(); getCurrentProject(); matchColumnHeights(); configureFooter(); fixBorders(); }function checkHomepage() { checkPageSize(); }function checkPageSize() { var br = new Array(4); br = getBrowser(); var browser_name = br[0]; var browser_version = br[1]; if(browser_name="msie" && browser_version<7) var theDreadedIE=true; else var theDreadedIE=false; if(theDreadedIE) var width = document.body.offsetWidth; else var width = window.innerWidth; if(width<1024) { var left=(window.screen.availWidth-1024)/2; window.screenX=left; window.moveTo(left,window.screenY); window.outerWidth=1024; //Firefox if(theDreadedIE) { window.resizeTo(1024,window.screen.availHeight); }else window.resizeTo(1024,window.outerHeight); } } $(document).ready(function(){ checkEcProjectPage(); $("#inactiveLinks a").addClass("inactive"); $kids = $("#inactiveLinks, #inactiveLinks a").not(".navbarLinkRubric a"); $kids.each(function(){ this.style.color="#888"; }); }); var retestBrowser = true; function configureFooter(){ var $navbarHeight = $("#leftColInner").height(); var $centerHeight = $("#centerCol").height(); var leftMax; if(theDreadedIE6) leftMax = "-174px"; else if(theDreadedIE7 || theDreadedIE8) leftMax = "-178px"; else leftMax = "-175px"; //alert('leftCol: ' + $navbarHeight + ' || center: ' + $centerHeight); if($centerHeight > $navbarHeight){ //FF3 Mac does not render the page correctly when there's an odd number of multimedia links var numLinks = ($("#linksUl li").length); var projectOrShowcase = $("body").attr("id"); if( ((theDreadedIE7 || theDreadedIE8) && projectOrShowcase=="showcase") || (FF3Mac && projectOrShowcase=="project") || ((FF3Mac && numLinks%2==0) || (FF3Mac && numLinks==0)) ) { $("#footerWeb").css({left:leftMax,visibility:"visible"}); }else{ $("#footerWeb").css({left:"0px",visibility:"visible"}); } }else{ $("#footerWeb").css({left:leftMax,visibility:"visible"}); }if(retestBrowser){ retestBrowser = false; setTimeout(configureFooter,500); setTimeout(fixBorders,500); } }function fixBorders(){ var $navbarHeight = $("#leftColInner").height(); var $centerHeight = $("#centerCol").height(); //alert('leftCol: ' + $navbarHeight + ' || center: ' + $centerHeight); if($centerHeight > $navbarHeight){ $("#leftColInner").css({borderWidth:"0px 0px 0px 0px"}); $("#centerCol").css({borderWidth:"0px 1px 0px 1px"}); }else{ $("#leftColInner").css({borderWidth:"0px 1px 0px 0px"}); $("#centerCol").css({borderWidth:"0px 1px 0px 0px"}); } }