function fnPrepareSnapShot() {	if(!document.getElementById) return false;	if(!$("snapshot_control")) return false;		var targetObj = $("snapshot_control");		if(targetObj.hasChildNodes){		var lnkList = targetObj.getElementsByTagName("a");				for(var i=0; i<lnkList.length; i++){			lnkList[i].onclick = function(){                                fnDisableAutoscroll();				fnSnapShow(this);				return false;			}		}	}}var counter = 0;var isScroll = true;function fnDisableAutoscroll() {    isScroll = false;}function fnSnapShow(targetWhat) {            //alert('fnSnapShow: targetWhat is ' + targetWhat);        	if(!document.getElementById) return false;	if(typeof snapShotArray == "undefined") return false;//check to make sure we have an array set			var targetParent = targetWhat.parentNode;                  //alert('fnSnapShow: targetParent is ' + targetParent);		//getting loop amount from page embedded js	var loopValue = snapShotArray.length;		if(targetParent.className == "next"){		if(counter < loopValue - 1){			counter += 1;//increase count number to move forward in the list		} else {			counter = 0;		}	} else {		if(counter > 0){			counter -= 1;		} else {			counter = loopValue - 1;		}	}		//$("snapshot_img").innerHTML = "<img src=\"" + snapShotArray[counter][0] + "\" alt=\"Image: " + snapShotArray[counter][1] + "\" />";	//$("snapshot_info").innerHTML = "<li><strong>Franchise:</strong> <a href=\"" + snapShotArray[counter][4] + "\">" + snapShotArray[counter][1] + "</a></li><!--li><strong>Owner Since:</strong> " + snapShotArray[counter][2] + "</li-->";	//$("snapshot_quote").innerHTML = snapShotArray[counter][3];                  scrollSnapshot(counter);}function autoscrollSnapshot() {        //alert('autoscrollSnapshot: isScroll is ' + isScroll);        if (isScroll != false) {        var nextAnchor = $("snapshotNext");        //alert('autoscrollSnapshot: nextAnchor is ' + nextAnchor);        fnSnapShow(nextAnchor);     }}function scrollSnapshot(index) {	//alert('scrollSnapshot: index is ' + index);         	$("snapshot_img").innerHTML = "<img src=\"" + snapShotArray[index][0] + "\" alt=\"Image: " + snapShotArray[index][1] + "\" />";	$("snapshot_info").innerHTML = "<li><strong>Franchise:</strong> <a href=\"" + snapShotArray[index][4] + "\">" + snapShotArray[index][1] + "</a></li><!--li><strong>Owner Since:</strong> " + snapShotArray[index][2] + "</li-->";	$("snapshot_quote").innerHTML = snapShotArray[index][3];}addLoadEvent(fnPrepareSnapShot);
