


//window.onload = setTest;

//Random Quote Rotator

//quote array
/*
quoteList = new Array();
	
quoteList[0] = "&quot;I am a plastic surgeon on the east coast. Let me begin by saying that as a surgeon I have no interest in fluff, smoke or mirrors. I first did business with the Incrementum Group 5 years ago. I have done business with them ever since.&quot;";
quoteList[1] = "&quot;When I bought Kelmscott five years ago we did not have a clear Internet strategy. Customore (Incrementum) helped us transform our thinking and start generating online business.&quot;";
quoteList[2] = "&quot;Working with Incrementum Group has been beneficial to Dukane Corporation as we launch a product that is new for our business. That has required some improved thinking about what our existing brand really is, and what we want this new product to be.&quot;";
quoteList[3] = "&quot;As a restaurant owner it was important to us that our website be as warm and inviting as our menu. The ability to showcase our food while inviting people to join us at Simeon&acute;s was the goal of the design. We looked at several different companies before deciding to go with Customore.&quot;";
*/

picList = new Array();

picList[0] = "images/vidPics/laurenVid.jpg";
picList[1] = "images/vidPics/johnVid.jpg";
picList[2] = "images/vidPics/judyVid.jpg";
picList[3] = "images/vidPics/craigVid.jpg";
picList[4] = "images/vidPics/anitaVid.jpg";
picList[5] = "images/vidPics/ingridVid.jpg";


/*urlList = new Array();

urlList[0] = "videos.html";
urlList[1] = "testimonial_scott.php";
urlList[2] = "testimonial_chris.php";
urlList[3] = "testimonial_rich.php";
*/
	
//randomization
var now = new Date();
var secs = now.getSeconds();
var raw_random_number = Math.random(secs);
var random_number = Math.round(raw_random_number * (picList.length));

if (random_number == picList.length){random_number = 0}
	
	
//set quote
//var quote = quoteList[random_number];
//set url
//var url = urlList[random_number];
//set pic
var pic = picList[random_number];


function setTest() {
document.getElementById('testPic').src = pic;
//document.getElementById('testLink').href = url;
//document.getElementById('quote').innerHTML = quote;
}



function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent( function() { setTest()} )


				  