startList = function() {
	navRoot = document.getElementById("leftNav");
	if (navRoot) {
		for (i=0; i<navRoot.childNodes.length; i++) {
		node = navRoot.childNodes[i];
			if (node.tagName=="DIV") {
				node.onmouseover=function() {
					this.className="leftNavBgHover";
				}
				node.onmouseout=function() {
					this.className=this.className.replace("leftNavBgHover", "");
				}
			}
		}
	}
}

try{
	document.execCommand('BackgroundImageCache', false, true);
}catch(e){}

function containsTestimonial(tmp, newid) {
	for(x=0;x<tmp.length;x++){
		if(tmp[x]==newid){
			return true;
		}
	}
	return false;
}

function scTestimonials(){
	if (document.getElementById('testimonialsContainer')) {
		var testimonialsContainer = document.getElementById('testimonialsContainer');
		var testimonialsContainerDivs = testimonialsContainer.getElementsByTagName('div');
		var testimonialsContainerDivsLen = testimonialsContainerDivs.length;
		var divPos = 0;
		var divCnt = 0;
		var newid = new Array();
		while(divPos < testimonialsContainerDivsLen){
			if(testimonialsContainerDivs[divPos].id.indexOf('scTestimonials') > -1){
				divCnt += 1;
			}
			divPos++;
		}
		if(divCnt > 0){
			if(testimonialsToShow == 1){
				var c = Math.floor(Math.random()*divCnt);
				if(document.getElementById('scTestimonials'+c)){
					document.getElementById('scTestimonials'+c).style.display = 'block'
				}
			}else{
				var tPos = 0;
				while(tPos < divCnt){
					var c = Math.floor(Math.random()*divCnt);
					if(!containsTestimonial(newid, c)){
						newid.push(c);
						if(document.getElementById('scTestimonials'+c)){
							document.getElementById('scTestimonials'+c).style.display = 'block'
						}
						if(newid.length == testimonialsToShow){
							break;
						}
					}
					tPos++;
				}
			}
		}
	}
}
