
var bistro=new Array()
bistro[0]=["/templates/tindalls.co.uk/_images/officeinteriors/bistro1.jpg", "", ""]
bistro[1]=["/templates/tindalls.co.uk/_images/officeinteriors/bistro2.jpg", "", ""]
bistro[2]=["/templates/tindalls.co.uk/_images/officeinteriors/bistro3.jpg", "", ""] 
bistro[3]=["/templates/tindalls.co.uk/_images/officeinteriors/bistro4.jpg", "", ""] 
bistro[4]=["/templates/tindalls.co.uk/_images/officeinteriors/bistro5.jpg", "", ""] 
bistro[5]=["/templates/tindalls.co.uk/_images/officeinteriors/bistro6.jpg", "", ""] 
bistro[2]=["/templates/tindalls.co.uk/_images/officeinteriors/bistro7.jpg", "", ""] 
bistro[3]=["/templates/tindalls.co.uk/_images/officeinteriors/bistro8.jpg", "", ""] 
bistro[4]=["/templates/tindalls.co.uk/_images/officeinteriors/bistro9.jpg", "", ""] 
bistro[5]=["/templates/tindalls.co.uk/_images/officeinteriors/bistro10.jpg", "", ""] 


var visitus=new Array()
visitus[0]=["/templates/tindalls.co.uk/_images/photos/colchester1.jpg", "/contact-us", ""]
visitus[1]=["/templates/tindalls.co.uk/_images/photos/colchester2.jpg", "/contact-us", ""]
visitus[2]=["/templates/tindalls.co.uk/_images/photos/cambridge1.jpg", "/contact-us", ""]
visitus[3]=["/templates/tindalls.co.uk/_images/photos/cambridge2.jpg", "/contact-us", ""]
visitus[4]=["/templates/tindalls.co.uk/_images/photos/newmarket1.jpg", "/contact-us", ""]
visitus[5]=["/templates/tindalls.co.uk/_images/photos/newmarket2.jpg", "/contact-us", ""]
visitus[6]=["/templates/tindalls.co.uk/_images/photos/ely1.jpg", "/contact-us", ""]
visitus[7]=["/templates/tindalls.co.uk/_images/photos/ely2.jpg", "/contact-us", ""]



var cambridge=new Array()
cambridge[0]=["/templates/tindalls.co.uk/_images/offices/cambridge1.jpg", "", ""]
cambridge[1]=["/templates/tindalls.co.uk/_images/offices/cambridge2.jpg", "", ""]
cambridge[2]=["/templates/tindalls.co.uk/_images/offices/cambridge3.jpg", "", ""] 
cambridge[3]=["/templates/tindalls.co.uk/_images/offices/cambridge4.jpg", "", ""] 
cambridge[4]=["/templates/tindalls.co.uk/_images/offices/cambridge5.jpg", "", ""] 
cambridge[5]=["/templates/tindalls.co.uk/_images/offices/cambridge6.jpg", "", ""] 
cambridge[6]=["/templates/tindalls.co.uk/_images/offices/cambridge7.jpg", "", ""] 


var colchester=new Array()
colchester[0]=["/templates/tindalls.co.uk/_images/offices/colchester1.jpg", "", ""]
colchester[1]=["/templates/tindalls.co.uk/_images/offices/colchester2.jpg", "", ""]
colchester[2]=["/templates/tindalls.co.uk/_images/offices/colchester3.jpg", "", ""] 
colchester[3]=["/templates/tindalls.co.uk/_images/offices/colchester4.jpg", "", ""] 
colchester[4]=["/templates/tindalls.co.uk/_images/offices/colchester5.jpg", "", ""] 
colchester[5]=["/templates/tindalls.co.uk/_images/offices/colchester6.jpg", "", ""] 
colchester[6]=["/templates/tindalls.co.uk/_images/offices/colchester7.jpg", "", ""] 


var ely=new Array()
ely[0]=["/templates/tindalls.co.uk/_images/offices/ely1.jpg", "", ""]
ely[1]=["/templates/tindalls.co.uk/_images/offices/ely2.jpg", "", ""]
ely[2]=["/templates/tindalls.co.uk/_images/offices/ely3.jpg", "", ""] 
ely[3]=["/templates/tindalls.co.uk/_images/offices/ely4.jpg", "", ""] 
ely[4]=["/templates/tindalls.co.uk/_images/offices/ely5.jpg", "", ""] 
ely[5]=["/templates/tindalls.co.uk/_images/offices/ely6.jpg", "", ""] 
ely[6]=["/templates/tindalls.co.uk/_images/offices/ely7.jpg", "", ""] 


var homephotos=new Array()
homephotos[0]=["/templates/tindalls.co.uk/_images/photos/homephoto1.jpg", "http://www.tindalls.co.uk/prizedraw", ""]
homephotos[1]=["/templates/tindalls.co.uk/_images/photos/homephoto3.jpg", "http://www.tindalls.co.uk/art/pebeo-studio-acrylic-250ml.html", ""] 
homephotos[2]=["/templates/tindalls.co.uk/_images/photos/homephoto4.jpg", "http://www.tindalls.co.uk/gifts/paperblanks/paperblanks-address-books/", ""]
///homephotos[3]=["/templates/tindalls.co.uk/_images/photos/homephoto2.jpg", "http://www.tindalls.co.uk/gifts/pens/br:sheaffer/", ""]

///homephotos[4]=["/templates/tindalls.co.uk/_images/photos/homephoto5.jpg", "http://www.tindalls.co.uk/giftideas", ""] 


var gifts=new Array()
gifts[0]=["/templates/tindalls.co.uk/_images/photos/homephoto4.jpg", "http://www.tindalls.co.uk/gifts/filofax/special-offers/", ""]
gifts[1]=["/templates/tindalls.co.uk/_images/photos/homephoto2.jpg", "http://www.tindalls.co.uk/gifts/pens/br:sheaffer/", ""]
///homephotos[4]=["/templates/tindalls.co.uk/_images/photos/homephoto5.jpg", "http://www.tindalls.co.uk/giftideas", ""] 



var newmarket=new Array()
newmarket[0]=["/templates/tindalls.co.uk/_images/offices/newmarket1.jpg", "", ""]
newmarket[1]=["/templates/tindalls.co.uk/_images/offices/newmarket2.jpg", "", ""]
newmarket[2]=["/templates/tindalls.co.uk/_images/offices/newmarket3.jpg", "", ""] 
newmarket[3]=["/templates/tindalls.co.uk/_images/offices/newmarket4.jpg", "", ""] 
newmarket[4]=["/templates/tindalls.co.uk/_images/offices/newmarket5.jpg", "", ""] 
newmarket[5]=["/templates/tindalls.co.uk/_images/offices/newmarket6.jpg", "", ""] 
newmarket[6]=["/templates/tindalls.co.uk/_images/offices/newmarket7.jpg", "", ""] 



var logos=new Array()
logos[0]=["/templates/tindalls.co.uk/_images/officeinteriors/logo1.gif", "", ""]
logos[1]=["/templates/tindalls.co.uk/_images/officeinteriors/logo2.gif", "", ""]
logos[2]=["/templates/tindalls.co.uk/_images/officeinteriors/logo3.gif", "", ""] 
logos[3]=["/templates/tindalls.co.uk/_images/officeinteriors/logo4.gif", "", ""] 
logos[4]=["/templates/tindalls.co.uk/_images/officeinteriors/logo5.gif", "", ""] 

var interiordesign=new Array()
interiordesign[0]=["/templates/tindalls.co.uk/_images/officeinteriors/id_1.jpg", "", ""]
interiordesign[1]=["/templates/tindalls.co.uk/_images/officeinteriors/id_2.jpg", "", ""]
interiordesign[2]=["/templates/tindalls.co.uk/_images/officeinteriors/id_3.jpg", "", ""] 

var airconditioning=new Array()
airconditioning[0]=["/templates/tindalls.co.uk/_images/officeinteriors/ac_1.jpg", "", ""]
airconditioning[1]=["/templates/tindalls.co.uk/_images/officeinteriors/ac_2.jpg", "", ""]


var spaceplanning=new Array()
spaceplanning[0]=["/templates/tindalls.co.uk/_images/officeinteriors/sp_1.jpg", "", ""]
spaceplanning[1]=["/templates/tindalls.co.uk/_images/officeinteriors/sp_2.jpg", "", ""]
spaceplanning[2]=["/templates/tindalls.co.uk/_images/officeinteriors/sp_3.jpg", "", ""] 

var news=new Array()
news[0]=["/templates/tindalls.co.uk/_images/officeinteriors/news4.jpg", "", ""]
news[1]=["/templates/tindalls.co.uk/_images/officeinteriors/news1.jpg", "", ""]
news[2]=["/templates/tindalls.co.uk/_images/officeinteriors/news2.jpg", "", ""]
news[3]=["/templates/tindalls.co.uk/_images/officeinteriors/news3.jpg", "", ""]
news[4]=["/templates/tindalls.co.uk/_images/officeinteriors/news5.jpg", "", ""]
news[5]=["/templates/tindalls.co.uk/_images/officeinteriors/news6.jpg", "", ""]
news[6]=["/templates/tindalls.co.uk/_images/officeinteriors/news7.jpg", "", ""]
news[7]=["/templates/tindalls.co.uk/_images/officeinteriors/news8.jpg", "", ""]

var newssmall=new Array()
newssmall[0]=["/templates/tindalls.co.uk/_images/officeinteriors/newssmall1.jpg", "/office-interiors/latestnews", ""]
newssmall[1]=["/templates/tindalls.co.uk/_images/officeinteriors/newssmall2.jpg", "/office-interiors/latestnews", ""]
newssmall[2]=["/templates/tindalls.co.uk/_images/officeinteriors/newssmall3.jpg", "/office-interiors/latestnews", ""]  
newssmall[3]=["/templates/tindalls.co.uk/_images/officeinteriors/newssmall4.jpg", "/office-interiors/latestnews", ""]  
newssmall[4]=["/templates/tindalls.co.uk/_images/officeinteriors/newssmall5.jpg", "/office-interiors/latestnews", ""]  
newssmall[5]=["/templates/tindalls.co.uk/_images/officeinteriors/newssmall6.jpg", "/office-interiors/latestnews", ""]  
newssmall[6]=["/templates/tindalls.co.uk/_images/officeinteriors/newssmall7.jpg", "/office-interiors/latestnews", ""]  

var flooring=new Array()
flooring[0]=["/templates/tindalls.co.uk/_images/officeinteriors/flooring1.jpg", "", ""]
flooring[1]=["/templates/tindalls.co.uk/_images/officeinteriors/flooring2.jpg", "", ""]

var decorating=new Array()
decorating[0]=["/templates/tindalls.co.uk/_images/officeinteriors/decorating1.jpg", "", ""]
decorating[1]=["/templates/tindalls.co.uk/_images/officeinteriors/decorating2.jpg", "", ""]

var boardroom=new Array()
boardroom[0]=["/templates/tindalls.co.uk/_images/officeinteriors/boardroom1.jpg", "", ""]
boardroom[1]=["/templates/tindalls.co.uk/_images/officeinteriors/boardroom2.jpg", "", ""]
boardroom[2]=["/templates/tindalls.co.uk/_images/officeinteriors/boardroom3.jpg", "", ""] 
boardroom[3]=["/templates/tindalls.co.uk/_images/officeinteriors/boardroom4.jpg", "", ""] 

var reception=new Array()
reception[0]=["/templates/tindalls.co.uk/_images/officeinteriors/reception1.jpg", "", ""]
reception[1]=["/templates/tindalls.co.uk/_images/officeinteriors/reception2.jpg", "", ""]
reception[2]=["/templates/tindalls.co.uk/_images/officeinteriors/reception3.jpg", "", ""] 
reception[3]=["/templates/tindalls.co.uk/_images/officeinteriors/reception4.jpg", "", ""] 
reception[4]=["/templates/tindalls.co.uk/_images/officeinteriors/reception5.jpg", "", ""] 

var planting=new Array()
planting[0]=["/templates/tindalls.co.uk/_images/officeinteriors/planting1.jpg", "", ""]
planting[1]=["/templates/tindalls.co.uk/_images/officeinteriors/planting2.jpg", "", ""]
planting[2]=["/templates/tindalls.co.uk/_images/officeinteriors/planting3.jpg", "", ""] 
planting[3]=["/templates/tindalls.co.uk/_images/officeinteriors/planting4.jpg", "", ""] 
planting[4]=["/templates/tindalls.co.uk/_images/officeinteriors/planting5.jpg", "", ""] 

var blinds=new Array()
blinds[0]=["/templates/tindalls.co.uk/_images/officeinteriors/blinds0.jpg", "", ""]
blinds[1]=["/templates/tindalls.co.uk/_images/officeinteriors/blinds1.jpg", "", ""]
blinds[2]=["/templates/tindalls.co.uk/_images/officeinteriors/blinds2.jpg", "", ""] 
blinds[3]=["/templates/tindalls.co.uk/_images/officeinteriors/blinds3.jpg", "", ""] 
blinds[4]=["/templates/tindalls.co.uk/_images/officeinteriors/blinds4.jpg", "", ""] 

var screens=new Array()
screens[0]=["/templates/tindalls.co.uk/_images/officeinteriors/screens1.jpg", "", ""]
screens[1]=["/templates/tindalls.co.uk/_images/officeinteriors/screens2.jpg", "", ""]
screens[2]=["/templates/tindalls.co.uk/_images/officeinteriors/screens3.jpg", "", ""] 
screens[3]=["/templates/tindalls.co.uk/_images/officeinteriors/screens4.jpg", "", ""] 
screens[4]=["/templates/tindalls.co.uk/_images/officeinteriors/screens5.jpg", "", ""] 

var homeoffice=new Array()
homeoffice[0]=["/templates/tindalls.co.uk/_images/officeinteriors/homeoffice1.jpg", "", ""]
homeoffice[1]=["/templates/tindalls.co.uk/_images/officeinteriors/homeoffice2.jpg", "", ""]

var seats=new Array()
seats[0]=["/templates/tindalls.co.uk/_images/officeinteriors/seats1.jpg", "", ""]
seats[1]=["/templates/tindalls.co.uk/_images/officeinteriors/seats2.jpg", "", ""]
seats[2]=["/templates/tindalls.co.uk/_images/officeinteriors/seats3.jpg", "", ""] 
seats[3]=["/templates/tindalls.co.uk/_images/officeinteriors/seats4.jpg", "", ""] 

var storage=new Array()
storage[0]=["/templates/tindalls.co.uk/_images/officeinteriors/storage1.jpg", "", ""]
storage[1]=["/templates/tindalls.co.uk/_images/officeinteriors/storage2.jpg", "", ""]
storage[2]=["/templates/tindalls.co.uk/_images/officeinteriors/storage3.jpg", "", ""] 
storage[3]=["/templates/tindalls.co.uk/_images/officeinteriors/storage4.jpg", "", ""]
storage[4]=["/templates/tindalls.co.uk/_images/officeinteriors/storage5.jpg", "", ""]
storage[5]=["/templates/tindalls.co.uk/_images/officeinteriors/storage6.jpg", "", ""]
storage[6]=["/templates/tindalls.co.uk/_images/officeinteriors/storage7.jpg", "", ""]

var workstation=new Array()
workstation[0]=["/templates/tindalls.co.uk/_images/officeinteriors/workstation1.jpg", "", ""]
workstation[1]=["/templates/tindalls.co.uk/_images/officeinteriors/workstation2.jpg", "", ""]
workstation[2]=["/templates/tindalls.co.uk/_images/officeinteriors/workstation3.jpg", "", ""] 
workstation[3]=["/templates/tindalls.co.uk/_images/officeinteriors/workstation4.jpg", "", ""]

var furniture=new Array()
furniture[0]=["/templates/tindalls.co.uk/_images/officeinteriors/seats3.jpg", "", ""]
furniture[1]=["/templates/tindalls.co.uk/_images/officeinteriors/storage4.jpg", "", ""]
furniture[2]=["/templates/tindalls.co.uk/_images/officeinteriors/seats4.jpg", "", ""] 
furniture[3]=["/templates/tindalls.co.uk/_images/officeinteriors/bistro2.jpg", "", ""]

 
var fadebgcolor="white"

////NO need to edit beyond here/////////////
 
var fadearray=new Array() //array to cache fadeshow instances
var fadeclear=new Array() //array to cache corresponding clearinterval pointers
 
var dom=(document.getElementById) //modern dom browsers
var iebrowser=document.all
 
function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){
this.pausecheck=pause
this.mouseovercheck=0
this.delay=delay
this.degree=10 //initial opacity degree (10%)
this.curimageindex=0
this.nextimageindex=1
fadearray[fadearray.length]=this
this.slideshowid=fadearray.length-1
this.canvasbase="canvas"+this.slideshowid
this.curcanvas=this.canvasbase+"_0"
if (typeof displayorder!="undefined")
theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)
this.theimages=theimages
this.imageborder=parseInt(borderwidth)
this.postimages=new Array() //preload images
for (p=0;p<theimages.length;p++){
this.postimages[p]=new Image()
this.postimages[p].src=theimages[p][0]
}
 
var fadewidth=fadewidth+this.imageborder*2
var fadeheight=fadeheight+this.imageborder*2
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)
document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div></div>')
else
document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox
this.startit()
else{
this.curimageindex++
setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay)
}
}

function fadepic(obj){
if (obj.degree<100){
obj.degree+=10
if (obj.tempobj.filters&&obj.tempobj.filters[0]){
if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+
obj.tempobj.filters[0].opacity=obj.degree
else //else if IE5.5-
obj.tempobj.style.filter="alpha(opacity="+obj.degree+")"
}
else if (obj.tempobj.style.MozOpacity)
obj.tempobj.style.MozOpacity=obj.degree/101
else if (obj.tempobj.style.KhtmlOpacity)
obj.tempobj.style.KhtmlOpacity=obj.degree/100
else if (obj.tempobj.style.opacity&&!obj.tempobj.filters)
obj.tempobj.style.opacity=obj.degree/101
}
else{
clearInterval(fadeclear[obj.slideshowid])
obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"
obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)
obj.populateslide(obj.tempobj, obj.nextimageindex)
obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0
setTimeout("fadearray["+obj.slideshowid+"].rotateimage()", obj.delay)
}
}
 
fadeshow.prototype.populateslide=function(picobj, picindex){
var slideHTML=""
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML+='</a>'
picobj.innerHTML=slideHTML
}
 
 
fadeshow.prototype.rotateimage=function(){
if (this.pausecheck==1) //if pause onMouseover enabled, cache object
var cacheobj=this
if (this.mouseovercheck==1)
setTimeout(function(){cacheobj.rotateimage()}, 100)
else if (iebrowser&&dom||dom){
this.resetit()
var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
crossobj.style.zIndex++
fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50)
this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
}
else{
var ns4imgobj=document.images['defaultslide'+this.slideshowid]
ns4imgobj.src=this.postimages[this.curimageindex].src
}
this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0
}
 
fadeshow.prototype.resetit=function(){
this.degree=10
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
if (crossobj.filters&&crossobj.filters[0]){
if (typeof crossobj.filters[0].opacity=="number") //if IE6+
crossobj.filters(0).opacity=this.degree
else //else if IE5.5-
crossobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=this.degree/101
else if (crossobj.style.KhtmlOpacity)
crossobj.style.KhtmlOpacity=this.degree/100
else if (crossobj.style.opacity&&!crossobj.filters)
crossobj.style.opacity=this.degree/101
}
 
 
fadeshow.prototype.startit=function(){
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
this.populateslide(crossobj, this.curimageindex)
if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER
var cacheobj=this
var crossobjcontainer=iebrowser? iebrowser["master"+this.slideshowid] : document.getElementById("master"+this.slideshowid)
crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}
crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}
}
this.rotateimage()
}

