/***********************************************
* 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 fadeimages=new Array()
var fadeimages2=new Array()
var slides=new Array()
//SET IMAGE PATHS. Extend or contract array as needed

function loadimagearray(){
	//SET 0) ImageFileName, 1) optional link, 2), optional description:
	i=-1;
//	fadeimages2[i+=1]=["bmw_120x120.jpg","http://www.bmw-denhaag.nl","BMW Den Haag"];
	fadeimages2[i+=1]=["dita_120x120.gif","http://www.dita.nl","Dita"];
	fadeimages2[i+=1]=["savelberg2_120x120.gif","http://www.restauranthotelsavelberg.nl","Restaurant Hotel Savelberg"];
	fadeimages2[i+=1]=["europcar_120x120.gif?v=2","http://www.europcar.nl","Europcar"];
	fadeimages2[i+=1]=["eiffel_120x120.gif","http://www.eiffel.nl","Eiffel"];
	fadeimages2[i+=1]=["ernstandyoung_120x120.gif?v=2","http://www.ey.nl","Ernst & Young"];
	i=-1;
	fadeimages[i+=1]=["aircofin_120x120.gif","http://www.aircofin.nl","Airco Fin"];
	fadeimages[i+=1]=["appm_120x120.jpg","http://www.appm.nl","APPM Management Consultants"];
	fadeimages[i+=1]=["aquarius_120x120.jpg","http://www.cocacola.nl","Aquarius"];
	fadeimages[i+=1]=["ballsmedia_120x120.gif","http://www.ballsmedia.nl","Balls Media"];
//	fadeimages[i+=1]=["bmw_120x120.jpg","http://www.bmw-denhaag.nl","BMW Den Haag"];
	fadeimages[i+=1]=["boercroon_120x120.gif","http://www.boercroon.nl","Boer & Croon Executive Managers"];
	fadeimages[i+=1]=["canterbury_120x120.gif","http://www.canterburynz.nl","Canterbury"];
	fadeimages[i+=1]=["cdktandartsen_120x120.gif","http://www.cdktandartsen.nl","CDK tandartsen & specialisten"];
	fadeimages[i+=1]=["chipshol_120x120.gif","http://www.chipshol.com","ChipsHol"];
	fadeimages[i+=1]=["coca-cola_120x120.jpg","http://www.cocacola.nl","Coca-Cola"];
	fadeimages[i+=1]=["delissen_martens_120x120.gif","http://www.delissenmartens.nl","Delissen Martens advocaten"];
//	fadeimages[i+=1]=["dita_120x120.gif?v=1","http://www.dita.nl","Dita"];
	fadeimages[i+=1]=["ebm_120x120.gif","http://www.ebm-vastgoed.com","EBM vastgoed"];
	fadeimages[i+=1]=["FrissenLegal_120x120.gif","http://www.frissenlegal.nl","Frissen Legal"];
	fadeimages[i+=1]=["gamma_120x120.gif","http://www.gamma.nl","Gamma"];
	fadeimages[i+=1]=["degroenegroep_120x120.gif","http://www.degroenegroep.nl","De Groene Groep"];
//	fadeimages[i+=1]=["hl_couriers_120x120.gif","http://www.hlcouriers.nl","Holland Logistics Couriers"];
//	fadeimages[i+=1]=["huizevanwely_120x120.gif","http://www.huizevanwely.nl","Huize van Wely"];
//	fadeimages[i+=1]=["ibus_120x120.gif","http://www.ibus.nl","The IBUS Company"];
	fadeimages[i+=1]=["kpmg_120x120.gif","http://www.kpmg.nl","KPMG"];
//	fadeimages[i+=1]=["kroeseenpaternotte_120x120.gif","http://www.kroese-paternotte.nl",""];
//	fadeimages[i+=1]=["vdkroft_120x120.gif","http://www.vdkroft.nl","Van der Kroft Party Rental"];
	fadeimages[i+=1]=["KeurslagerGroeneveld_120x120.gif","http://www.groeneveld.keurslager.nl","Keurslager Groeneveld"];
	fadeimages[i+=1]=["ksms_120x120.gif","http://www.ksms.nl","KS Management Services"];
	fadeimages[i+=1]=["delandbouw_120x120.gif","http://www.brasseriedelandbouw.nl","Brasserie De Landbouw"];
	fadeimages[i+=1]=["lejeune_120x120.gif","http://www.lejeune.nl","Le Jeune Association Management"];
	fadeimages[i+=1]=["LekkersVanBeckers_120x120.gif","http://www.beckers.nl","Lekkers van Beckers"];
	fadeimages[i+=1]=["lsi_120x120.gif","http://www.lsi.eu","LSI Project Investment"];
	fadeimages[i+=1]=["luijckx_120x120.gif","http://www.luijckx-mak.nl","Luijckx Makelaardij"];
	fadeimages[i+=1]=["maasstede_120x120.gif","http://www.maasstede.com","Maasstede"];
	fadeimages[i+=1]=["maesenlunau_120x120.gif","http://www.maesenlunau.nl","Maes & Lunau"];
	fadeimages[i+=1]=["MAS-International_120x120.gif","http://www.mas-international.com","Mas-International"];
	fadeimages[i+=1]=["matzinger_eversdijk_120x120.gif","http://www.matzinger.nl","Matzinger & Eversdijk notarissen"];
	fadeimages[i+=1]=["MaxHealthClub_120x120.gif","http://www.maxhealthclub.nl","Max Health Club"];
	fadeimages[i+=1]=["meeus_120x120.gif","http://www.meeus.com","Meeus"];
	fadeimages[i+=1]=["multivastgoed_120x120.gif","http://www.multi-development.com","Multi Vastgoed"];
//	fadeimages[i+=1]=["nassauhuis_120x120.gif","http://www.nassauhuis.com","Nassauhuis Makelaardij"];
	fadeimages[i+=1]=["oneill_120x120.gif","http://www.oneill.nl","O'Neill"];
	fadeimages[i+=1]=["orthospecialist_120x120.gif","http://www.orthospecialist.nl","Orthospecialist Den Haag"];
	fadeimages[i+=1]=["PartyRental_120x120.jpg","http://www.vdkroft.nl","Van der Kroft's Party Rental"];
	fadeimages[i+=1]=["passier_120x120.gif","http://www.passier.nl","Passier Sanitair & Badkamers"];
//	fadeimages[i+=1]=["rabo_120x120.gif","http://www.rabobank.nl","Rabobank"];
	fadeimages[i+=1]=["redfeet_120x120.gif","http://www.redfeet.nl","Red Feet internet oplossingen"];
	fadeimages[i+=1]=["remmerswaal_120x120.gif","http://www.maatschap-remmerswaal.nl","Maatschap Remmerswaal"];
	fadeimages[i+=1]=["rsdrukkerij_120x120.gif","http://www.rs-drukkerij.nl","RS Drukkerij"];
//	fadeimages[i+=1]=["schouwenhaghe_120x120.gif","http://www.schouwenhaghe.nl","Schouwenhaghe Makelaardij"];
	fadeimages[i+=1]=["DeSkihut_120x120.gif","http://www.skihut.nl","De Skihut"];
	fadeimages[i+=1]=["vansoest_120x120.gif","http://www.vansoest.nl","Van Soest Makelaardij"];
	fadeimages[i+=1]=["vopak_120x120.gif","http://www.vopak.nl","Vopak"];
	fadeimages[i+=1]=["sportstrategie_120x120.gif","http://www.sportstrategie.nl","Sportstrategie"];
	fadeimages[i+=1]=["steegman_120x120.gif","http://www.steegmangroep.nl","Steegman Groep"];
	fadeimages[i+=1]=["stebo_120x120.gif","http://www.stebo.nl","Particuliere school Stebo"];
	fadeimages[i+=1]=["steltman_juwelier_120x120.gif","http://www.steltman.nl","Steltman Juwelier"];
	fadeimages[i+=1]=["steltman_watches_120x120.gif","http://www.steltman.nl","Steltman Watches"];
//	fadeimages[i+=1]=["detafelaar_120x120.gif","http://www.detafelaar.nl","De Tafelaar"];
//	fadeimages[i+=1]=["underarmour_120x120.gif","http://www.underarmour.com","Under Armour"];
//	fadeimages[i+=1]=["usgCapacity_120x120.gif","http://www.usgcapacity.nl","USG Capacity"];
//	fadeimages[i+=1]=["wittebrug_120x120.gif","http://www.wittebrug.nl","Wittebrug Autogroep"];
//	fadeimages[i+=1]=["yamyamtogo_120x120.gif","http://www.yamyamtogo.com","Yam Yam To Go"];
//	fadeimages[i+=1]=["abnamro_120x120.gif","http://www.abnamro.nl","ABN-AMRO"];
	return fadeimages.length;
// 43-1
}

function loadslides(){
i=-1;
slides[i+=1]=["slides/hgc_rotterdam"+i+".jpg","","Word ook sponsor van HGC"];
slides[i+=1]=["slides/hgc_rotterdam"+i+".jpg","","Word ook sponsor van HGC"];
slides[i+=1]=["slides/hgc_rotterdam"+i+".jpg","","Word ook sponsor van HGC"];
slides[i+=1]=["slides/hgc_rotterdam"+i+".jpg","","Word ook sponsor van HGC"];
slides[i+=1]=["slides/hgc_rotterdam"+i+".jpg","","Word ook sponsor van HGC"];
slides[i+=1]=["slides/hgc_rotterdam"+i+".jpg","","Word ook sponsor van HGC"];
}

loadimagearray()
loadslides()

var imagepath="http://www.hgc.nl/HGC30/uploads/sponsors/"
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, target){
this.pausecheck=pause
this.mouseovercheck=0
this.delay=delay
this.target=(!target||target==""||target=="new")?"_blank":target
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=imagepath+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.target+'" title="'+this.theimages[picindex][2]+'">'
slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px" alt="'+this.theimages[picindex][2]+'"/>'
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()
}