caseStudyItems = new Array();
caseStudyItems[1] = "<img src='images/home_case_study_ambulatory.jpg'><h1>CASE STUDY</h1><p>The Hunt Center, located in Danvers, Massachusetts, north of Boston, is an ambulatory care center that delivers a wide range of patient services.</p><p><a href='case_studies_ambulatory.html'>Read more</a></p>";
caseStudyItems[2] = "<img src='images/home_case_study_acute.jpg'><h1>CASE STUDY</h1><p>The Presbyterian Hospital of Rockwall, Texas, is the first hospital ever for this fast-growing, lakeshore community.</p><p><a href='case_studies_acute.html'>Read more</a></p>";

caseStudyNo = Math.floor((Math.random()*2)) + 1;

testimonialItems = new Array();
testimonialItems[1] = "<p>&quot;Working with HELP Equipment Planning was a tremendous asset to the development of our facility.&quot;</p><p><cite>Stephanie Martin, COO/Administrator, Harris Methodist Southlake Center for Diagnostics and Surgery</cite></p>";
testimonialItems[2] = "<p>&quot;I would not invest the time required to develop an ambulatory surgery center without HELP being involved.&quot;</p><p><cite>Robert Williams, Past President of FASA and ASC Developer</cite></p>";
testimonialItems[3] = "<p>&quot;You act as the owner's advocate, recommending the equipment that is best for their operation and at the same time you work within the constraints of their budget.&quot;</p><p><cite>Craig Puccetti, Senior Associate, The Lawrence Group</cite></p>";
testimonialItems[4] = "<p>&quot;I can truthfully say that, in my 21 years in the business, I have never dealt with a more forthright, attentive and honorable group of people.&quot;</p><p><cite>Bob Trevathan, Physicians Surgery Centers</cite></p>";
testimonialItems[5] = "<p>&quot;HELP always looks out for the customer's best interest and strives to give the best service and greatest value possible.&quot;</p><p><cite>Dr. Jane Thilo, President - Encompass Health, LLC.</cite></p>";

testimonialNo = Math.floor((Math.random()*5)) + 1;


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function showDiv(divName) { 
     document.getElementById(divName).style.visibility = 'visible';

}

function showPic1() {
    document.getElementById('pic1').style.visibility = 'visible';
    fadeOutDiv('picHolder3', 'pic3', 100);
    fadeInDiv('picHolder1', '', 0);
    setTimeout("showPic2()", 4000);
}

function showPic2() {
    document.getElementById('pic2').style.visibility = 'visible';
    fadeOutDiv('picHolder1', 'pic1', 100);
    fadeInDiv('picHolder2', '', 0);
    setTimeout("showPic3()", 4000);
}

function showPic3() {
    document.getElementById('pic3').style.visibility = 'visible';
    fadeOutDiv('picHolder2', 'pic2', 100);
    fadeInDiv('picHolder3', '', 0);
    setTimeout("showPic1()", 4000);
}

function fadeInDiv(divId, picId, opacity) {
  if (opacity <= 100) {
	setOpacity(divId, picId, opacity);
	opacity += 5;
	window.setTimeout("fadeInDiv('"+divId+"','"+picId+"',"+opacity+")", 100);
  }
}

function fadeOutDiv(divId, picId, opacity) {
  if (opacity > 0) {
	setOpacity(divId, picId, opacity);
	opacity -= 5;
	window.setTimeout("fadeOutDiv('"+divId+"','"+picId+"',"+opacity+")", 100);
  }
}

function setOpacity(divId, picId, opacity) {
  var div = document.getElementById(divId);
  div.style.visibility = 'visible';
  opacity = (opacity == 100)?99.999:opacity;
  div.style.filter = "alpha(opacity:"+opacity+")";
  div.style.KHTMLOpacity = opacity/100;
  div.style.MozOpacity = opacity/100;
  div.style.opacity = opacity/100;
  if (picId != '') {
     if (opacity == 0) {
       document.getElementById(picId).style.visibility = 'hidden';
     }
  }

}

function openWindow (url, winName, popWidth, popHeight) {
		var horizPos = (screen.availWidth - popWidth)/ 2;
		var vertPos = ((screen.availHeight - popHeight)/ 2) + 30;
		window.open(url, winName, "width=" + popWidth + ", height=" + popHeight + ", resizable=no, top=" + vertPos + ", left=" + horizPos + ", scrollbars=no, status=no");
}

