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()", 16000);
  }
}

var testimonials = new Array("I have been working with Shawna and John at Colombo Design Co. for my intellectual property drawings for the last five years. They are prompt, courteous, and very professional.  Their drawings are always exactly what I need!  I would without a doubt recommend the firm of Colombo Design Co.! <br/><br/> Geena,<br/>  San Diego, CA<br/>",
							 
							 "I have worked with Colombo Design for the past 10 years and would highly recommend them for their professionalism, fast turn around time, great quality of work and reasonable pricing.<br/><br/>Donna,<br/>Palo Alto, CA ", "Shawna, I appreciate your due dillegence of your patent drafting pieces you have done over the years for us. Keep up the good work!<br/><br/> Peter,<br/>Boston, Mass");