var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")

window.onload = function() {
	var mozilla = false; var ie = false;
  if (document.all) { ie = true; }
  else if (document.getElementById) { mozilla = true; }

	//document.getElementById('date').innerHTML = dayarray[day]+", "+montharray[month]+" "+daym+", "+year;
  rotate_testimonial();
}

function openWindow(src,w,h) {
  w+=30; h+=20;
  window.open(src,"popup",'scrollbars,width='+w+',height='+h+'');
}

function openShow(album) {
  slideshow = window.open('./slide_show.php?album='+ album,'slideshow','resizable,scrollbars,titlebar');
}

function rotate_testimonial() {
  if(document.getElementById("testimonial")) {
		x = Math.round(Math.random() * testimonials.length) - 1;
		if(x < 0) {
			x = 0;
		}
    document.getElementById("testimonial").innerHTML = testimonials[x];
    setTimeout("rotate_testimonial()", 17400);
  }
}

var testimonials = new Array("You did a fantastic job! Next time we won't wait so long for our next carpet cleaning!<br/><br/> M Alegria<br/>Office Manager<br/>","Thank you for cleaning our carpets again. With all the pets and allegeries around our home we couldn't breathe clean without you!<br/><br/>Joan & Matt<br/>Residential Property","WoW! JEFF!! What a wonderful job, thank you so very much!<br/><br/> Marlene","I appreciate your promptness, thoroughness and trustworthiness since I wasn't even home when  you cleaned the carpets. You cleaned my carpets last year too, and I am sure I will be seeing  you in the future.<br/>Mary");
