$(document)["ready"](function (){var currentPosition=0;var slideWidth=240;var projectSlides=$(".feature");var newsSlides=$(".newsfeature");var eventsSlides=$(".eventsfeature");var pNumberOfSlides=projectSlides["length"];var nNumberOfSlides=newsSlides["length"];var eNumberOfSlides=eventsSlides["length"];var slideShows;for(var i=0;i<pNumberOfSlides;i++){slideShows=$(".featuredSlideshowContainer"+i);slideShows["wrapAll"]("\x3Cdiv class=\x22ssSlideInner"+i+"\x22\x3E\x3C/div\x3E")["css"]({"float":"left","width":slideWidth});$(".featuredSlideshowContainer"+i)["css"]({"overflow":"hidden","margin":"0 auto","width":"220px","position":"relative"});} ;$(".featuredSlidesContainer")["css"]("overflow","hidden");projectSlides["wrapAll"]("\x3Cdiv id=\x22pSlideInner\x22\x3E\x3C/div\x3E")["css"]({"float":"left","width":slideWidth});newsSlides["wrapAll"]("\x3Cdiv id=\x22nSlideInner\x22\x3E\x3C/div\x3E")["css"]({"float":"left","width":slideWidth});eventsSlides["wrapAll"]("\x3Cdiv id=\x22eSlideInner\x22\x3E\x3C/div\x3E")["css"]({"float":"left","width":slideWidth});$("#pSlideInner")["css"]("width",slideWidth*pNumberOfSlides);$("#nSlideInner")["css"]("width",slideWidth*nNumberOfSlides);$("#eSlideInner")["css"]("width",slideWidth*eNumberOfSlides);for(var i=0;i<pNumberOfSlides;i++){if(i==0){$("#featuredProjects")["prepend"]("\x3Cspan id=\x22pPosition"+i+"\x22 class=\x22controlP\x22 style=\x22background-position:right\x22\x3E\x3C/span\x3E");} else {$("#featuredProjects")["prepend"]("\x3Cspan id=\x22pPosition"+i+"\x22 class=\x22controlP\x22\x3E\x3C/span\x3E");} ;} ;for(var i=0;i<nNumberOfSlides;i++){if(i==0){$("#featuredNews")["prepend"]("\x3Cspan id=\x22nPosition"+i+"\x22 class=\x22controlN\x22 style=\x22background-position:right\x22\x3E\x3C/span\x3E");} else {$("#featuredNews")["prepend"]("\x3Cspan id=\x22nPosition"+i+"\x22 class=\x22controlN\x22\x3E\x3C/span\x3E");} ;} ;for(var i=0;i<eNumberOfSlides;i++){if(i==0){$("#featuredEvents")["prepend"]("\x3Cspan id=\x22ePosition"+i+"\x22 class=\x22controlE\x22 style=\x22background-position:right\x22\x3E\x3C/span\x3E");} else {$("#featuredEvents")["prepend"]("\x3Cspan id=\x22ePosition"+i+"\x22 class=\x22controlE\x22\x3E\x3C/span\x3E");} ;} ;var slideshowSlides;var ssNumberOfSlides;for(var i=0;i<pNumberOfSlides;i++){slideshowSlides=$(".photo"+i);ssNumberOfSlides=slideshowSlides["length"];slideshowSlides["wrapAll"]("\x3Cdiv class=\x22slidesInner"+i+"\x22\x3E\x3C/div\x3E")["css"]({"float":"left","width":slideWidth,"position":"relative","height":"165px"});$(".slidesInner"+i)["css"]({"width":slideWidth*ssNumberOfSlides});$(".ssSlideInner"+i)["css"]({"width":slideWidth*ssNumberOfSlides});$(".photo"+i)["css"]({"float":"left","width":"240px"});$(".photoControlHolder"+i)["css"]({"color":"#fff","width":220-(220-(ssNumberOfSlides*15)),"padding-left":220-(ssNumberOfSlides*15),"overflow":"auto","position":"absolute","bottom":"0","background":"url(/imgstatic/control_bg.png)","z-index":"10"});for(var j=0;j<ssNumberOfSlides;j++){$(".photoControlHolder"+i)["append"]("\x3Ca style=\x22color:#fff\x22 id=\x22ssPosition"+i+"_"+j+"\x22 class=\x22ssControl"+i+"\x22\x3E"+(j+1)+"\x3C/a\x3E");$(".ssControl"+i)["css"]({"cursor":"pointer","float":"left","width":"15px","text-align":"center","font-family":"Arial","font-size":"11px","display":"block"});} ;$(".ssControl"+i)["bind"]("click",function (){slideSlide($(this));} );} ;function slideSlide(toSlide){var stringLen=(toSlide["attr"]("id")["length"]);var currentPosition=(toSlide["attr"]("id")["substring"](stringLen-1));var slideToAnimate=toSlide["attr"]("id")["substring"](stringLen-3,11);$(".ssControl"+slideToAnimate)["css"]({"text-decoration":"none"});toSlide["css"]({"text-decoration":"underline"});$(".slidesInner"+slideToAnimate)["animate"]({"marginLeft":slideWidth*(-currentPosition)});} ;$(".controlP")["bind"]("click",function (){var stringLen=($(this)["attr"]("id")["length"]);var whichControl=($(this)["attr"]("id")["substring"](0,1));currentPosition=($(this)["attr"]("id")["substring"](stringLen-1));$(".controlP")["css"]({"background-position":"left"});$(this)["css"]({"background-position":"right"});$("#pSlideInner")["animate"]({"marginLeft":slideWidth*(-currentPosition)});} );$(".controlN")["bind"]("click",function (){var stringLen=($(this)["attr"]("id")["length"]);var whichControl=($(this)["attr"]("id")["substring"](0,1));currentPosition=($(this)["attr"]("id")["substring"](stringLen-1));$("#nSlideInner")["animate"]({"marginLeft":slideWidth*(-currentPosition)});$(".controlN")["css"]({"background-position":"left"});$(this)["css"]({"background-position":"right"});} );$(".controlE")["bind"]("click",function (){var stringLen=($(this)["attr"]("id")["length"]);var whichControl=($(this)["attr"]("id")["substring"](0,1));currentPosition=($(this)["attr"]("id")["substring"](stringLen-1));$("#eSlideInner")["animate"]({"marginLeft":slideWidth*(-currentPosition)});$(".controlE")["css"]({"background-position":"left"});$(this)["css"]({"background-position":"right"});} );var firstselection=0;var displayOptions=false;var displayLinks=false;$(".accordionButton")["click"](function (){$(".accordionContentStart span")["hide"]();if($(".accordionButton")["siblings"]()["is"](":visible")){$(".accordionButton")["siblings"]()["slideUp"]("fast");} else {var hidRecParendId=document["getElementById"]("hidRecParendId");if(hidRecParendId["value"]["length"]>0&&hidRecParendId["value"]!="0"){expandAccordionByParentId(hidRecParendId["value"]);} else {$(".accordionContentStart")["slideDown"]("fast",function (){$(".accordionContentStart span")["fadeIn"]("fast");} );} ;} ;} );$("select#selectOptionsStart")["change"](function (){var firstselection=$("select#selectOptionsStart option:selected")["val"]();expandAccordionByParentId(firstselection);} );$(".accordionContentStart,.accordionContent2,.accordionContentLink")["hide"]();} );function accordionGoBack(parentId){if(parentId=="0"){$(".accordionContentStart span")["hide"]();if($(".accordionButton")["siblings"]()["is"](":visible")){$(".accordionButton")["siblings"]()["slideUp"]("fast");} ;} else {expandAccordionByParentId(parentId);} ;} ;function expandAccordionByParentId(parentId){hasLinkContent=false;$["ajax"]({type:"POST",url:"/GuidedTourJQMethods.aspx",data:"ParentId="+parentId+"\x26Method=Links",contentType:"application/x-www-form-urlencoded",dataType:"html",success:function (data,textStatus){myGuidedTourCallBackLinks(data,textStatus,hasLinkContent);} ,error:function (XMLHttpRequest,textStatus,errorThrown){alert("Please try again.  Communication with the server was disrupted.");} });if(!hasLinkContent){$["ajax"]({type:"POST",url:"/GuidedTourJQMethods.aspx",data:"ParentId="+parentId+"\x26Method=Options",contentType:"application/x-www-form-urlencoded",dataType:"html",success:function (data,textStatus){myGuidedTourCallBackOptions(data,textStatus);} ,error:function (XMLHttpRequest,textStatus,errorThrown){alert("Please try again.  Communication with the server was disrupted.");} });} ;var hidParentId=document["getElementById"]("hidParentIdHolder")["value"];document["getElementById"](hidParentId)["value"]=parentId;} ;function myGuidedTourCallBackOptions(data,textStatus,hasContent){hasContent=false;if(textStatus!="success"){alert("Please try again.  Communication with the server was disrupted.");} else {$(".accordionContent2")["html"](data);if(data.toString()["length"]>0){$(".accordionContentStart span, .accordionContent2 span, .accordionContentLink span")["hide"]();$(".accordionContentStart")["slideUp"]("fast");$(".accordionContentLink")["slideUp"]("fast");$(".accordionContent2")["slideDown"]("fast",function (){$(".accordionContent2 span")["fadeIn"]("fast");} );hasContent=true;} ;} ;} ;function myGuidedTourCallBackLinks(data,textStatus,hasContent){hasContent=false;if(textStatus!="success"){alert("Please try again.  Communication with the server was disrupted.");} else {$(".accordionContentLinkContent")["html"](data);if(data.toString()["length"]>0){$(".accordionContentStart span, .accordionContent2 span, .accordionContentLink span")["hide"]();$(".accordionContentStart")["slideUp"]("fast");$(".accordionContent2")["slideUp"]("fast");$(".accordionContentLink")["slideDown"]("fast",function (){$(".accordionContentLink span")["fadeIn"]("fast");} );hasContent=true;} ;} ;} ;function selectOption2_onchange(thisControl){var firstselection=thisControl[thisControl["selectedIndex"]]["value"];expandAccordionByParentId(firstselection);} ;$(document)["ready"](function (){$(".rtMid")["mouseover"](function (){$(this)["addClass"]("rtHover");} );$(".rtMid")["mouseout"](function (){$(this)["removeClass"]("rtHover");} );$(".rtTop")["mouseover"](function (){$(this)["addClass"]("rtHover");} );$(".rtTop")["mouseout"](function (){$(this)["removeClass"]("rtHover");} );$(".rtBot")["mouseover"](function (){$(this)["addClass"]("rtHover");} );$(".rtBot")["mouseout"](function (){$(this)["removeClass"]("rtHover");} );$(".rtIn")["mouseover"](function (){$(this)["addClass"]("rtHover");} );$(".rtIn")["mouseout"](function (){$(this)["removeClass"]("rtHover");} );} );$(document)["ready"](function (){$(".logos")["hide"]();$(".logos:first")["slideDown"]("slow");$(".cat1")["click"](function (){if($(this)["next"](".logos:hidden")){$(this)["next"](".logos")["siblings"](".logos")["slideUp"]("fast");$(this)["next"](".logos")["slideDown"]("slow");} ;} );} );$(document)["ready"](function (){if($("ul.portfolioProjects li ul li")["size"]()==0){$("div.pagination")["hide"]();} ;} );$(document)["ready"](function (){$("ul.projectMarkets li a")["hover"](function (){$(this)["css"]("background-color","#f7f7f7");} ,function (){$(this)["css"]("background-color","#ffffff");} );} );