	var t;
        var d;
        function toplistOn(dv)
        {
        	dv.className='on';
        	clearTimeout(t);
        }

        function toplistOff(dv)
        {
        	d=dv;
        	t=setTimeout("d.className=''",300);
        }

function show_text() {

var k ;
var n=1 ;
   
   while(document.getElementById('testimonial'+n)){
	n++;
   };
   
k = Math.round((n-2)*Math.random())+1;

eval('document.getElementById(\'testimonial1\').style.display=\'none\'');

eval('document.getElementById(\'testimonial'+k+'\').style.display=\'block\'');

}

function menuFix() {

	var sfEls = document.getElementById("nav").getElementsByTagName("LI");

	for (var i=0; i<sfEls.length; i++) {

		sfEls[i].onmouseover=function() {

		this.className+=(this.className.length>0? " ": "") + "sfhover";

		}

		// event added to keep menu items from disappearing

		sfEls[i].onMouseDown=function() {

		this.className+=(this.className.length>0? " ": "") + "sfhover";

		}

		// event added to keep menu items from disappearing

		sfEls[i].onMouseUp=function() {

		this.className+=(this.className.length>0? " ": "") + "sfhover";

		}

		sfEls[i].onmouseout=function() {

		this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), "");

		}

	}

}

window.onload=menuFix;