var currentProject; var currentSection; var projectSlot; var localhost = false; //on localhost structure of url is different if(localhost) projectSlot = 5; else projectSlot = 4; var urlStr = ""+window.location+""; var arr = urlStr.split("/"); currentProject = arr[projectSlot]; currentSection = arr[projectSlot-1]; $(document).ready(function(){ if(!theDreadedIE6 && !theDreadedIE7 && !theDreadedIE8 ){ $("#artNavTriggerContainer").bind("mouseenter",function(){ $("#navArt").animate({opacity:1}); $("#artNavTriggerContainer p a").css({color:"#000000"}); }); $("#artNavTriggerContainer").bind("mouseleave",function(){ $("#navArt").animate({opacity:0}); $("#artNavTriggerContainer p a").css({color:"#888"}); }); $("#designNavTriggerContainer").bind("mouseenter",function(){ $("#navDesign").animate({opacity:1}); $("#designNavTriggerContainer p a").css({color:"#000000"}); }); $("#designNavTriggerContainer").bind("mouseleave",function(){ $("#navDesign").animate({opacity:0}); $("#designNavTriggerContainer p a").css({color:"#888"}); }); $("#motionNavTriggerContainer").bind("mouseenter",function(){ $("#navMotion").animate({opacity:1}); $("#motionNavTriggerContainer p a").css({color:"#000000"}); }); $("#motionNavTriggerContainer").bind("mouseleave",function(){ $("#navMotion").animate({opacity:0}); $("#motionNavTriggerContainer p a").css({color:"#888"}); }); $("#aboutNavTriggerContainer").bind("mouseenter",function(){ $("#navAbout").animate({opacity:1}); $("#aboutNavTriggerContainer p a").css({color:"#000000"}); }); $("#aboutNavTriggerContainer").bind("mouseleave",function(){ $("#navAbout").animate({opacity:0}); $("#aboutNavTriggerContainer p a").css({color:"#888"}); }); $("#contactNavTriggerContainer").bind("mouseenter",function(){ $("#navContact").animate({opacity:1}); $("#contactNavTriggerContainer p a").css({color:"#000000"}); }); $("#contactNavTriggerContainer").bind("mouseleave",function(){ $("#navContact").animate({opacity:0}); $("#contactNavTriggerContainer p a").css({color:"#888"}); }); //fade in current nav switch(currentSection) { case "design": $("#navDesign").animate({opacity:1}); $("#designNavTriggerContainer p a").css({color:"#000000"}); $("#designNavTriggerContainer").unbind("mouseenter"); $("#designNavTriggerContainer").unbind("mouseleave"); break; case "art": $("#navArt").animate({opacity:1}); $("#artNavTriggerContainer p a").css({color:"#000000"}); $("#artNavTriggerContainer").unbind("mouseenter"); $("#artNavTriggerContainer").unbind("mouseleave"); break; case "motion": $("#navMotion").animate({opacity:1}); $("#motionNavTriggerContainer p a").css({color:"#000000"}); $("#motionNavTriggerContainer").unbind("mouseenter"); $("#motionNavTriggerContainer").unbind("mouseleave"); break; case "contact": $("#navContact").animate({opacity:1}); $("#contactNavTriggerContainer p a").css({color:"#000000"}); $("#contactNavTriggerContainer").unbind("mouseenter"); $("#contactNavTriggerContainer").unbind("mouseleave"); break; default: $("#navAbout").animate({opacity:1}); $("#aboutNavTriggerContainer p a").css({color:"#000000"}); $("#aboutNavTriggerContainer").unbind("mouseenter"); $("#aboutNavTriggerContainer").unbind("mouseleave"); break; } } }); 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() { 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"; if(currentElement.innerHTML.indexOf(">>")<0) 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"; var FF3MacLeft; var FF3PCLeft; //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") { $("#footerWeb").css({left:leftMax,visibility:"visible"}); }else if (FF3Mac){ if(projectOrShowcase=="showcase"){ //sorry, FF3 Mac is just weird and there's just no other way to do this if(numLinks%2==0) FF3MacLeft = "0px"; else FF3MacLeft = leftMax; switch(currentProject){ case "the_brooklyn_zoo": FF3MacLeft = leftMax; break; // case "yellow_building": FF3MacLeft = "0px"; break; case "Happy_Holidays_2007": FF3MacLeft = "0px"; break; } $("#footerWeb").css({left:FF3MacLeft,visibility:"visible"}); }else{ $("#footerWeb").css({left:leftMax,visibility:"visible"}); } }else if(FF3PC){ switch (currentProject){ case "news" : FF3PCLeft = leftMax; break; case "yellow_building" : FF3PCLeft = leftMax; break; default: FF3PCLeft = "0px"; break; } $("#footerWeb").css({left:FF3PCLeft,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"}); } } /*************************dhtml_lib.js********************************/ function MM_showHideLayers() { //v3.0 var i,p,v,d,obj,args=MM_showHideLayers.arguments; //alert("class=" + args[0]); //when display=none, ns4.7 not even make a layer obj for it, so must use display:block for (i=0; i<(args.length-2); i+=3) //for IE and NS4 if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2]; if (obj.style) { //alert("V=" + v); obj=obj.style; } //12-30-02 - moved this bracket to here from ln 25 b/c ns 4.7 ! support obj.style, just obj.visibility... if(v=="show") { v='visible'; d='block'; } else if(v=="hide") { v='hidden'; d='none'; } else v=v; obj.visibility=v; obj.display=d; //alert(obj.display); //e=document.getElementByID("navigate");e.focus(); //alert(args[0] + v + d); } else //for NS7 (version=5) { //args[0] = class to show/hide //args[2] = command to show or hide args[0] if(parseInt(navigator.appVersion) >=5 && navigator.appName=="Netscape") { if (document.getElementById(args[0])) { if(args[2]=="hide") //call from hide all submenus() { document.getElementById(args[0]).style.visibility="hidden"; document.getElementById(args[0]).style.display="none"; } else if (args[2]=="show") { document.getElementById(args[0]).style.visibility="visible"; document.getElementById(args[0]).style.display="block"; } } } else if(parseInt(navigator.appVersion) <5 && navigator.appName=="Netscape") {//for NS6 obj=document.getElementById(args[0]); obj=obj.style; if(v=="show") { v='visible'; d='block'; } else if(v=="hide") { v='hidden'; d='none'; } else v=v; obj.visibility=v; obj.display=d; //alert(args[0] + " " + obj.visibility); } } } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i=hidden_count) MM_showHideLayers(name,"","hide"); else MM_showHideLayers(name,"","show"); } } function hideallsubmenus() { var num_sections=nsNavSection.length; for (var i=0;i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&iavailWidth) {width = availWidth; height+=35;} //to account for scrollbars if(height>availHeight) {height = availHeight; width+=35;} var height=height.toString(); var width=width.toString(); left=left.toString(); top=top.toString(); address+='&window_width='+availWidth+'&window_height='+availHeight; var left=left.toString(); var win_str="height=" + height + ",width=" + width + ",left=" + left + ",top="+top+",location=no,scrollbars=no,resizable=yes,menu=yes,status=no,menubar=no,toolbar=no,directories=no"; w=window.open(address,'tempWin',win_str,''); w.resizeTo(width,height); w.focus() }function open_win_v2(address,suggestedWindowHeight,suggestedWindowWidth,left) { //07.10.31 - rewrote to accomidate very large images in slideshow - see the loquendi page var availWidth = screen.availWidth; var availHeight = screen.availHeight; //SET DEFAULT VALUES if(suggestedWindowHeight==null) windowHeight = 550; else windowHeight = suggestedWindowHeight; if(suggestedWindowWidth==null) windowWidth = 850; else windowWidth = suggestedWindowWidth; if(left==null) left = 100; //CHECK TO SEE WHETHER THE PHP FUNCTION get_height_width_for_open_win_v2($DBTableObj,$folder_path,$params) SUGGESTS A WINDOW SIZE BIGGER THAN SCREEN SIZE //IF SO, RESIZE WINDOW TO MAXIMUM DIMENSIONS if(suggestedWindowHeight>availHeight) { windowHeight=availHeight; }if(suggestedWindowWidth>availWidth) { windowWidth=availWidth; } var left = (availWidth-windowWidth)/2; var top = (availHeight-windowHeight)/2; address+='&window_width='+windowWidth+'&window_height='+windowHeight; var win_str="height=" + windowHeight + ",width=" + windowWidth + ",left=" + left + ",top=" + top + ",location=no,scrollbars=no,resizable=yes,menu=yes,status=no,menubar=no,toolbar=no,directories=no"; w=window.open(address,'tempWin',win_str,''); w.resizeTo(windowWidth,windowHeight); w.focus() } function create_viewer(img_loc,height,width,caption){ doc_code="Eric Corriel: Memoire Image"; doc_code+=""; doc_code+=""; doc_code+="
"; doc_code+="" +  + ""; doc_code+="
" + caption + "
"; //alert(img_array[img_num].src); //alert("w=" + width + " h=" + (height + 60)); if(caption!="") height+=100; window_str="width=" + width + ",height=" + height + ",left=50,screenX=50,top=10,screenY=10,resizable=yes,directories=no,status=no,scrollbars=no,location=no,menubar=no,toolbar=no"; w=window.open("","img_viewer",window_str,"false"); w.document.clear(); w.resizeTo(width,height); w.document.write(doc_code); w.document.close(); w.focus(); } /************************************obsuf.js*************************************/ var edress = 'desig'+'n_a'+'t_ericcorr'+'iel_d'+'o'+'t_c'+'o'+'m'; function get_edress(){ var re= /_at_/gi; edress = edress.replace(re,'@'); var re= /_dot_/gi; edress = edress.replace(re,'.'); var the_link="mai" + "lto" +":"+edress+"" ; window.location=the_link; }