function sp(num) {	
		var slideCount = 10		
		sp1.showPanel(num);
		//sp2.showPanel(num);
		setTimeout('sp2.showPanel('+num+')', 500);
		nav(num);
		
		if (num == slideCount - 1) 
		{
		loadShow(0);
		}else{
		loadShow(num + 1);
		}
	}
	
function loadShow(num) {
		//var iTimeoutID = window.setTimeout('sp('+num+')',10000);
		//document.getElementById("itimeoutID").value = iTimeoutID
		}
function clearSlider(num) {		
		//window.clearTimeout(document.getElementById("itimeoutID").value)
		sp(num);
		}
function nav(id) {
	//get all anchor (link) objects in the document
	var anchorArr = document.anchors;

	//loop through the anchors
	for(i=0; i< anchorArr.length; i++){		
		//look at the anchor's id and compare it to the selected anchor
		if(anchorArr[i].id == id){
			document.getElementById(anchorArr[i].id).className = "slideNavActive";
			document.getElementById(anchorArr[i].id).style.color = "#c8c09b";
		} else {
			document.getElementById(anchorArr[i].id).className = "slideNav";
			document.getElementById(anchorArr[i].id).style.color = "#c8c09b";
		}
	}
}
