var photos=new Array();
var photoslink=new Array();
var which=0;
var innerData = "";
	
//define images. You can have as many as you want:
photos[0]="images/urImg1.gif"
photos[1]="images/urImg2.gif"
photos[2]="images/urImg3.gif"
photos[3]="images/urImg4.gif"
photos[4]="images/urImg5.gif"
photos[5]="images/urImg6.gif"
photos[6]="images/urImg7.gif"
photos[7]="images/urImg8.gif"	
//Specify whether images should be linked or not (1=linked)
var linkornot=0
	
//Set corresponding URLs for above images. Define ONLY if variable linkornot equals "1"
photoslink[0]=""
photoslink[1]=""
photoslink[2]=""

//do NOT edit pass this line

var preloadedimages=new Array()
for (i=0;i<photos.length;i++){
	preloadedimages[i]=new Image()
	preloadedimages[i].src=photos[i]
}	

function applyeffect(){
	if (document.all && photoslider.filters){
		photoslider.filters.revealTrans.Transition=Math.floor(Math.random()*23)
		photoslider.filters.revealTrans.stop()
		photoslider.filters.revealTrans.apply()
	}
}

function playeffect(){
	if (document.all && photoslider.filters)
	photoslider.filters.revealTrans.play()
}

function keeptrack(){
	window.status="Image "+(which+1)+" of "+photos.length
}
	
	
function backward(){		
	if (which>0){
		which--
		//widthstr = (document.getElementById("divtable").offsetWidth - 10);
		document.images.photoslider.src=photos[which];
		//document.images.photoslider.width=widthstr;
		keeptrack()
	}
	if(which<=0){
		document.getElementById("prevImg").disabled = true; 		
	}
	if(which>=0 && which<<photos.length-1){
		document.getElementById("nextImg").disabled = false; 
	}
	document.getElementById("imgCountId").innerHTML = "<font color='white'><b>"+(parseInt(which)+1)+"/8</b></font>";	
}

function forward(){
	if (which<photos.length-1){
		which++;
		document.images.photoslider.src=photos[which];
		keeptrack();
	}		
	if(which>0){
		document.getElementById("prevImg").disabled = false;  					
	}
	if(which==photos.length-1){
		document.getElementById("nextImg").disabled = true; 
	}	
	document.getElementById("imgCountId").innerHTML = "<font color='white'>&nbsp;&nbsp;<b>"+(parseInt(which)+1)+"/8</b>&nbsp;&nbsp;</font>";
}
	
function transport(){
	window.location=photoslink[which]
}

function FirstLoad(){
	innerData = document.getElementById('imgSlideId').innerHTML;
	document.getElementById('imgSlideId').innerHTML = "";
}
 	
function ShowSlides(aboutStr){	
	document.getElementById("divId").innerHTML = innerData ; 
}