function img_act(imgName) {
	if (document.images){
    	imgOn = eval(imgName + "on.src");
        document [imgName].src = imgOn;
    }
}

function img_end(imgName) {
	if (document.images){
    	imgOn = eval(imgName + "off.src");
        document [imgName].src = imgOn;
    }
}

function popWindow(page, width, height) {
	window.open(page,null,"height="+height+",width="+width+",status=no,toolbar=no,menubar=no,location=no,scrollbars=yes");
}

function swapDivs(top, bottom) {
	document.getElementById(top).style.zIndex = "3";
	document.getElementById(bottom).style.zIndex = "2";
	//alert(top+": "+document.getElementById(top).style.zIndex+" | "+bottom+": "+document.getElementById(bottom).style.zIndex);
}

//function displaynext(shift){
// 	var elem = document.getElementsByName("homePageImage")[0].src = 'images/click4care/home_000'+shift+'.jpg';
//	(shift<5) ? (shift=shift+1) : (shift=0);
//	setTimeout("displaynext("+(shift)+")", 3000); 
//}


// Globals
// Major version of Flash required
var requiredMajorVersion = 9;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 28;

function getFlashImageRotator() {
   // Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
   var hasProductInstall = DetectFlashVer(6, 0, 65);

   // Version check based upon the values defined in globals
   var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

   if ( hasProductInstall && !hasRequestedVersion ) {
                 // DO NOT MODIFY THE FOLLOWING FOUR LINES
	         // Location visited after installation is complete if installation is required
	         var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
	         var MMredirectURL = window.location;
                 document.title = document.title.slice(0, 47) + " - Flash Player Installation";
                 var MMdoctitle = document.title;
                 flashString = AC_FL_RunContent(
                        "src", "playerProductInstall",
		        "FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"", 
                        "width", (isIE == true)? "295" : "370",
                        "height", (isIE == true)? "270" : "340",
                        "align", "middle",
                        "id", "C4CImageRotator",
                        "quality", "high",
                        "bgcolor", "#9ba93f",
                        "name", "C4CImageRotator",
                        "wmode", "transparent", // setting the wmode == transparent allows the menuitems to show thru the image.
                        "allowScriptAccess","sameDomain",
                        "type", "application/x-shockwave-flash",
                        "pluginspage", "http://www.adobe.com/go/getflashplayer"
                );
                flashObj = document.getElementById("image-holder-homepage");
                flashObj.innerHTML = flashString;
     } else if (hasRequestedVersion) {
                flashString = AC_FL_RunContent(
			"src", "flash/C4CImageRotator",
			"width", (isIE == true)? "295" : "370",
			"height", (isIE == true)? "270" : "340",
			"align", "middle",
			"id", "C4CImageRotator",
			"quality", "high",
			"bgcolor", "#9ba93f",
			"name", "C4CImageRotator",
                        "wmode", "transparent", // setting the wmode == transparent allows the menuitems to show thru the image.
			"allowScriptAccess","sameDomain",
			"type", "application/x-shockwave-flash",
			"pluginspage", "http://www.adobe.com/go/getflashplayer"
		);
                flashObj = document.getElementById("image-holder-homepage");
                //flashObj.style = "z-index: 99";
		flashObj.innerHTML = flashString;
  } else {  // flash is too old or we can't detect the plugin
    var alternateContent = 'The proper version of Adobe Flash Player is not installed. '
   	+ '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';
    document.write(alternateContent);  // insert non-flash content

  }
}




