var isIe4=false, isDom=false, isMac=false, isWin=false, isNs=false, isNs4=false, isFlash=-1, isLoaded=false, isIe=false, isIe50=false;
var sectionID = "default";
function showMe(divID)
{
	if (isLoaded) document.getElementById(divID).style.visibility='visible';
}
function hideMe(divID)
{
	if (isLoaded) document.getElementById(divID).style.visibility='hidden';
}
function writeMe(divID,divText)
{
	if (isLoaded)
	{
		document.getElementById(divID).innerHTML=divText;
	}
	if (isNs4)
	{
		document.layers[divID].document.open()
		document.layers[divID].document.write(divtext)
		document.layers[divID].document.close()
	}
}

function init()
{
	if (isDom)
	{
		isLoaded=true;
		writeTestimonial();
	}
}

testimonialArray = new Array();
testimonialArray[0]="I would like to congratulate you on such a beautiful clinic - I forgot I was at the dentist!";
testimonialArray[1]="What beautiful surroundings, calm, relaxing, and truly gorgeous.";
testimonialArray[2]="Your approach to dentistry is like a breath of fresh air.";
testimonialArray[3]="The lovely surroundings and friendly staff really take your mind off your treatment.";
testimonialArray[4]="I would recommend you to anyone.";
testimonialArray[5]="I came to the practice is pain and left with the confidence that I was being expertly looked after.";
testimonialArray[6]="I have been back several times and each time I have started off very nervous.  I need not have worried,";
testimonialArray[7]="Every part of the treatment and care has been superb - not to mention the most beautiful surroundings.";
testimonialArray[8]="It is hard to believe that you are in a dental practice - I look forward to visiting!";
testimonialArray[9]="What a great experience!";
testimonialArray[10]="I walked in the door in pain and petrified - I left relaxed and relieved.";
testimonialArray[11]="The care and the beautiful, relaxing surroundings make such a difference.";


function writeTestimonial() {

	var rNum=Math.floor(Math.random()*testimonialArray.length);
	
	strTestimonial = '"' + testimonialArray[rNum] + '"';
	
	writeMe("testimonial",strTestimonial)
		
}


isMac=(navigator.platform=="MacPPC")? true:false;
isWin=(navigator.appVersion.indexOf("Win")!=-1)? true:false;
isIe=(navigator.appName=="Microsoft Internet Explorer")? true:false;
isIe4=(document.all)? true:false;
isDom=(document.getElementById)? true:false;
if ((parseInt(navigator.appVersion)==4) && (navigator.appName=="Netscape"))
{
	isNs4 = true;
	isImg = true;
}
window.onload=init;