<!--
var newImgNumber=0;

var hcolor=0;
var Netscape=(navigator.appName.indexOf("Netscape") != -1);
var direction;
var object;

/* for chgImg */
var ImgNum = 0;
var ImgLength;


//Time delay between Slides in milliseconds
var delay = 2000;
var lock = false;
var run;
var NewImg, NewName;

/*end chgImg variables */

//start chgImg for cast of characters

function chgImg(dir) {

NewImg = new Array (
"http://www.cplacey.com/images/MichaelJackson.jpg",
"http://www.cplacey.com/images/JohnnyMathis.jpg",
"http://www.cplacey.com/images/MCHammer.jpg",
"http://www.cplacey.com/images/SammyDavisDark.jpg",
"http://www.cplacey.com/images/LionelRichie.jpg",
"http://www.cplacey.com/images/DonKing.jpg",
"http://www.cplacey.com/images/sWonder.jpg","http://www.cplacey.com/images/jbrown.jpg"
);

 NewName = new Array (
"Michael Jackson",
"Johnny Mathis",
"MC Hammer",
"Sammy Davis Jr.",
"Lionel Richie",
"Don King",
"Stevie Wonder",
"James Brown"

);

ImgLength= NewImg.length - 1;

	if (document.images) {
	   ImgNum = ImgNum + dir;
		if (ImgNum > ImgLength) {
			ImgNum = 0;
		}
		if (ImgNum < 0) {
			ImgNum = ImgLength;
		}
	   document.slideshow.src = NewImg[ImgNum];
//	   if ( getElementById()) {
		   var imgname=document.getElementById("ImageName");
		   imgname.innerHTML="<font color='yellow'>- CP as " + NewName[ImgNum] + " -</font>";
	  // }

        }
}
function auto() {
if (lock == true) {
lock = false;
window.clearInterval(run);
}
else if (lock == false) {
lock = true;
run = setInterval("chgImg(1)", delay);
   }
}
//  End -->



/***********************************
*Purpose:  Cross-browser functionality
************************************/

function GetObject(id) {

	if (document.getElementById)
		return document.getElementById(id);
	else if (document.layers)
		return document.layers[id];
	else if (document.all)
		return document.all[id];
	else
		return false;

}

/************************************
*Purpose:  shift side button links to right
*
*************************************/

function shiftTextOut(shift) {

	if (! GetObject('link1') ) return;
	window.setTimeout("moveText(5, 'link1')", 125);
	window.setTimeout("moveText(10, 'link2')", 125);
	window.setTimeout("moveText(13, 'link3')", 125);
	window.setTimeout("moveText(10, 'link4')", 125);
	window.setTimeout("moveText(5, 'link5')", 125);


}

/************************************
*Purpose:  shift side button links to left
*
*************************************/
function shiftTextIn(shift) {

	if (! GetObject('link1') ) return;
	window.setTimeout("moveText(0, 'link1')", 125);
	window.setTimeout("moveText(0, 'link2')", 125);
	window.setTimeout("moveText(0, 'link3')", 125);
	window.setTimeout("moveText(0, 'link4')", 125);
	window.setTimeout("moveText(0, 'link5')", 125);
}



function moveText(shift, link) {

	if (! GetObject(link) ) return;
	var currentObj= GetObject(link);
	currentObj.style.left= parseInt(shift);
	return;
}


/************************************
*Purpose:  change text displayed under
*          CP sample characters
*
*************************************/
function changeText(obj, newtext) {

	if (! GetObject('line1') ) return;
	obj = GetObject('line1');
	obj.innerHTML=newtext;
}

/************************************
*Purpose:  fade in text under
*	   CP sample characters
*************************************/
function Fade(direction) {

		if (! GetObject('line1') ) return;
		obj=GetObject('line1');
		hcolor += direction;
		if (hcolor < 255 && hcolor >= 0) {
			hex=hcolor.toString(16);
			if (hex.length == 1) hex="0" + hex;
			obj.style.color="#" + hex + hex + hex;
			window.setTimeout("Fade(" + direction + ");",30);
		}

	}

function changePage(newpage) {
return;
//	window.location.href=newpage;
	

}
function changeColorMouseOver(obj, color) {

	obj.style.color=color;

}

function changeColorMouseOut(obj, color) {

	obj.style.color=color;

}

/************************************
*Purpose:  swap CP Sample characters
*
*************************************/
function changeCarol() {

	if (! GetObject('img1') ) return;
	var myImages=Array("http://www.cplacey.com/images/horizontalCollage2jbrown.jpg", 						"http://www.cplacey.com/images/horizontalCollage2johnny.jpg",
		"http://www.cplacey.com/images/horizontalCollage2swonder.jpg",
		"http://www.cplacey.com/images/horizontalCollage2mjackson.jpg",
		"http://www.cplacey.com/images/horizontalCollage2sammy.jpg",
		"http://www.cplacey.com/images/horizontalCollage2thug.jpg",
		"http://www.cplacey.com/images/horizontalCollage2exec.jpg") ; 

	newObj = GetObject('img1');

	newObj.src = myImages[newImgNumber];
	newImgNumber = newImgNumber + 1;
	if (newImgNumber >= 7)
		newImgNumber=0;
	window.setTimeout("changeCarol()", 1500);
	
}
-->
