    
	// Index It Image Slideshow script- By JavaScriptKit.com, and modify by WegeeDesign.com
	// For this and over 400+ free scripts, visit JavaScript Kit- http://www.javascriptkit.com/
	// This notice must stay intact for use
	
	var mylinktarget="" //specify optional link target
	var mylinkcolor="#666666" //specify default color of number links
	var mylinkcolorSelected="#c04949" //specify color of selected links
	
	var imgborderwidth=0 //specify border of image slideshow
	
	/////Stop customizing here////////////////
	
	var preloadit=new Array()
	for (i=0;i<numberslide.length;i++){
	preloadit[i]=new Image()
	preloadit[i].src=numberslide[i][0]
	}
	
	var currentindex=""
	
	function changeslides(which){
	

	currentindex=(which=="initial")? 0 : parseInt(which)
	var mode=(which=="initial")? "initial" : ""
	var which = numberslide[which]
	toggleDiv('imagecontainer','statement')
	if (mode == "")
	{
		document.getElementById("imgplace").src = which[0];
		document.getElementById("caption").innerHTML = which[2]
		changecolors()	
	}
	
	}
	
	
	function createnumbers(){
	document.write('<a href="javascript:changeslides(0)"  style="color:'+mylinkcolorSelected+'"  >1</a> ')      
	for (i=1,j=2; i< numberslide.length; i++,j++)
	document.write('<a href="javascript:changeslides(\''+i+'\')">'+j+'</a> ')
	}
	
	function changecolors(){
	var numberobj=document.getElementById("numberDiv")
	numberlinks=numberobj.getElementsByTagName("A")
	numberlinks[currentindex].style.color=mylinkcolorSelected
	for (i = 0; i <= numberslide.length; i++) {
		if(i != currentindex)
		numberlinks[i].style.color = mylinkcolor
	}
	}
	
	function goforward(){
	if (currentindex<numberslide.length-1)
	changeslides(currentindex+1)
	}
	
	function goback(){
	if (currentindex!=0)
	changeslides(currentindex-1)
	}
	
	function toggleDiv(classVis, classNoVis){
		var allPageTags = new Array();
		//alert("hi");
		var allPageTags = document.getElementsByTagName("li");
		for (i = 0; i < allPageTags.length; i++) {
			//alert("i="+i);
			if (allPageTags[i].className == classNoVis) {
				//alert("in classNoVis");
				allPageTags[i].style.display = 'none';
			}
			if (allPageTags[i].className == classVis) {
				//alert("in classVis");
				allPageTags[i].style.display = 'table-cell';
			}
		}
	}
		
		/*document.getElementById(dividNoVis).style.display = 'none'
		document.getElementById(dividVis).style.display = 'block'
		if (dividVis == 'statement') {
			document.getElementById("imgplace").src = "images/loading.gif";
			document.getElementById("caption").style.visibility = 'hidden'
		}
		else {
			document.getElementById("caption").style.visibility = 'visible'
		}*/
    //}

	 
	
	/*function doSomethingWithClasses(theClass) {
		var allPageTags = new Array();
		//Populate the array with all the page tags
		var allPageTags=document.getElementsByTagName("li");
		//Cycle through the tags using a for loop
		for (i=0; i<allPageTags.length; i++) {
		//Pick out the tags with our class name
		if (allPageTags[i].className==theClass) {
		//Manipulate this in whatever way you want
		allPageTags[i].style.display='none';
	}
	}
	}*/

	
	
	
