// variables // --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- varSelected = "start"; varChecktoselect = 0; varMainmovie = 0; varMin = 0; varMax = 0; varOrientation = ""; varNimage = 1; varTheMenu = ""; varInterupt = "no"; // HTML code variables // --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- // company dropdown menu varHTMLcompany = "
Company
Services
Meet The President
Credentials
News
Resource Center
Careers
Contact
"; // solutions dropdown menu varHTMLsolutions = "
Markets
Civic
Corporate & Commercial
Education
Entertainment
Government & Military
Healthcare
Residential
Science & Technology
"; // portfolio dropdown menu varHTMLportfolio = "
Clients
Architects
Developers
Building Owners
Contractors
Construction Managers
Government Agencies
"; //list varHTMLlist = "
" + varPage + "
"; if (varLast > 5){varHTMLlist = varHTMLlist + "
1-5
6-10
";} if (varLast > 10){varHTMLlist = varHTMLlist + "
11-15
";} if (varLast > 15){varHTMLlist = varHTMLlist + "
16-20
";} if (varLast > 20){varHTMLlist = varHTMLlist + "
21-25
";} varHTMLlist = varHTMLlist + "
"; if (varFrom == "secondary"){varHTMLlist2 = "
";}else{varHTMLlist2 = varHTMLlist;} // setup the page // --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- $(document).ready(function(){ // setup ------------------- if(varSection == "Home"){ $("#back").css({ backgroundColor:"rgb(220,220,220)" });$("#home").css({'background-image': "url('/images/header/back.gif')"}); } if(varSection == "Company"){ varTheMenu = "company"; $("#scroll").css({ marginLeft: "237px" });$("#company").css({'background-image': "url('/images/header/back.gif')"});$("#back").append(varHTMLcompany); } if(varSection == "Markets"){ varTheMenu = "solutions"; $("#scroll").css({ marginLeft: "477px" });$("#solutions").css({'background-image': "url('/images/header/back.gif')"});$("#back").append(varHTMLsolutions); } if(varSection == "Clients"){ varTheMenu = "portfolio"; $("#scroll").css({ marginLeft: "717px" });$("#portfolio").css({'background-image': "url('/images/header/back.gif')"});$("#back").append(varHTMLportfolio); } $("#back").fadeTo(0, 0.00, function(){$("#back").css({ backgroundColor:"rgb(220,220,220)" });}); // insert content ------------------- if(varFrom == "Featured"){list(0, 5, 1);} // menu animations ------------------- $("#home").hover( function(){ if(varTheMenu != "home") { varTheMenu = "home"; menu("","15px", "#company, #solutions, #portfolio", ""); } }, function(){ if(varInterupt == "no") {fadeout();} }); $("#company").hover( function(){ if(varTheMenu != "company") { varTheMenu = "company"; menu("#company","237px", "#portfolio, #solutions", varHTMLcompany); }else{ if(varInterupt == "no") {$("#back").stop().fadeTo("slow", 0.85).css({height: "auto"});} } }, function(){ if(varInterupt == "no") {fadeout();} }); $("#solutions").hover( function(){ if(varTheMenu != "solutions") { varTheMenu = "solutions"; menu("#solutions","477px", "#company, #portfolio", varHTMLsolutions); }else{ if(varInterupt == "no") {$("#back").stop().fadeTo("slow", 0.85).css({height: "auto"});} } }, function(){ if(varInterupt == "no") {fadeout();} }); $("#portfolio").hover( function(){ if(varTheMenu != "portfolio") { varTheMenu = "portfolio"; menu("#portfolio","717px", "#company, #solutions", varHTMLportfolio); }else{ if(varInterupt == "no") {$("#back").stop().fadeTo("slow", 0.85).css({height: "auto"});} } }, function(){ if(varInterupt == "no") {fadeout();}}); $("#back").hover(function(){if(varInterupt == "no"){$("#back").stop().fadeTo("slow", 0.85).css({height: "auto"});} }, function(){ fadeout(); }); $("#top").hover(function(){if(varInterupt == "no"){$("#back").stop().fadeTo("slow", 0.85).css({height: "auto"});} }, function(){ fadeout(); }); }); //functions // --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- function flash(){ $("#graphic").empty(); $("#graphic").append(""); } //initialize rollover and selection for list ------------------- function rollover() { $("#list0").click(function(){ highlight(0); }); $("#list1").click(function(){ highlight(1); }); $("#list2").click(function(){ highlight(2); }); $("#list3").click(function(){ highlight(3); }); $("#list4").click(function(){ highlight(4); }); } // load image into graphic DIV-------------------------------------- function load(path, id, HVsize){ $("#graphic").empty(); if( HVsize == "H"){ $("#graphic").append(""); } else { $("#graphic").append(""); } } // animation, rollover and content manipulation for dropdown --------------------------------------------------------- function menu(section, margin, reset, menulist, prevTheMenu){ varInterupt = "yes"; $("#back").stop(); $("#back").stop().fadeTo("slow", 0, function(){varInterupt = "no";$("#back").empty().append(menulist).css({height: "auto", backgroundColor:"rgb(220,220,220)"}); }); $(reset).css({'background-image': "url('/images/header/pointer.gif')"}); $(section).css({'background-image': "url('/images/header/back.gif')"}); $("#scroll").animate({ marginLeft: margin }, { queue: false, duration: 1000} ); if (section != ""){ $("#back").fadeTo("slow", 0.85).css({height: "auto"}); } } // fadeout dropdown --------------------------------------------------------- function fadeout(){ if(varTheMenu == "company"){menulist = varHTMLcompany;} if(varTheMenu == "solutions"){menulist = varHTMLsolutions;} if(varTheMenu == "portfolio"){menulist = varHTMLportfolio;} $("#back").stop(); $("#back").stop().fadeTo("slow", 0, function(){if(varInterupt == "yes"){varInterupt = "no";$("#back").empty().append(menulist).css({height: "auto", backgroundColor:"rgb(220,220,220)"})}$("#back").css({height: "0px"});}); } // select list item --------------------------------------------------------- function highlight(varID) { for (var i=0; i<5; i++) { $("#list" + i).css({color: "rgb(108,108,108)"}); $(".arrow" + i).empty(); } $("#list" + varID).css({color: "rgb(73,158,89)"}); $(".arrow" + varID).append("< \ \;"); } // deselect list item --------------------------------------------------------- function dehighlight() { for (var i=0; i<5; i++) { $("#list" + i).css({color: "rgb(108,108,108)"}); $(".arrow" +i).empty(); } } // select label (i.e. [1-5] or [5-10] ...) --------------------------------------------------------- function label(varLabel){ for (var i=1; i<6; i++) { $("#label" + i).css({color: "rgb(108,108,108)", borderColor: "rgb(233,233,233)"}); } $("#label" + varLabel).css({color: "rgb(73,158,89)", borderColor: "rgb(255,226,210)"}); } // select image number (i.e. [1] , [2] , [3]...) --------------------------------------------------------- function imagelabel(path){ for (var i=1; i" + ib + ". " + " " + $("title",varList).text() + "
"); i++; if (varChecktoselect != 6){highlight(varChecktoselect);} }); $("#progress").css({'background-image': "url('/images/site_images/spacer.gif')"}); }); } // get content from php-xml ---------------------------------------------------------------------------- function content_insert(varID, varClick) { $("#progress").css({'background-image': "url('/images/site_images/loading.gif')"}); $.post("/php/components/" + varFrom + "_content_xml.php", {id: varID}, function(xml){ varContent = $("story",xml).get(0); rollover(); // fill content $("#content").empty(); $("#main_title").empty(); $("#main_title").append($("title",varContent).text()); $("#location").empty(); $("#location").append($("location",varContent).text()); $("#content").append($("content",varContent).text()); $("#right").append($("callout",varContent).text()); $("#progress").css({'background-image': "url('/images/site_images/spacer.gif')"}); // display link if external url if( $("url",varContent).text() != ""){ $("#content").append("
Read More
"); } varSelected = $("id",varContent).text(); load($("image",varContent).text() , '1', 'H'); varSelected = $("id",varContent).text(); }); }