// JavaScript Document
function getPars(i){
var qs = document.getElementsByTagName("script")[i].src.match(/\w+=\w+/g), qstring = {},t,i = qs.length;
while (i--) {
t = qs[i].split("=");
qstring[t[0]] = t[1];
}
return qstring;
}
var qstring = getPars(0); // If first script on the page
var filename = qstring.alt;
filename = filename.replace(/_/g, " ");

var testimonials = new Array('testimonials_01.jpg','testimonials_02.jpg','testimonials_03.jpg');
function randomTestimonial(){
var r=Math.floor(Math.random()*testimonials.length)
// document.write('<img src="/images/'+testimonials[r]+'" alt="'+filename+" />');
document.write('<img src=http://img1.findasolicitor.me.uk/images/'+testimonials[r]+' alt= '+'\''+filename+'\''+' width=\'220\' height=\'210\' />');
}

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;
