/***********************************************
* Ultimate Fade-In Slideshow (v1.51): © Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
 
var fadeimagesRETAIL=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimagesRETAIL[0]=["http://www.mpluskassa.nl/images/headers/retail-kassa-1.jpg", "", ""] //plain image syntax
fadeimagesRETAIL[1]=["http://www.mpluskassa.nl/images/headers/speciaalzaak2.jpg", "", ""] //image with link syntax
fadeimagesRETAIL[2]=["http://www.mpluskassa.nl/images/headers/groothandel1.jpg", "", ""] //image with link and target syntax
fadeimagesRETAIL[3]=["http://www.mpluskassa.nl/images/headers/webshop2.jpg", "", ""] //image with link syntax
 
var fadeimagesFASHION=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimagesFASHION[0]=["http://www.mpluskassa.nl/images/headers/retail-kassa-1.jpg", "", ""] //plain image syntax
fadeimagesFASHION[1]=["http://www.mpluskassa.nl/images/headers/retail-kassa-2.jpg", "", ""] //image with link syntax
fadeimagesFASHION[2]=["http://www.mpluskassa.nl/images/headers/retail-kassa-4.jpg", "", ""] //image with link and target syntax
fadeimagesFASHION[3]=["http://www.mpluskassa.nl/images/headers/fashion1.jpg", "", ""] //plain image syntax
fadeimagesFASHION[4]=["http://www.mpluskassa.nl/images/headers/fashion2.jpg", "", ""] //image with link syntax
fadeimagesFASHION[5]=["http://www.mpluskassa.nl/images/headers/fashion3.jpg", "", ""] //image with link and target syntax
fadeimagesFASHION[6]=["http://www.mpluskassa.nl/images/headers/fashion4.jpg", "", ""] //plain image syntax
 
var fadeimagesSPECIAAL=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimagesSPECIAAL[0]=["http://www.mpluskassa.nl/images/headers/speciaalzaakn1.jpg", "", ""] //image with link syntax
fadeimagesSPECIAAL[1]=["http://www.mpluskassa.nl/images/headers/detail1.jpg", "", ""] //image with link and target syntax
fadeimagesSPECIAAL[2]=["http://www.mpluskassa.nl/images/headers/detail2.jpg", "", ""] //image with link syntax
fadeimagesSPECIAAL[3]=["http://www.mpluskassa.nl/images/headers/speciaalzaakn1.jpg", "", ""] //image with link and target syntax

var fadeimagesPASSEN=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimagesPASSEN[0]=["http://www.mpluskassa.nl/images/headers/objects4.jpg", "", ""] //image with link syntax
fadeimagesPASSEN[1]=["http://www.mpluskassa.nl/images/headers/objects5.jpg", "", ""] //image with link and target syntax

var fadeimagesGROOTHANDEL=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimagesGROOTHANDEL[0]=["http://www.mpluskassa.nl/images/headers/groothandel1.jpg", "", ""] //plain image syntax
fadeimagesGROOTHANDEL[1]=["http://www.mpluskassa.nl/images/headers/groothandel2.jpg", "", ""] //image with link syntax
fadeimagesGROOTHANDEL[2]=["http://www.mpluskassa.nl/images/headers/groothandel3.jpg", "", ""] //plain image syntax
fadeimagesGROOTHANDEL[3]=["http://www.mpluskassa.nl/images/headers/groothandel4.jpg", "", ""] //image with link syntax
fadeimagesGROOTHANDEL[4]=["http://www.mpluskassa.nl/images/headers/groothandel5.jpg", "", ""] //plain image syntax

var fadeimagesWEBSHOP=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimagesWEBSHOP[0]=["http://www.mpluskassa.nl/images/headers/webshop1.jpg", "", ""] //plain image syntax
fadeimagesWEBSHOP[1]=["http://www.mpluskassa.nl/images/headers/webshop2.jpg", "", ""] //image with link syntax
fadeimagesWEBSHOP[2]=["http://www.mpluskassa.nl/images/headers/webshop3.jpg", "", ""] //plain image syntax
fadeimagesWEBSHOP[3]=["http://www.mpluskassa.nl/images/headers/webshop4.jpg", "", ""] //image with link syntax
fadeimagesWEBSHOP[4]=["http://www.mpluskassa.nl/images/headers/webshop5.jpg", "", ""] //plain image syntax
 
 var fadeimagesRESTAURANT=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimagesRESTAURANT[0]=["http://www.mpluskassa.nl/images/headers/restaurant1.jpg", "", ""] //plain image syntax
fadeimagesRESTAURANT[1]=["http://www.mpluskassa.nl/images/headers/restaurant2.jpg", "", ""] //image with link syntax
fadeimagesRESTAURANT[2]=["http://www.mpluskassa.nl/images/headers/restaurant3.jpg", "", ""] //image with link syntax
fadeimagesRESTAURANT[2]=["http://www.mpluskassa.nl/images/headers/restaurant4.jpg", "", ""] //image with link syntax

 var fadeimagesOVERMPLUS=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimagesOVERMPLUS[0]=["http://www.mpluskassa.nl/images/headers/topfoto3.jpg", "", ""] //plain image syntax
fadeimagesOVERMPLUS[1]=["http://www.mpluskassa.nl/images/headers/topfoto2.jpg", "", ""] //image with link syntax

 var fadeimagesOVERMPLUS2=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimagesOVERMPLUS2[0]=["http://www.mpluskassa.nl/images/headers/topfoto4.jpg", "", ""] //plain image syntax
fadeimagesOVERMPLUS2[1]=["http://www.mpluskassa.nl/images/headers/topfoto2.jpg", "", ""] //image with link syntax

 var fadeimagesOVERMPLUS3=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimagesOVERMPLUS3[0]=["http://www.mpluskassa.nl/images/headers/topfoto5.jpg", "", ""] //plain image syntax
fadeimagesOVERMPLUS3[1]=["http://www.mpluskassa.nl/images/headers/topfoto2.jpg", "", ""] //image with link syntax

 var fadeimagesDEALERS=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimagesDEALERS[0]=["http://www.mpluskassa.nl/images/headers/dealers1.jpg", "", ""] //plain image syntax
fadeimagesDEALERS[1]=["http://www.mpluskassa.nl/images/headers/dealers.jpg", "", ""] //image with link syntax

 var fadeimagesHELPDESK=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimagesHELPDESK[0]=["http://www.mpluskassa.nl/images/headers/helpdesk.jpg", "", ""] //plain image syntax
fadeimagesHELPDESK[1]=["http://www.mpluskassa.nl/images/headers/helpdesk2.jpg", "", ""] //image with link syntax

var fadeimagesMUZIEK=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimagesMUZIEK[0]=["http://www.mpluskassa.nl/images/headers/muziekf.jpg", "", ""] //image with link syntax
fadeimagesMUZIEK[1]=["http://www.mpluskassa.nl/images/headers/muziekf2.jpg", "", ""] //image with link and target syntax

var fadeimagesNIEUWS=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimagesNIEUWS[0]=["http://www.mpluskassa.nl/images/headers/nieuws1.jpg", "", ""] //image with link syntax
fadeimagesNIEUWS[1]=["http://www.mpluskassa.nl/images/headers/nieuws2.jpg", "", ""] //image with link and target syntax

var fadeimagesNIEUWS=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimagesNIEUWS[0]=["http://www.mpluskassa.nl/images/headers/nieuws1.jpg", "", ""] //image with link syntax
fadeimagesNIEUWS[1]=["http://www.mpluskassa.nl/images/headers/nieuws2.jpg", "", ""] //image with link and target syntax

 var fadeimagesREFERENTIES=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimagesREFERENTIES[0]=["http://www.mpluskassa.nl/images/headers/people1.jpg", "", ""] //plain image syntax
fadeimagesREFERENTIES[1]=["http://www.mpluskassa.nl/images/headers/people2.jpg", "", ""] //image with link syntax
fadeimagesREFERENTIES[2]=["http://www.mpluskassa.nl/images/headers/people3.jpg", "", ""] //image with link syntax
fadeimagesREFERENTIES[3]=["http://www.mpluskassa.nl/images/headers/people4.jpg", "", ""] //image with link syntax

 var fadeimagesCONTACT=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimagesCONTACT[0]=["http://www.mpluskassa.nl/images/headers/objects1.jpg", "", ""] //plain image syntax
fadeimagesCONTACT[1]=["http://www.mpluskassa.nl/images/headers/objects2.jpg", "", ""] //image with link syntax
fadeimagesCONTACT[2]=["http://www.mpluskassa.nl/images/headers/objects3.jpg", "", ""] //image with link syntax
fadeimagesCONTACT[3]=["http://www.mpluskassa.nl/images/headers/objects4.jpg", "", ""] //image with link syntax
fadeimagesCONTACT[4]=["http://www.mpluskassa.nl/images/headers/objects5.jpg", "", ""] //image with link syntax
fadeimagesCONTACT[5]=["http://www.mpluskassa.nl/images/headers/objects6.jpg", "", ""] //image with link syntax

 var fadeimagesHOTEL=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimagesHOTEL[0]=["http://www.mpluskassa.nl/images/headers/hotel1.jpg", "", ""] //plain image syntax
fadeimagesHOTEL[1]=["http://www.mpluskassa.nl/images/headers/hotel2.jpg", "", ""] //image with link syntax
fadeimagesHOTEL[2]=["http://www.mpluskassa.nl/images/headers/hotel3.jpg", "", ""] //image with link syntax
fadeimagesHOTEL[3]=["http://www.mpluskassa.nl/images/headers/hotel4.jpg", "", ""] //image with link syntax

 var fadeimagesCAFE=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimagesCAFE[0]=["http://www.mpluskassa.nl/images/headers/terras1.jpg", "", ""] //plain image syntax
fadeimagesCAFE[1]=["http://www.mpluskassa.nl/images/headers/restaurant1.jpg", "", ""] //image with link syntax
fadeimagesCAFE[2]=["http://www.mpluskassa.nl/images/headers/terras2.jpg", "", ""] //image with link syntax
fadeimagesCAFE[3]=["http://www.mpluskassa.nl/images/headers/restaurant4.jpg", "", ""] //image with link syntax

 var fadeimagesSNACKBAR=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimagesSNACKBAR[0]=["http://www.mpluskassa.nl/images/headers/snackbar1.jpg", "", ""] //plain image syntax
fadeimagesSNACKBAR[1]=["http://www.mpluskassa.nl/images/headers/snackbar2.jpg", "", ""] //image with link syntax
fadeimagesSNACKBAR[2]=["http://www.mpluskassa.nl/images/headers/snackbar3.jpg", "", ""] //image with link syntax
fadeimagesSNACKBAR[3]=["http://www.mpluskassa.nl/images/headers/snackbar4.jpg", "", ""] //image with link syntax

 var fadeimagesTAP=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimagesTAP[0]=["http://www.mpluskassa.nl/images/headers/tbauto1.jpg", "", ""] //plain image syntax
fadeimagesTAP[1]=["http://www.mpluskassa.nl/images/headers/tbauto2.jpg", "", ""] //image with link syntax
fadeimagesTAP[2]=["http://www.mpluskassa.nl/images/headers/tbauto3.jpg", "", ""] //image with link syntax
fadeimagesTAP[3]=["http://www.mpluskassa.nl/images/headers/tbauto4.jpg", "", ""] //image with link syntax
 
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()
}