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':			608,			//	width to resize all banners to, only takes effect if above is 1
	'img_height':			205, 			// 	height to resize all banners to, only takes effect if above is 1
	
	'refresh_time':			7000,			//	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 = [
                    ///// BANNERE ARTSPORT 
	new banner('Saniuta Sno Giant',	        
					'http://www.artsport.ro/sporturi_de_iarna/sanii/saniuta_pentru_copii_din_plastic_sno_giant-p10044284', 
					'http://www.artsport.ro/upload/Image/bannere/banner600_snogiant.jpg',		
					'10/04/2019',	
					'artsport'),
	new banner('Saniuta Sno Formel',	        
					'http://www.artsport.ro/sporturi_de_iarna/sanii/saniuta_pentru_copii_cu_volan_sno_formel-p10044283', 
					'http://www.artsport.ro/upload/Image/bannere/banner600_snoformel.jpg',		
					'10/04/2019',	
					'artsport'),
	new banner('Saniuta Sno Rider',	        
					'http://www.artsport.ro/sporturi_de_iarna/sanii/sanie_pentru_copii_cu_sistem_de_franare_sno_rider-p10044294', 
					'http://www.artsport.ro/upload/Image/bannere/banner600_snorider.jpg',		
					'10/04/2019',	
					'artsport'),				
	 new banner('Saniuta Bambino',	        
					'http://www.artsport.ro/sporturi_de_iarna/sanii/saniuta_copii_1_3_ani_alpen_bambino-p10020747', 
					'http://www.artsport.ro/upload/Image/bannere/banner_saniuta1.jpg',		
					'10/04/2019',	
					'artsport'),
	 new banner('Bara usa',	            
					'http://www.artsport.ro/aparate_fitness/accesorii/bare/bara_usa_tractiuni-p10015349',  
					'http://www.librariaonline.ro/upload/Image/bannere/banner_bara.jpg',		
					'10/04/2019',	
					'artsport'),
					
					
					///// BANNERE LIBRARIAONLINE ////
	new banner('Agenda Medicala 2012',
					'http://www.librariaonline.ro/medicina/diverse/farmacologie/agenda_medicala_2012_editia_de_buzunar--p10044959', 
					'http://www.librariaonline.ro/upload/Image/bannere/agenda_medicala_2012.jpg',		
					'10/04/2019',	
					'libraria'),
	new banner('Compendiu pediatrie cadre medii',
					'http://www.librariaonline.ro/medicina/umana/pediatrie/compendiu_de_pediatrie_pentru_cadre_medii-glasper_edward_alan-p10038532', 
					'http://www.librariaonline.ro/upload/Image/bannere/compendiu_pediatrie_cadre_m.jpg',		
					'10/04/2019',	
					'libraria'),				
	new banner('Masaj - colectie',	    
					'http://www.librariaonline.ro/colectii/colectia_totul_despre_masaj-p10043378', 
					'http://www.librariaonline.ro/upload/Image/bannere/banner_masaj.gif',		
					'10/04/2019',	
					'libraria'),
	new banner('Sanatatea are gust, carte de Mihaela Bilic',	    
					'http://www.librariaonline.ro/practice/sfaturi_practice/diete_si_tratamente/sanatatea_are_gust_o_carte_de_nutritie_pentru_familie-bilic_mihaela-p10034777', 	
					'http://www.librariaonline.ro/upload/Image/bannere/banner_bilic.jpg',		
					'10/04/2019',	
					'libraria'),
    new banner('Sanctus - editura All',	    
					'http://www.librariaonline.ro/beletristica/literatura_universala/non_fiction/sanctus-toyne_simon-p10037829', 	
					'http://www.librariaonline.ro/upload/Image/bannere/banner_sanctus.jpg',		
					'10/04/2019',	
					'libraria'),
	new banner('Tu esti numarul 1',	            
					'http://www.librariaonline.ro/practice/educatie/motivational/tu_esti_numarul_1_pentru_ca_tu_esti_numarul_1-enache_iuliana-p10040748',  
					'http://www.librariaonline.ro/upload/Image/bannere/tu_esti_nr_1.jpg',		
					'10/04/2019',	
					'libraria'),
	new banner('Pachet cadou All',	            
					'http://www.librariaonline.ro/advanced_search_result.html?keywords=pachet&x=19&y=9&categories_id=1000755&inc_subcat=1&authors_id=&manufacturers_id=1000020&pfrom=&pto=',  
					'http://www.librariaonline.ro/upload/Image/bannere/banner_cadou_familie.jpg',		
					'10/04/2019',	
					'libraria'),			
					
                     ///// BANNERE PITICSHOP ////
	new banner('Saniuta Sno Formel',	        
					'http://www.artsport.ro/sporturi_de_iarna/sanii/saniuta_pentru_copii_cu_volan_sno_formel-p10044283', 
					'http://www.artsport.ro/upload/Image/bannere/banner600_snoformel.jpg',		
					'10/04/2019',	
					'piticshop'),
	new banner('Saniuta Sno Rider',	        
					'http://www.artsport.ro/sporturi_de_iarna/sanii/sanie_pentru_copii_cu_sistem_de_franare_sno_rider-p10044294', 
					'http://www.artsport.ro/upload/Image/bannere/banner600_snorider.jpg',		
					'10/04/2019',	
					'piticshop'),
	 new banner('Kart Berg Ferrari FXX Racer',	    
					'http://www.piticshop.ro/articole_sportive/masinute_cu_pedale/kart_berg_ferrari_f1-p10042149', 	
					'http://www.piticshop.ro/upload/Image/bannere/banner_cart_berg_ferrari.jpg',		
					'10/04/2019',	
					'piticshop'),	
	new banner('Sanie Baby Care',	    
					'http://www.piticshop.ro/articole_sportive/saniute_pentru_copii/saniuta_pentru_copii_intre_6_luni_si_3_ani_baby_care-p10042154', 	
					'http://www.piticshop.ro/upload/Image/bannere/banner_piticshop_saniebaby.jpg',		
					'10/04/2019',	
					'piticshop'),	
	 new banner('Lego General',	    
					'http://www.piticshop.ro/producatori/lego', 	
					'http://www.piticshop.ro/upload/Image/bannere/banner_lego.jpg',		
					'10/04/2019',	
					'piticshop'),	
	 new banner('Kart Berg Deer',	    
					'http://www.piticshop.ro/articole_sportive/masinute_cu_pedale/kart_berg_junior_john_deere-p10042153', 	
					'http://www.piticshop.ro/upload/Image/bannere/banner_cart_berg_deer.jpg',		
					'10/04/2019',	
					'piticshop'),						
                     ///// BANNERE MAMANATURA ////
	new banner('Agenda Medicala 2012',
					'http://www.librariaonline.ro/medicina/diverse/farmacologie/agenda_medicala_2012_editia_de_buzunar--p10044959', 
					'http://www.librariaonline.ro/upload/Image/bannere/agenda_medicala_2012.jpg',		
					'10/04/2019',	
					'mamanatura'),
	 new banner('Sanatatea are gust, carte de Mihaela Bilic',	    
					'http://www.librariaonline.ro/practice/sfaturi_practice/diete_si_tratamente/sanatatea_are_gust_o_carte_de_nutritie_pentru_familie-bilic_mihaela-p10034777', 	
					'http://www.mamanatura.ro/upload/Image/bannere/banner_bilic.jpg',		
					'10/04/2019',	
					'mamanatura'),					
    new banner('Cereale de la SanoVita',	    
					'http://www.mamanatura.ro/producatori/sano_vita', 	
					'http://www.mamanatura.ro/upload/Image/bannere/banner_cereale_sanovita.jpg',		
					'10/04/2019',	
					'mamanatura')
]

//         				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);
