/**
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

	--------------------------------------------------------------------
	
	Simple banner rotator. Version: 1.4.0
	Download and support: http://www.spyka.net 
	(c) Copyright 2008, 2009 spyka Web Group
	

	For full documentation:  http://www.spyka.net/docs/simple-banner-rotator
	For support:			 http://www.spyka.net/forums


**/

//								EDIT FROM HERE
///////////////////////////////////////////////////////////////////////////////////

/**
		Script settings
**/

var settings = {
	
	'force_size':			0,         		// 	if set to 1 all banners will be resized to the width and height in the next to settings
	'img_width':			275,			//	width to resize all banners to, only takes effect if above is 1
	'img_height':			75, 			// 	height to resize all banners to, only takes effect if above is 1
	
	'refresh_time':			2000,			//	the seconds between refreshs of the banners - use 0 to disable
	'refresh_max':			100,				//	maximum number of refreshs on each page load
	
	'duplicate_banners':	0,				//	keep as 0 to make sure the same banner won't show on the same page. will only take effect
											//  if show_banners(); is used more than once. You must make sure you have enough banners to fill
											//  all the slots else the browser may freeze or give a stack overflow error
	
	'location_prefix': 		'adLocation-',	//	The prefix of the IDs of the <div> which wraps the banners - this div is generated dynamically.
											//  a number will be added on the end of this string. adLocation- was used by default before version 1.4.x
											
	'location_class':		'swb',			//  A class to add to all of the <div>s which wrap the banners, ideal to use for styling banners - use .swb img in your CSS	
	
	'window': 				'_self',		//	Window to open links in, _self = current, _blank = new. Use _top if in a frame!		
	
	'default_ad_loc':		'default'		//	The default adLocation. This is assigned to any banners not given an adLocation in the below banner list
											//  There is no real reason to need to change this
}


/**
		Banners
**/
// banner list syntax: new banner(website_name, website_url, banner_url, show_until_date, adlocation),  DATE FORMAT: dd/mm/yyyy
// if you're not using adlocations just leave it empty like '' as in the last example here
// to make sure a banner is always rotating, just set the date far into the future, i.e. year 3000

var banners = [

	new banner('CAS Exhibition Partners', 'http://www.cas.nl', '/logos/logo_cas.jpg' ,'30/04/2019','logoopindex'),
	new banner(' Dim Vormgeving en Communicatie ', 'http://www.dim.nl', '/logos/logo_dim.jpg', 	'30/04/2019', 'logoopindex'),
	new banner('HENK Grafimedia Center',	'http://www.henkgrafimedia.nl', '/logos/logo_henk.jpg', '10/04/2019','logoopindex'),
	new banner('Familie A.J. Schelbergen Venlo', '','/logos/logo_schelbergen.jpg', '30/04/2019',	'logoopindex'),
	new banner('Verhoex Logistics & Douane Agenturen','http://www.verhoex.nl', '/logos/logo_verhoex.jpg', '30/04/2019', 'logoopindex'),
	new banner('Slagerij Paul Dings', 'http://www.slagerijpauldings.nl', '/logos/logo_pauldings.jpg', '30/04/2019', 'logoopindex'),
	new banner('Administratiekantoor Huub Jessen BV', 'http://www.huubjessen.nl', '/logos/logo_jessen.jpg', '30/04/2019', 'logoopindex'),
	new banner('SGT', 'http://www.haandert.nl', '/logos/logo_sgt.jpg', '30/04/2019', 'logoopindex'),	
	new banner('Golf-Album', 'http://www.golf-album.com', '/logos/logo_golfalbum.jpg', 	'30/04/2019', 'logoopindex'),	
	new banner('VAN BOVEN & VAN DER BRUGGEN ADVOCATEN',	'http://www.vbvdb-advocaten.nl ', '/logos/logo_vdbruggen.jpg', 	'30/04/2019',	'logoopindex'),	
	new banner(' Bavaria ','http://www.bavaria.nl ', '/logos/logo_bavaria.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' Administratiekantoor Huub Jessen BV ', 'http://www.huubjessen.nl ', '/logos/logo_jessen.jpg', 	'30/04/2019',	'logoopindex'),	
	new banner(' Autobedrijf Leo Martens ', 'http://www.alfaleo.nl ', '/logos/logo_martens.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' theaterzakenadvies ', 'http://www.theaterzakenadvies.nl ', '/logos/logo_schmeitz.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' Control Consultants ', 'http://www.controlconsultants.nl ', '/logos/logo_controlconsultants.jpg', '30/04/2019', 'logoopindex'),	
	new banner('Devak', 'http://www. www.devak.nl ', '/logos/logo_devak.jpg', '30/04/2019', 'logoopindex'),	
	new banner('Heuts Automaterialen', 'http://www.heuts.nl ', '/logos/logo_heuts.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' Bart Faassen ', 'http://www.faassen.nl ', '/logos/logo_faassen.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' Drankenhandel Teeuwen ', 'http://www.drankenhandelteeuwen.nl ', '/logos/logo_teeuwen.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' Lucker Wijn en Spijs ', 'http://www.luckerwijnenspijs.nl ', '/logos/logo_lucker.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' Kookstudio Herman Maessen ', 'http://www.hermanmaessen.nl ', '/logos/logo_hermanmaessen.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' Litax Reizen ', 'http://www.litax-reizen.nl ', '/logos/logo_litax.jpg', '30/04/2019', 'logoopindex'),	
	new banner('Distri Vlees', 'http://www.distrivlees.nl', '/logos/logo_distrivlees.jpg', '30/04/2019', 'logoopindex'),	
	new banner('Lamers Tooling', 'http://www.lamers.nl', '/logos/logo_lamers.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' PB Music ', 'http://www.pbmusic.nl ', '/logos/logo_pbmusic.jpg', '30/04/2019', 'logoopindex'),	
	new banner('Rabobank', 'http://www.rabobank.nl/particulieren/lokalebanken/venlo/', '/logos/logo_rabobank.jpg', 	'30/04/2019',	'logoopindex'),	
	new banner('Aannemingsbedrijf PH vd Velden',	'http://www.phvandervelden.nl/', '/logos/logo_aannemervdvelden.jpg', '30/04/2019',	'logoopindex'),	
	new banner(' Beurskens Badkamers ', 'http://www.beurskensbadkamers.nl ', '/logos/logo_beurskens.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' CMS Energiesystemen ', 'http://www.cms-energiesystemen.nl ', '/logos/logo_cms.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' Op het Veld Kantoorartikelen ', 'http://www.kantoorartikelen.nl ', '/logos/logo_ophetveld.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' Admicon Tegelen ', '', '/logos/logo_admicon.jpg', '30/04/2019', 'logoopindex'),
	new banner(' Steenplaza ', 'http://www.steenplaza-venlo.nl/html ', '/logos/logo_steenplaza.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' Tandarts Martens Tegelen ', 'http://www.tandartsenvenlo.nl/martens.htm ', '/logos/logo_martenshendriks.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' t Postzegelhoes ', 'http://www.postzegelhoes.nl ', '/logos/logo_postzegelhoes.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' Top Coat ', 'http://www.top-coat.nl ', '/logos/logo_topcoat.jpg', '30/04/2019', 'logoopindex'),	
	new banner('Ambaum', 'http://www.ambaum.nl ', '/logos/logo_ambaum.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' Kok Advocaten ', 'http://www.kokadvocaten.nl ', '/logos/logo_kok.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' Scope ', 'http://www.scope-blerick.nl ', '/logos/logo_scope.jpg', '30/04/2019', 'logoopindex'),	
	new banner('Berden', 'http://www.berden.nl ', '/logos/logo_berden.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' Janneke Schmeitz CultureleMarketingProjecten ', 'http://www.jannekeschmeitz.nl ', '/logos/logo_jannekeschmeitz.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' Super Clean Schoonmaak ', 'http://www.supercleanschoonmaak.nl ', '/logos/logo_superclean.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' Fysio Gelreplein ', 'http://www.fysiogelreplein.nl ', '/logos/logo_fysiogelreplein.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' Thuis bij Antares ', 'http://www.thuisbijantares.nl ', '/logos/logo_antares.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' Sjaak Smetsers Beeldend Kunstenaar ', 'http://www.sjaaksmetsers.nl ', '/logos/logo_sjaaksmetsers.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' VieCuri Vitaal ', 'http://www.viecurivitaal.nl ', '/logos/logo_viecurivitaal.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' AST Astafbouwsystemen ', 'http://www.astafbouwsystemen.com ', '/logos/logo_ast.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' Helichem ', 'http://www.helichem.nl ', '/logos/logo_helichem.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' Nic Pas ', 'http://www.nicpas.nl ', '/logos/logo_nicpas.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' Poelier Schatorje ', 'http://www.poelierschatorje.nl ', '/logos/logo_schatorje.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' Schreurs Accountants ', 'http://www.schreurs-accountants.nl ', '/logos/logo_schreurs.jpg', '30/04/2019', 'logoopindex'),	
	new banner(' VeTeBe ', 'http://www.vetebe.nl ', '/logos/logo_vetebe.jpg', '30/04/2019', 'logoopindex'),

	new banner('Sponsoring Tegelse Hofzangers',			'http://www.tegelsehofzangers.nl/sponsors.html', 			'/logos/logo_vraag2.jpg', 	'30/04/2019',	'logoopindex')


]

//         				There is no need to edit below here
///////////////////////////////////////////////////////////////////////////////////
var used=0;var location_counter=0;var refresh_counter=1;var map=new Array();function banner(a,b,c,d,e){this.name=a;this.url=b;this.image=c;this.date=d;this.active=1;this.oid=0;if(e!=''){this.loc=e}else{this.loc=settings.default_ad_loc}}function show_banners(a){location_counter=location_counter+1;if(a!=''&&a!=undefined){map[location_counter]=a}else{map[location_counter]=settings.default_ad_loc}var b='<div id="'+settings.location_prefix+location_counter+'" class="'+settings.location_class+'"></div>';document.write(b);display_banners(location_counter)}function display_banners(a){var b=new Array();if(a==''||!a||a<0){return}var c=banners.length;if((c==used)&&settings.duplicate_banners==0){return}for(i=0;i<(banners.length);i++){banners[i].oid=i;if((banners[i].loc==map[a])&&(banners[i].active==1)){b.push(banners[i])}}var d=Math.floor(Math.random()*b.length);var e=b[d];var f=(settings.force_size==1)?' width="'+settings.img_width+'" height="'+settings.img_height+'"':'';var g='<a href="'+e.url+'" title="'+e.name+'" target="'+settings.window+'"><img border="0" src="'+e.image+'"'+f+' alt="'+e.name+'" /></a>';var h=new Date();var j=e.date;j=j.split('/',3);var k=new Date();k.setFullYear(parseInt(j[2]),parseInt(j[1])-1,parseInt(j[0]));if((h<k)&&e.active==1){var l=document.getElementById(settings.location_prefix+a);if(l==null){alert('spyka Webmaster banner rotator\nError: adLocation doesn\'t exist!')}else{l.innerHTML=g;if(settings.duplicate_banners==0){banners[e.oid].active=0;used++}return}}else{display_banners(a)}return}function refresh_banners(){if((refresh_counter==settings.refresh_max)||settings.refresh_time<1){clearInterval(banner_refresh)}used=0;for(j=0;j<(banners.length);j++){banners[j].active=1}for(j=1;j<(location_counter+1);j++){display_banners(j)}refresh_counter++}var banner_refresh=window.setInterval(refresh_banners,settings.refresh_time);
