// JavaScript Document


//------------------------------------------
//Quotes

var quotations = new Array()
quotations[0]= "\"Your Team is a good one! They are Very Professional!\"<BR><BR><span class=\"quotes_by\">&#8212; Stephen of Martinez</span>"
quotations[1]= "\"The repairs were completed in a professional manner, Thank you for everything.<BR><BR><span class=\"quotes_by\">&#8212; Jan and Jack of San Ramon</span>"
quotations[2]= "\"All of your workers are an asset to your company. They all were very courteous and approachable.  I enjoyed working with your entire staff.\"<BR><BR><span class=\"quotes_by\">&#8212; Dolores of Citrus Heights</span>"
quotations[3]= "\"We are very satisfied in every way and would use Vanderbuilt again.\" <BR><BR><span class=\"quotes_by\">&#8212; Kenneth and Yvonne of Pleasanton</span>"
quotations[4]= "\"We are very pleased with the work done in our home.  Everything was kept clean and protected.  The workers were informative and caring.  Everything looked great on the final day.\"<BR><BR><span class=\"quotes_by\">&#8212; Louis of Fremont</span>"
quotations[5]= "\"I am very happy with the over all workmanship but I am even more happy with the professionalism,  courtesy and pride that all your employees have.  They were always on time, they always left all the work areas clean, they asked me questions instead of assuming the answers.  I am very satisfied with all the work of Vanderbuilt Construction. Thank you.\"<BR><BR><span class=\"quotes_by\">&#8212; Therese of Dublin</span>"
quotations[6]= "\"I would like to thank Vanderbuilt Construction for a job well done.  It was completed in a professional and courteous manner and a exceptionally clean one, at that!  Your Project Manager was exceptional in his managing of the repairs and extremely courteous and respectful to our needs.  Your staff was a joy to have around.  Thank you Vanderbuilt Construction for caring!\"<BR><BR><span class=\"quotes_by\">&#8212; Sharon and John of Brentwood</span>"
quotations[7]= "\"Facing a big fire in our home was a terrible experience!  Vanderbuilt's Project Manager and his crew were always understanding and very patient when listening to our needs.  They also did a great job with dedication and professinalism. Thank you for a job well done.\" <BR><BR><span class=\"quotes_by\">&#8212; Fernando of Livermore</span>"
function display()
{
a=Math.floor(Math.random()*quotations.length)
document.getElementById('quotation').innerHTML=quotations[a]
setTimeout("display()",7000)
}





// ---------------------------------------------------------------
// Hide Email Script

function mask(end,middle,start) {
var one ='mai';
var two='lto:';
start,middle,end;
var putogether= one+two+start+middle+end;
document.location.href=eval('"'+putogether+'"');
window.status=putogether;
}

//example <a href="#" onClick="mask('name.com','ctus@domain','conta')">Email Us</a>
// ---------------------------------------------------------------


<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->


//----------------------------------------
// SLIDESHOW
//----------------------------------------
// BODY Example:
// <body onLoad="mySlideShow1.play(); mySlideShow2.play();">
// <img src="originalImage1.gif" name="slide1">
// <img src="originalImage2.gif" name="slide2">

//
// SCRIPT Example:
// var mySlideList1 = ['image1.gif', 'image2.gif', 'image3.gif'];
// var mySlideShow1 = new SlideShow(mySlideList1, 'slide1', 3000, "mySlideShow1");
// var mySlideList2 = ['image4.gif', 'image5.gif', 'image6.gif'];
// var mySlideShow2 = new SlideShow(mySlideList2, 'slide2', 1000, "mySlideShow2");

function SlideShow(slideList, image, speed, name)          
{
  this.slideList = slideList;
  this.image = image;
  this.speed = speed;
  this.name = name;
  this.current = 0;
  this.timer = 0;
}

SlideShow.prototype.play = SlideShow_play;  

function SlideShow_play()       
{
  with(this)
  {
    if(current++ == slideList.length-1) current = 0;
    switchImage(image, slideList[current]);
    clearTimeout(timer);
    timer = setTimeout(name+'.play()', speed);
  }
}

function switchImage(imgName, imgSrc) 
{
  if (document.images)
  {
    if (imgSrc != "none")
    {
      document.images[imgName].src = imgSrc;
    }
  }
}

