function randImgCap()
{
var banner = new Array();
banner[0] ="/wp-content/themes/ptp/images/banner_01.jpg"
banner[1] ="/wp-content/themes/ptp/images/banner_02.jpg"
banner[2] ="/wp-content/themes/ptp/images/banner_03.jpg"
banner[3] ="/wp-content/themes/ptp/images/banner_04.jpg"
banner[4] ="/wp-content/themes/ptp/images/banner_05.jpg"
banner[5] ="/wp-content/themes/ptp/images/banner_06.jpg";

var caption = new Array();
caption[0] = "This is a win/win scenario for workers, employers, our economy and community."
caption[1] = "The personal approach and attention to detail exhibited by you and your staff have been impressive."
caption[2] = "Part-time Pros provides a unique service by connecting individuals looking for a better work/life balance, flexible hours for raising a family or continued involvement for retired or semi-retired professionals to the business community."
caption[3] = "Every interaction with their staff has been professional, organized, and always a pleasure."
caption[4] = "All too often I have experienced a recruiter trying to shove their current prospect down my throat, all the while ignoring what is the best interest of all parties. It is clear that I will not have that worry when dealing with Part-Time Pros."
caption[5] = "The concept of the company is the ‘right idea at the right time’.";
random = Math.floor(Math.random() * banner.length);
document.getElementById ('randomImage').src = banner[random];
document.getElementById ('caption').innerHTML = caption[random];
}





var revert = new Array();
var inames = new Array('tulsa-med-pros', 'looking-for-work', 'client-testimonials', 'need-a-part-time-pro');

// Preload
if (document.images) {
  var flipped = new Array();
  for(i=0; i< inames.length; i++) {
    flipped[i] = new Image();
    flipped[i].src = "/wp-content/themes/ptp/images/"+inames[i]+"2.jpg";
  }
}

function over(num) {
  if(document.images) {
    revert[num] = document.images[inames[num]].src;
    document.images[inames[num]].src = flipped[num].src;
  }
}
function out(num) {
  if(document.images) document.images[inames[num]].src = revert[num];
}
