/*
Photo Slider II- By Kevin Adams (kadams@kyk.net)
For this script and more
Visit http://www.javascriptkit.com
*/

var photos=new Array()
var text=new Array()
var dec=new Array()
var link=new Array()
var which=0
var what=0
var why=0

//a href
link[0]="http://www.webdevelopmentcompany.in/";
link[1]="http://www.timepassmedia.com/"
link[2]="http://www.thewhitefeathers.com/"
link[3]="http://www.hotellinksindia.com/"
link[4]="http://www.flowersinmumbai.com/"

//Change the below variables to reference your own images. You may have as many images in the slider as you wish
photos[0]="images/rl_img9.gif"
photos[1]="images/rl_img1.gif"
photos[2]="images/rl_img6.gif"
photos[3]="images/rl_img7.gif"
photos[4]="images/rl_img8.gif"


//change coresponding title
text[0]="Web Development Company"
text[1]="Timepass Media"
text[2]="The White Feathers"
text[3]="Hotel links india"
text[4]="Flowers in Mumbai"


//change coresponding description
dec[0]="CMI launches our NEW network site."
dec[1]="The TimePass Digiplex is an Entertainment and Infomedia Center..."
dec[2]="specializes in supplying a wide range of Linens and clothing, principally in white."
dec[3]="Hotel Links India a premium travel company dealing with all 3 star & luxury resorts in India & abroad."
dec[4]="Flowersinmumbai.com has redefined the concept of flower retailing, making even rare flowers readily available to the Indian consumers."


window.onload=new Function("document.rotater.title.value=text[0]");
window.onload=new Function("document.rotater.description.value=dec[0]");
window.onload=new Function("document.getElementById('sliderlink').href = link[0];");

function backward(){
if (which>0){
window.status=''
which--
document.images.photoslider.src=photos[which];
what--
document.rotater.description.value=text[what];
why--
document.rotater.title.value=dec[why];

document.getElementById('sliderlink').href= link[which];
}
}

function forward(){
if (which<photos.length-1){
which++
document.images.photoslider.src=photos[which]
what++
document.rotater.description.value=text[what];
why++
document.rotater.title.value=dec[why];

document.getElementById('sliderlink').href= link[which];
}
else window.status='End of gallery'
}

function type()
	{
	alert("This textbox will only display default comments")
	}
