      var images=new Array(4);
      for (var i=0; i < images.length; i++)
      {
        images[i]=new Array(6) 
      }
      images[0][0]="/Portfolio/images/healthcare1thumb.jpg";
      images[0][1]="/Portfolio/images/healthcare1.jpg";
      images[0][2]="UW Hospital & Clinics Ophthalmology";
      images[0][3]="Health Care";
      images[0][4]="The UW Hospital facility located at the University Station was renovated to meet the changing needs of the UW medical staff and to better serve the patient population.";
      images[0][5]="";
      images[1][0]="/Portfolio/images/industrial1thumb.jpg";
      images[1][1]="/Portfolio/images/industrial1.jpg";
      images[1][2]="West Campus Chiller Plant";
      images[1][3]="Industrial";
      images[1][4]="This project provided enough capacity and redundancy to allow for the removal of existing remote building chillers and consolidate chilled water production functions to a central plant.  This project also provided the desired level of redundancy in chilled water production for the facility.";
      images[1][5]="";
      images[2][0]="/Portfolio/images/governmentFacilities1thumb.jpg";
      images[2][1]="/Portfolio/images/governmentFacilities1.jpg";
      images[2][2]="Milwaukee Job Corps Center";
      images[2][3]="Government Facilities";
      images[2][4]="The Milwaukee Job Corps Center, a $28,000,000 project for the US Department of Labor, creates a campus of 8 new buildings  on 25 acres of land on the northwest side of Milwaukee. This one of a 120 such centers in the US and will house up to 300 students in a 24 hours a day, 7 days a week learning environment. The students live here year-around while learning life skills, a GED and professional or skills in a trade.";
      images[2][5]="";
      images[3][0]="/Portfolio/images/sustainableDesign3thumb.jpg";
      images[3][1]="/Portfolio/images/sustainableDesign3.jpg";
      images[3][2]="UW Madison Steenbock Memorial Library";
      images[3][3]="Sustainable Design";
      images[3][4]="The UW Madison Steenbock Memorial Library VAV Retrofit and Air Handling Unit Replacement project consisted of converting the existing constant volume main air handling systems to variable air volume systems.";
      images[3][5]="";

      for (var i=0; i<images.length; i++)
      {
        for (var j=0; j<2; j++)
        {
          var pic=new Image();
          pic.src="images/"+images[i][j];
        }
      }
      var curPosition=0;
      var t;	//setTimeout value
      var bPaused=new Boolean(false);
      var currentSpeed=3500;
      var startTime;
      var endTime;
      
      function moveImages(direction,count)
      {
      var d=new Date();
      startTime=d.getTime();
        if (direction=="f")
        {
          curPosition+=count;
          if (curPosition>=images.length)
          {
            curPosition=curPosition-images.length;
          }
        }
        else if (direction=="b")
        {
          curPosition-=count;
          if (curPosition<0)
          {
            curPosition=images.length+curPosition;
          }
        }
        for (var i=0; i<3; i++)
        {
          if (i+curPosition>=images.length)
          {
            document.getElementById("thumb"+i).style.backgroundImage="url("+images[curPosition+i-images.length][0]+")";
          }
          else
          {
            document.getElementById("thumb"+i).style.backgroundImage="url("+images[i+curPosition][0]+")";
          }
        }
        if (curPosition+1>=images.length)
        {
          document.getElementById("projectTitle").innerHTML=images[curPosition+1-images.length][2];
          document.getElementById("projectType").innerHTML=images[curPosition+1-images.length][3];
          document.getElementById("projectQuote").innerHTML=images[curPosition+1-images.length][4];
          document.getElementById("quoteCredit").innerHTML=images[curPosition+1-images.length][5];
          document.getElementById("slide").src=images[curPosition+1-images.length][1];
        }
        else
        {
          document.getElementById("projectTitle").innerHTML=images[curPosition+1][2];
          document.getElementById("projectType").innerHTML=images[curPosition+1][3];
          document.getElementById("projectQuote").innerHTML=images[curPosition+1][4];
          document.getElementById("quoteCredit").innerHTML=images[curPosition+1][5];
          document.getElementById("slide").src=images[curPosition+1][1];
        }
        d=new Date();
        endTime=d.getTime();
//document.getElementById("output").innerHTML="start: "+startTime+"<br />end: "+endTime+"<br />diff: "+(endTime-startTime)+"<br />Cur Pos: "+curPosition+"<br />Speed: "+currentSpeed;
      }
      
      function imageTimer()
      {
        moveImages("f",1);
        t=setTimeout("imageTimer()",currentSpeed);
      }
      
      function pause()
      {
        if (bPaused==true)
        {
          imageTimer();
          bPaused=false;
          document.getElementById("pause").innerHTML="||";
        }
        else
        {
          clearTimeout(t);
          bPaused=true;
          document.getElementById("pause").innerHTML=">";
        }
      }
      
      function back(count)
      {
        clearTimeout(t);
        moveImages('b',count);
        if (bPaused==false)
        {
          t=setTimeout("imageTimer()",currentSpeed);
        }
      }
      
      function forward(count)
      {
        clearTimeout(t);
        moveImages('f',count);
        if (bPaused==true)
        {
          t=setTimeout("imageTimer()",currentSpeed);
        }
      }
      
      function speed(change)
      {
        clearTimeout(t);
        var dt=new Date();
        var resetTimer=startTime+currentSpeed-dt.getTime()+(change);
        if (resetTimer<0)
        {
          resetTimer=0;
        }
        currentSpeed+=change;
        if (currentSpeed<0)
        {
          currentSpeed=0;
        }
        t=setTimeout("imageTimer()",resetTimer);
      }