<!--
// Jeff
// www.huntingground.freeserve.co.uk
// ********** User Defining Area **********
data=[
["stars/loch.jpg","Lochan","playmovie.php?id=33"],// no comma at end of last index
["stars/jees.jpg","Jees Jose","viewprofile.php?id=719"],
["stars/sanooja.jpg","Sanooja","viewprofile.php?id=114"],
["stars/swap.jpg","Swapna","playmovie.php?id=220"], 
["stars/abhi.jpg","Abhi Roni","viewprofile.php?id=1360"],
["stars/adithi.jpg","Adithi Nair","viewprofile.php?id=629"],
["stars/ameer.jpg","Ameer","viewprofile.php?id=635"],
["stars/anirud.jpg","Anirudh","viewprofile.php?id=65"],
["stars/anuRaj.jpg","Anu Raj","viewprofile.php?id=231"],
["misc/parvathy.jpg","Parvathy Omanakkuttan","missindia2008.htm"],
["stars/indu.jpg","Indu Thampi","/fashion/fashion_celeb_miss_kerala.php"],
["stars/gautham.jpg","Gautham","http://talentfurnace.com/temp.php"],
["stars/unni.jpg","Jai Krishna","fashion/unni.php"],
["stars/muk.jpg","Muktha","playmovie.php?id=216"],
["stars/varada.jpg","Varada","/fashion_celeb_varada.php"],
["stars/lakshmi.jpg","Dr. Lekshmi Nair","fashion/lakshmi.php"],
["stars/anjana.jpg","Anjana","http://talentfurnace.com/temp2.php"],
["stars/par.jpg","Parvathy","playmovie.php?id=217"],
["stars/antony.jpg","Antony","/gallery/gallery.php?list=26"],
["stars/aswathy.jpg","Aswathy Ashok","aswathy.php"],
["stars/jay.jpg","Jaykrishnan","playmovie.php?id=206"],
["stars/miniN.jpg","Mini Nayaz","playmovie.php?id=214"],
["stars/shanu.jpg","Shanu","playmovie.php?id=25"],
["stars/ammu.jpg","Ammu","playmovie.php?id=4"],
["stars/babyN.jpg","Baby Nayan Thara","/gallery/gallery.php?list=2"],
["stars/anthony.jpg","Antony","playmovie.php?id=37"],
["stars/aslam.jpg","Aslam","viewprofile.php?id=626"],
["stars/abhilash.jpg","Abhilash"," "],
["stars/ansiba.jpg","Ansiba","viewprofile.php?id=20"],
["stars/archana.jpg","Archana","viewprofile.php?id=38"],
["stars/anna.jpg","Anna","viewprofile.php?id=1355"],
["stars/ankit.jpg","Ankith","viewprofile.php?id=1357"],
["stars/bhama.jpg","Bhama","viewprofile.php?id=639"],
["stars/aneesh.jpg","Aneesh",""],
["stars/aswin.jpg","Aswin",""],
["stars/adithya.jpg","Adithya","viewprofile.php?id=1358"],
["stars/arunima.jpg","Arunima","viewprofile.php?id=1130"],
["stars/bindu.jpg","Bindu","viewprofile.php?id=18"],
["stars/daniel.jpg","Daniel","viewprofile.php?id=267"],
["stars/dhara.jpg","Dhara","viewprofile.php?id=661"],
["stars/divNair.jpg","Divya Nair","viewprofile.php?id=37"],
["stars/dhanya.jpg","Dhanya",""],
["stars/deviChanrdra.jpg","Devi Chandana",""],
["stars/deepthi.jpg","Deepthi Pillai","viewprofile.php?id=288"],
["stars/emi.jpg","Emi Mol","viewprofile.php?id=1351"],
["stars/gouri.jpg","Gaoury Manoj","viewprofile.php?id=658"],
["stars/farooq.jpg","Farooq",""],
["stars/grishna.jpg","Grishna","viewprofile.php?id=212"],
["stars/haritha.jpg","Haritha",""],
["stars/hamela.jpg","Hamela",""],
["stars/joan.jpg","Joe Ann",""],
["stars/julia.jpg","Julia","viewprofile.php?id=572"],
["stars/jacob.jpg","Jacob","viewprofile.php?id=221"],
["stars/karmel.jpg","Karun",""],
["stars/kavitha.jpg","Kavitha",""],
["stars/keethy.jpg","Keerthi","viewprofile.php?id=53"],
["stars/jacob.jpg","Jacob","viewprofile.php?id=221"],
["stars/keerthana.jpg","Keerthana","viewprofile.php?id=643"],
["stars/laksh_s.jpg","Lakshmi","viewprofile.php?id=1375"],

]
imgPlaces=7 // number of images visible
imgWidth=90 // width of the images
imgHeight=100 // height of the images
imgSpacer=4 // space between the images
dir=0 // 0 = left, 1 = right
newWindow=0 // 0 = Open a new window for links 0 = no  1 = yes
// ********** End User Defining Area **********
moz=document.getElementById&&!document.all
step=1
timer=""
speed=3
nextPic=60
initPos=new Array()
nowDivPos=new Array()
function initHIS3(){
for(var i=0;i<imgPlaces+1;i++){ // create image holders
newImg=document.createElement("IMG")
newImg.setAttribute("id","pic_"+i)
newImg.setAttribute("src","")
newImg.style.position="absolute"
newImg.style.width=imgWidth+"px"
newImg.style.height=imgHeight+"px"
newImg.style.border=0
newImg.alt=""
newImg.i=i
newImg.onclick=function(){his3Win(data[this.i][2])}
document.getElementById("display_area").appendChild(newImg)
}

containerEL=document.getElementById("his3container")
displayArea=document.getElementById("display_area")
pic0=document.getElementById("pic_0")
containerBorder=(document.compatMode=="CSS1Compat"?0:parseInt(containerEL.style.borderWidth)*2)
containerWidth=(imgPlaces*imgWidth)+((imgPlaces-1)*imgSpacer)
containerEL.style.width=containerWidth+(!moz?containerBorder:"")+"px"
containerEL.style.height=imgHeight+(!moz?containerBorder:"")+"px"
displayArea.style.width=containerWidth+"px"
displayArea.style.clip="rect(0,"+(containerWidth+"px")+","+(imgHeight+"px")+",0)"
displayArea.onmouseover=function(){stopHIS3()}
displayArea.onmouseout=function(){scrollHIS3()}
imgPos= -pic0.width
for(var i=0;i<imgPlaces+1;i++){
currentImage=document.getElementById("pic_"+i)
if(dir==0){imgPos+=pic0.width+imgSpacer} // if left
initPos[i]=imgPos
if(dir==0){currentImage.style.left=initPos[i]+"px"} // if left
if(dir==1){ // if right
document.getElementById("pic_"+[(imgPlaces-i)]).style.left=initPos[i]+"px"
imgPos+=pic0.width+imgSpacer
}
if(nextPic==data.length){nextPic=0}
currentImage.src=data[nextPic][0]
currentImage.alt=data[nextPic][1]
currentImage.i=nextPic
currentImage.onclick=function(){his3Win(data[this.i][2])}
nextPic++
}

scrollHIS3()
}

timer=""
function scrollHIS3(){
clearTimeout(timer)
for(var i=0;i<imgPlaces+1;i++){
currentImage=document.getElementById("pic_"+i)

nowDivPos[i]=parseInt(currentImage.style.left)

if(dir==0){nowDivPos[i]-=step}
if(dir==1){nowDivPos[i]+=step}

if(dir==0&&nowDivPos[i]<= -(pic0.width+imgSpacer) || dir==1&&nowDivPos[i]>containerWidth){

if(dir==0){currentImage.style.left=containerWidth+imgSpacer+"px"}
if(dir==1){currentImage.style.left= -pic0.width-(imgSpacer*2)+"px"}

if(nextPic>data.length-1){nextPic=0}

currentImage.src=data[nextPic][0]
currentImage.alt=data[nextPic][1]
currentImage.i=nextPic
currentImage.onclick=function(){his3Win(data[this.i][2])}

nextPic++

}
else{
currentImage.style.left=nowDivPos[i]+"px"
}

}
timer=setTimeout("scrollHIS3()",speed)

}

function stopHIS3(){
clearTimeout(timer)
}

function his3Win(loc){
if(loc==""){return}
if(newWindow==0){
location=loc
}
else{
//window.open(loc)
newin=window.open(loc,'win1') // use for specific size and positioned window
//newin=window.open(loc,'win1','left=430,top=340,width=300,height=300',type=fullWindow,fullscreen,scrollbars=yes')
newin.focus()
}
}
// add onload="initHIS3()" to the opening BODY tag
// -->
