
<!--
// Realised By Hakan OBUZ


// ********** User Defining Area **********

data=new Array()
data[0]=new Array("images/film/000_small.jpg","http://www.wasahotel.com/tr/images/film/000.htm")
data[1]=new Array("images/film/001_small.jpg","http://www.wasahotel.com/tr/images/film/001.htm")
data[2]=new Array("images/film/002_small.jpg","http://www.wasahotel.com/tr/images/film/002.htm")
data[3]=new Array("images/film/003_small.jpg","http://www.wasahotel.com/tr/images/film/003.htm")
data[4]=new Array("images/film/004_small.jpg","http://www.wasahotel.com/tr/images/film/004.htm")
data[5]=new Array("images/film/005_small.jpg","http://www.wasahotel.com/tr/images/film/005.htm")
data[6]=new Array("images/film/006_small.jpg","http://www.wasahotel.com/tr/images/film/006.htm")
data[7]=new Array("images/film/007_small.jpg","http://www.wasahotel.com/tr/images/film/007.htm")
data[8]=new Array("images/film/008_small.jpg","http://www.wasahotel.com/tr/images/film/008.htm")
data[9]=new Array("images/film/009_small.jpg","http://www.wasahotel.com/tr/images/film/009.htm")
data[10]=new Array("images/film/010_small.jpg","http://www.wasahotel.com/tr/images/film/010.htm")


img_places=5 // Ekranda gozukecek ımage sayısı
img_size=71 // size of the images, width and height are the same
img_spacer=2 // space between the images

scroll_all_images=1
// 0 = first_img_num to the last_img_num
// 1 = scroll through all images in the array

// if scroll_all_images is set at zero the following two lines define a set of images
first_img_num=1 // starting image number, 1 to number of images in the array 
last_img_num=10 // ending image number

display_border=4 //
border_type="ridge" //
border_colour="#afa684" //
display_bgcol="#cfc8a6" // add colour to the space between the images

display_top=385 // top position must be stated
display_center=0 // 0 = no 1 = yes, if set at zero then display_left is used
display_left=150 // left position is over-ridden if display_center is set at 1

speed=1 // rate the images move
// ********** End Of User Defining Area **********
// ********** Editing beyond this line is not required **********

first_img_num-- // adjust for javascript count 
last_img_num-- // adjust for javascript count 
if(first_img_num== -1){ // check for javascript count 
first_img_num=0
}
if(last_img_num>data.length-1){
last_img_num=data.length-1
}
display_width=(img_places*img_size)+(img_places*img_spacer)
initpos=new Array()
nowdivpos=new Array()
next_right=""
nextpic=first_img_num
run_rate=10

function init(){
if(scroll_all_images==1){
nextpic=0
}
document.write("<div id=\"display\" style=\"position:absolute; left:"+display_left+"; top:"+display_top+"; width:"+(display_width+display_border*2)+"px; height:"+(img_size+display_border*2)+"px; border:"+display_border+"px "+border_type+" "+border_colour+";background-color:"+display_bgcol+"\">")

if(display_center==1){
document.getElementById("display").style.left=(document.body.clientWidth/2)-(document.getElementById("display").offsetWidth/2)
}

document.write("<div  id=\"center_div\" style=\"position:absolute; left:0; top:0; width:"+display_width+"px; height:"+img_size+"px; clip:rect(0,"+display_width+","+img_size+",0)\" onmouseover=\"stopme()\" onmouseout=\"move_right()\">")

for(i=0;i<img_places+1;i++){
document.write("<div id=\"div_"+[i]+"\" style=\"position:absolute\">")
document.write("<a id=\"loc"+[i]+"\" href=\"\" onclick=\"newwin(this.location);return false\"><img src=\"\" id=\"pic_"+[i]+"\" width="+img_size+" height="+img_size+" alt=\"Resimler Yukleniyor\" border=\"0\"></a></div>")
}
document.write("</div>")
document.write("</div>")
el_center=document.getElementById("center_div")
elpos=-document.getElementById("pic_0").width//parseInt(el_center.style.width)-document.getElementById("pic_0").width

for(i=0;i<img_places+1;i++){
elpos+=(document.getElementById("pic_0").width)+img_spacer
initpos[i]=elpos
document.getElementById("div_"+[i]).style.left=initpos[i]

if(scroll_all_images==0&&nextpic>last_img_num){
nextpic=first_img_num
document.getElementById("loc"+[i]).location=data[nextpic][1]
document.getElementById("pic_"+[i]).src=data[nextpic++][0]
}
else{
document.getElementById("loc"+[i]).location=data[nextpic][1]
document.getElementById("pic_"+[i]).src=data[nextpic++][0]
}

}

move_right()
}

function move_right(){
for(i=0;i<img_places+1;i++){
nowdivpos[i]=parseInt(document.getElementById("div_"+i).style.left)
nowdivpos[i]-=speed

if(nowdivpos[i]<= -document.getElementById("pic_0").width){
document.getElementById("div_"+[i]).style.left=parseInt(el_center.style.width)+img_spacer

if(scroll_all_images==0&&nextpic>last_img_num){
nextpic=first_img_num
document.getElementById("loc"+[i]).location=data[nextpic][1]
document.getElementById("pic_"+[i]).src=data[nextpic++][0]
}
else{
if(nextpic>data.length-1){
nextpic=0
}
document.getElementById("loc"+[i]).location=data[nextpic][1]
document.getElementById("pic_"+[i]).src=data[nextpic++][0]
}

}
else{
document.getElementById("div_"+[i]).style.left=nowdivpos[i]
}

}
next_right=setTimeout("move_right()",run_rate)

}

function stopme(){
clearTimeout(next_right)
}

function newwin(loc){
if(loc==""){return}
//window.open(loc)
window.open(loc,'','left=200,top=200,width=640,height=600') // use for specific size and positioned window
}

// add onload="init()" and style="overflow-x:hidden" to the opening BODY tag

// place <script>init()</script> 