// JavaScript Document



// Index It Image Slideshow script- By JavaScriptKit.com
// For this and over 400+ free scripts, visit JavaScript Kit- http://www.javascriptkit.com/
// This notice must stay intact for use

//Specify images for slideshow:
//["Image Path", "Optional Image link"]

var numberslide=new Array()
numberslide[0]=["http://images.indiaplaza.in/newimages/marico0907-tab-img.gif", ""]
numberslide[1]=["http://images.indiaplaza.in/newimages/marico0907-tab1-img.gif", ""]
numberslide[2]=["http://images.indiaplaza.in/newimages/marico0907-tab2-img.gif", ""]
numberslide[3]=["http://images.indiaplaza.in/newimages/marico0907-tab3-img.jpg", ""]
numberslide[4]=["http://images.indiaplaza.in/newimages/chol-12nov-recipe-img.jpg", "/Marico/recipecholesterol.aspx" ]
numberslide[5]=["http://images.indiaplaza.in/newimages/marico0907-tab5-img.gif", ""]



var mylinktarget="_blank" //specify optional link target
var mylinkcolor="navy" //specify default color of number links
var mylinkcolorSelected="red" //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){
var imghtml=""
currentindex=(which=="initial")? 0 : parseInt(which)
var mode=(which=="initial")? "initial" : ""
var which=(mode=="initial")? numberslide[0] : numberslide[which]
if (which[1]!="")
imghtml='<a href="'+which[1]+'" target="'+mylinktarget+'">'
imghtml+='<img src="'+which[0]+'" border="'+imgborderwidth+'">'
if (which[1]!="")
imghtml+='</a>'

if (mode=="initial")
document.write('<div>'+imghtml+'</div>')
else{
document.getElementById("imagecontainer").innerHTML=imghtml

}
}




