var stopShow = 0;
var SlideShowSpeed = 3000;
var SlideShowSpeed2 = 2000;
var CrossFadeDuration = 20;
var CrossFadeDuration2 = 20;

var Picture = new Array(); 
var Caption = new Array();
var SpecialLink = new Array(); 
var SpecialTarget = new Array();
// hoofdsponsor

Picture[1]  = 'http://www.stececilia-zele.be/images/Sponsors2010/Bontinck.jpg';
Caption[1]  = "";
SpecialLink[1] = 'http://www.bontinck.be'; 
SpecialTarget[1] = "_blank";

Picture[2]  = 'http://www.stececilia-zele.be/images/Sponsors2010/BrunoDeDonder.jpg';
Caption[2]  = "";
SpecialLink[2] = 'http://www.google.be/search?hl=nl&q=De+Donder+Bruno+Advocaat&btnG=Zoeken&meta=&aq=f&oq=';
SpecialTarget[2] = "_blank";

Picture[3]  = 'http://www.stececilia-zele.be/images/Sponsors2010/CleanItUp.png';
Caption[3]  = "";
SpecialLink[3] = 'http://www.google.be/search?hl=nl&source=hp&q=a+%26+f+services+bvba&meta=&rlz=1R2GGLL_en&aq=0&oq=a+%26+f+serv'; 
SpecialTarget[3] = "_blank";

Picture[4]  = 'http://www.stececilia-zele.be/images/Sponsors2010/DeRaedt.jpg';
Caption[4]  = "";
SpecialLink[4] = 'http://www.trendstop.be/NL/detail/474288230/de-raedt-ivan-bouwwerken.aspx'; 
SpecialTarget[4] = "_blank";

Picture[5]  = 'http://www.stececilia-zele.be/images/Sponsors2010/Dexia.png';
Caption[5]  = "";
SpecialLink[5] = 'http://www.dexia.be'; 
SpecialTarget[5] = "_blank";

Picture[6]  = 'http://www.stececilia-zele.be/images/Sponsors2010/PolySeal.jpg';
Caption[6]  = "";
SpecialLink[6] = 'http://www.poly-seal.be/'; 
SpecialTarget[6] = "_blank";

Picture[7]  = 'http://www.stececilia-zele.be/images/Sponsors2010/Fintro.png';
Caption[7]  = "";
SpecialLink[7] = 'https://www.fintro.be/portal/start.asp'; 
SpecialTarget[7] = "_blank";

Picture[8]  = 'http://www.stececilia-zele.be/images/Sponsors2010/Thienpondt.png';
Caption[8]  = "";
SpecialLink[8] = 'http://www.google.be/search?hl=nl&source=hp&q=Thienpondt+Zele&btnG=Google+zoeken&meta=&aq=f&oq='; 
SpecialTarget[8] = "_blank";

Picture[9]  = 'http://www.stececilia-zele.be/images/Sponsors2010/VanDerBiest.jpg';
Caption[9]  = "";
SpecialLink[9] = 'http://www.google.be/search?hl=nl&q=Notaris+Heiremans+Zele&btnG=Zoeken&meta=&aq=f&oq='; 
SpecialTarget[9] = "_blank";

Picture[10]  = 'http://www.stececilia-zele.be/images/Sponsors2010/Vadribo.jpg';
Caption[10]  = "";
SpecialLink[10] = 'http://www.ikzoekeenvakman.be/ondernemer/metselwerk-baksteen/vadribo-b-v-b-a/29942/0455144685/index.html'; 
SpecialTarget[10] = "_blank";

Picture[11]  = 'http://www.stececilia-zele.be/images/Sponsors2010/Heirwegh.jpg';
Caption[11]  = "";
SpecialLink[11] = 'http://www.transportheirwegh.be'; 
SpecialTarget[11] = "_blank";

Picture[12]  = 'http://www.stececilia-zele.be/images/Sponsors2010/SmartLiving.jpg';
Caption[12]  = "";
SpecialLink[12] = 'http://www.smartliving.be/'; 
SpecialTarget[12] = "_blank";

Picture[13]  = 'http://www.stececilia-zele.be/images/Sponsors2010/Logitop.jpg';
Caption[13]  = "";
SpecialLink[13] = 'http://www.gwservices.eu/'; 
SpecialTarget[13] = "_blank";

Picture[14]  = 'http://www.stececilia-zele.be/images/Sponsors2010/Dombregt.jpg';
Caption[14]  = "";
SpecialLink[14] = 'http://www.dombrecht.com'; 
SpecialTarget[14] = "_blank";

Picture[15]  = 'http://www.stececilia-zele.be/images/Sponsors2010/Mira.jpg';
Caption[15]  = "";
SpecialLink[15] = 'http://www.mira-zele.be/'; 
SpecialTarget[15] = "_blank";

Picture[16]  = 'http://www.stececilia-zele.be/images/Sponsors2010/Hubris.jpg';
Caption[16]  = "";
SpecialLink[16] = 'http://www.trendstop.be/NL/detail/463368307/hubris.aspx'; 
SpecialTarget[16] = "_blank";

Picture[17]  = 'http://www.stececilia-zele.be/images/Sponsors2010/Izit.jpg';
Caption[17]  = "";
SpecialLink[17] = 'http://www.izit.be'; 
SpecialTarget[17] = "_blank";

Picture[18]  = 'http://www.stececilia-zele.be/images/Sponsors2010/Krone.jpg';
Caption[18]  = "";
SpecialLink[18] = 'http://nutzfahrzeuge.krone.de/en/index/index.php'; 
SpecialTarget[18] = "_blank";

Picture[19]  = 'http://www.stececilia-zele.be/images/Sponsors2010/Merckx.png';
Caption[19]  = "";
SpecialLink[19] = 'http://www.eddymerckx.be'; 
SpecialTarget[19] = "_blank";

Picture[20]  = 'http://www.stececilia-zele.be/images/Sponsors2010/HVAC.jpg';
Caption[20]  = "";
SpecialLink[20] = ''; 
SpecialTarget[20] = "_blank";

Picture[21]  = 'http://www.stececilia-zele.be/images/Sponsors2010/Verhofste.jpg';
Caption[21]  = "";
SpecialLink[21] = 'http://www.verhofste.com'; 
SpecialTarget[21] = "_blank";

Picture[22]  = 'http://www.stececilia-zele.be/images/Sponsors2010/AFServices.jpg';
Caption[22]  = "";
SpecialLink[22] = 'http://www.afservices.be';
SpecialTarget[22] = "_blank";

var PictureMinor = new Array(); 
var CaptionMinor = new Array();
var SpecialLinkMinor = new Array(); 
var SpecialTargetMinor = new Array();

// nevensponsors

PictureMinor[1]  = 'http://www.stececilia-zele.be/images/Sponsors2010/ArgentaZele.jpg';
CaptionMinor[1]  = "";
SpecialLinkMinor[1] = 'http://www.argenta.be/nl/kantoren/default.aspx'; 
SpecialTargetMinor[1] = "_blank";

PictureMinor[2]  = 'http://www.stececilia-zele.be/images/Sponsors2010/AssurFinance.jpg';
CaptionMinor[2]  = "";
SpecialLinkMinor[2] = 'http://goudengids.truvo.be/Verzekeringsmakelaars/Assurfinance_Van_Kerckhove_BVBA/Zele/nl_BE_YP_FREE_8129215_0000_1063353_6095_00000'; 
SpecialTargetMinor[2] = "_blank";


PictureMinor[3]  = 'http://www.stececilia-zele.be/images/Sponsors2010/Beyers.jpg';
CaptionMinor[3]  = "";
SpecialLinkMinor[3] = 'http://www.beyersvanheule.be';
SpecialTargetMinor[3] = "_blank";

PictureMinor[4]  = 'http://www.stececilia-zele.be/images/Sponsors2010/DeBeleyr.jpg';
CaptionMinor[4]  = "";
SpecialLinkMinor[4] = 'http://www.aiweb.be/debeleyr/NL/main.html';
SpecialTargetMinor[4] = "_blank";

PictureMinor[5]  = 'http://www.stececilia-zele.be/images/Sponsors2010/DeGelder.jpg';
CaptionMinor[5]  = "";
SpecialLinkMinor[5] = 'http://www.dtbdegelder.be';
SpecialTargetMinor[5] = "_blank";

PictureMinor[6]  = 'http://www.stececilia-zele.be/images/Sponsors2010/DePikke.jpg';
CaptionMinor[6]  = "";
SpecialLinkMinor[6] = 'http://www.depikke.be/';
SpecialTargetMinor[6] = "_blank";

PictureMinor[7]  = 'http://www.stececilia-zele.be/images/Sponsors2010/DeVlieger.jpg';
CaptionMinor[7]  = "";
SpecialLinkMinor[7] = 'http://www.de-vlieger.be/';
SpecialTargetMinor[7] = "_blank";

PictureMinor[8]  = 'http://www.stececilia-zele.be/images/Sponsors2010/VanDoorsselaere.jpg';
CaptionMinor[8]  = "";
SpecialLinkMinor[8] = 'http://www.bmwpiet.be/Info.html';
SpecialTargetMinor[8] = "_blank";

PictureMinor[9]  = 'http://www.stececilia-zele.be/images/Sponsors2010/VanLokeren.jpg';
CaptionMinor[9]  = "";
SpecialLinkMinor[9] = 'http://www.vanlokeren.be';
SpecialTargetMinor[9] = "_blank";

PictureMinor[10]  = 'http://www.stececilia-zele.be/images/Sponsors2010/VanAkelyen.jpg';
CaptionMinor[10]  = "";
SpecialLinkMinor[10] = 'http://www.vanakelyen.be/'; 
SpecialTargetMinor[10] = "_blank";

PictureMinor[11]  = 'http://www.stececilia-zele.be/images/Sponsors2010/topaz.jpg';
CaptionMinor[11]  = "";
SpecialLinkMinor[11] = 'http://www.zele.bizweb.be/index.php?page=id&key=512&wie=New Topaz&waar=Zele&wat=Tavernes/'; 
SpecialTargetMinor[11] = "_blank";

PictureMinor[12]  = 'http://www.stececilia-zele.be/images/Sponsors2010/Keppens.jpg';
CaptionMinor[12]  = "";
SpecialLinkMinor[12] = 'http://goudengids.truvo.be/Dakwerken/Keppens_%26_Zn_BVBA/Sint-Niklaas/nl_BE_YP_FREE_701750_0000_184293_8005_00000'; 
SpecialTargetMinor[12] = "_blank";



var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}

var tssMinor;
var issMinor;
var jssMinor = 1;
var pssMinor = PictureMinor.length-1;

var preLoadMinor = new Array();
for (issMinor = 1; issMinor < pssMinor+1; issMinor++){
preLoadMinor[issMinor] = new Image();
preLoadMinor[issMinor].src = PictureMinor[issMinor];}

function runSlideShow() {
  //alert(stopShow);
  try {
    if (stopShow==0) {
      if (document.all) {
        //document.images.PictureBox.style.filter="blendTrans(duration=20)";
        document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
        document.images.PictureBox.filters.blendTrans.Apply();
      }
      document.images.PictureBox.src = preLoad[jss].src;
      //if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
      if (document.all) document.images.PictureBox.filters.blendTrans.Play();
      jss = jss + 1;
      if (jss > (pss)) jss=1;
      //window.setTimeout('runSlideShow()', SlideShowSpeed);
    }
  }
  catch (e) {
    ;
  }
  finally {
    ;
  }
}

function runSlideShow2() {
  //alert(stopShow);
  try {
    if (stopShow==0) {
      if (document.all) {
        //document.images.PictureBox2.style.filter="blendTrans(duration=20)";
        document.images.PictureBox2.style.filter="blendTrans(duration=CrossFadeDuration2)";
        document.images.PictureBox2.filters.blendTrans.Apply();
      }
      document.images.PictureBox2.src = preLoadMinor[jssMinor].src;
      //if (document.getElementById) document.getElementById("CaptionBox2").innerHTML= CaptionMinor[jssMinor];
      if (document.all) document.images.PictureBox2.filters.blendTrans.Play();
      jssMinor = jssMinor + 1;
      if (jssMinor > (pssMinor)) jssMinor=1;
      //window.setTimeout('runSlideShow()', SlideShowSpeed);
    }
  }
  catch (e) {
    ;
  }
  finally {
    ;
  }
}

function fnPictureBox() 
{ 
	for (var iCntr = 1; iCntr < Picture.length; iCntr++) { 
		if (this.event.srcElement.src.indexOf(Picture[iCntr]) != -1) { 
			switch (SpecialTarget[iCntr]) { 

				case "_frame": 
					eval(SpecialLink[iCntr]+";");
					break; 
				default: 
					window.open(SpecialLink[iCntr], SpecialTarget[iCntr]);
					break; 
			} 
			break; 
		} 
	} 
} 

function fnPictureBox2() 
{ 
	for (var iCntr = 1; iCntr < PictureMinor.length; iCntr++) { 
		if (this.event.srcElement.src.indexOf(PictureMinor[iCntr]) != -1) { 
			switch (SpecialTargetMinor[iCntr]) { 

				case "_frame": 
					eval(SpecialLinkMinor[iCntr]+";");
					break; 
				default: 
					window.open(SpecialLinkMinor[iCntr], SpecialTargetMinor[iCntr]);
					break; 
			} 
			break; 
		} 
	} 
} 

