window.setTimeout('handleseatimage()',4000)
var seat1 = new Image()
seat1.src = "images/pands/a.jpg"
var seat2 = new Image()
seat2.src = "images/pands/b.jpg"
var seat3 = new Image()
seat3.src = "images/pands/c.jpg"
var seatimages = new Array(seat1.src,seat2.src,seat3.src)

function handleseatimage(){
var seatobj = document.getElementById("seatimg")
if(seatobj.src == seatimages[2]){
rotateseatimage(seatimages[0])
}else if(seatobj.src == seatimages[1]){
rotateseatimage(seatimages[2])
}else{
rotateseatimage(seatimages[1])
}
}

function rotateseatimage(imgsrc){
var columnrobj = document.getElementById("column_r")
columnrobj.style.backgroundImage = "url(" + imgsrc + ")"
columnrobj.style.backgroundPosition = "2px 2px"
columnrobj.style.backgroundRepeat = "no-repeat"
var seatobj = document.getElementById("seatimg")
if(seatobj.filters){
seatobj.filters.alpha.opacity = 100
}else{
seatobj.style.opacity = 1
}
rotateseatimage2(imgsrc)
}

function rotateseatimage2(imgsrc2){
var seatobj = document.getElementById("seatimg")
if(seatobj.filters){
if(seatobj.filters.alpha.opacity == 0){
rotateseatimage3(imgsrc2)
}else{
seatobj.filters.alpha.opacity = seatobj.filters.alpha.opacity - 1
window.setTimeout("rotateseatimage2('" + imgsrc2 + "')",20)
}
}else{
if(seatobj.style.opacity == 0){
rotateseatimage3(imgsrc2)
}else{
seatobj.style.opacity = seatobj.style.opacity - 0.01
window.setTimeout("rotateseatimage2('" + imgsrc2 + "')",20)
}
}
}

function rotateseatimage3(imgsrc3){
var seatobj = document.getElementById("seatimg")
seatobj.src = imgsrc3
if(seatobj.filters){
seatobj.filters.alpha.opacity = 100
}else{
seatobj.style.opacity = 1
}
window.setTimeout('handleseatimage()',4000)
}
