﻿var variableslide1=new Array()

//variableslide[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"]

variableslide1[0]=['website/images/steelkinglogo.gif', '','www.steelking.in']
variableslide1[1]=['website/images/tweslogo.gif','', 'www.twes.in']
variableslide1[2]=['website/images/franklin.gif', '', '']
variableslide1[3]=['website/images/harisons.jpg', '', 'www.harisonsservices.com']
variableslide1[4]=['website/images/spectra.jpg', '', '']
variableslide1[5]=['website/images/royalejaisalmer.jpg', '', 'www.royalejaisalmer.com']
variableslide1[6]=['website/images/peakperformanz.jpg', '', 'www.peakperformanz.com']
variableslide1[7]=['website/images/giriraj.jpg', '', '']
variableslide1[8]=['website/images/Logo Aditya.jpg', '', '']
//variableslide1[2]=['website/images/harisons.jpg', '', 'www.harisonsservices.com']



//configure the below 3 variables to set the dimension/background color of the slideshow

var slidewidth1='220px' //set to width of LARGEST image in your slideshow
var slideheight1='200px' //set to height of LARGEST iamge in your slideshow, plus any text description
var slidebgcolor1=''
//configure the below variable to determine the delay between image rotations (in miliseconds)
var slidedelay1=3000

////Do not edit pass this line////////////////

var ie=document.all
var dom=document.getElementById

for (i=0;i<variableslide1.length;i++){
var cacheimage1=new Image()
cacheimage1.src=variableslide1[i][0]
}

var currentslide1=0

function rotateimages1(){
contentcontainer1='<center>'
if (variableslide1[currentslide1][1]!="")
contentcontainer1+='<a href="'+variableslide1[currentslide1][1]+'">'
contentcontainer1+='<img src="'+variableslide1[currentslide1][0]+'" border="0" vspace="3">'
if (variableslide1[currentslide1][1]!="")
contentcontainer1+='</a>'
contentcontainer1+='</center>'
if (variableslide1[currentslide1][2]!="")
contentcontainer1+=variableslide1[currentslide1][2]

if (document.layers){
crossrotateobj1.document.write(contentcontainer1)
crossrotateobj1.document.close()
}
else if (ie||dom)
crossrotateobj1.innerHTML=contentcontainer1
if (currentslide1==variableslide1.length-1) currentslide1=0
else currentslide1++
setTimeout("rotateimages1()",slidedelay1)
}

if (ie||dom)
document.write('<div id="slidedom1" style="width:'+slidewidth1+';height:'+slideheight1+'; background-color:'+slidebgcolor1+'"></div>')

function start_slider1(){
crossrotateobj1=dom? document.getElementById("slidedom1") : ie? document.all.slidedom1 : document.slidensmain1.document.slidenssub1
if (document.layers)
document.slidensmain1.visibility="show"
rotateimages1()
}

if (ie||dom)
start_slider1()
else if (document.layers)
window.onload=start_slider1



