/***********************************************
* DHTML slideshow script-  © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice must stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var photos=new Array()
var phototitle=new Array()
var photodesc=new Array()
var which=0
var g=1



	photos[0]="http://63.164.138.90/~ramada/imagelibrary/new1.jpg";
	

	photos[1]="http://63.164.138.90/~ramada/imagelibrary/new2.jpg";
	

	photos[2]="http://63.164.138.90/~ramada/imagelibrary/new3.jpg";
	

	photos[3]="http://63.164.138.90/~ramada/imagelibrary/new4.jpg";
	

	photos[4]="http://63.164.138.90/~ramada/imagelibrary/new5.jpg";
	


	
//Specify whether images should be linked or not (1=linked)
var linkornot=0;
var sPrevImg="";

//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){
      document.images.photoslider.style.filter="blendTrans(duration=2)";
      document.images.photoslider.style.filter="blendTrans(duration=3)";
      document.images.photoslider.filters.blendTrans.Apply();      
}
}



function playeffect(){
if (document.all && photoslider.filters)
photoslider.filters.blendTrans.play()
}

function keeptrack(){
}


function backward(){
if (which>0){
	which--
	applyeffect()
	document.images.photoslider.src=photos[which]
	playeffect()
	keeptrack()
}
else {
	which = photos.length-1
	applyeffect()
	document.images.photoslider.src=photos[which]
	playeffect()
	keeptrack()
}
}

function selectone(imagenbr){
window.clearInterval(gTimer2);
which = imagenbr
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}

function forward(){
if (which<photos.length-1){
	which++
	applyeffect()
	document.images.photoslider.src=photos[which]
	playeffect()
	keeptrack()
}
else {
	which = 0
	applyeffect()
	document.images.photoslider.src=photos[which]
	playeffect()
	keeptrack()
}
}

function transport(){
window.location=phototitle[which]
}

function OpenSlideShowWin(sPage) {

	window.open(sPage,'SlideShow',"status=1,menubar=0,resizable=1,toolbar=0,width=540,height=590");
}

var gTimer2 = null;
var gTimer2Count = 0;

function Timer2()
{
  gTimer2Count++;
  forward();
}

