/*

*/

//								
///////////////////////////////////////////////////////////////////////////////////
//         						Program options


// if 1 (one), all images will be resized to img_width and img_height, else images will display their correct size
var force_size	= 0;
// desired height and width of images, only takes affect if above is one
var img_width	= 140;
var img_height	= 40;

// time between refreshs of ad locations, to disable refreshs set to 0. In milliseconds, 1000 = 1 second
var refresh_time = 0;
// maximum amount of refreshs, good to set if a user may be on a page for a long period of time.
var refresh_max = 10;

// if you do not want the same banners to display on the same page then set this to 0, else set it to 1.
// this option is only used if you have put the show_banners() javascript code more than once into a page
var duplicate_banners = 0;


// ignore/skip this line 
var banners = new Array();

// banner list syntax: banners[x] = new banner(website_name, website_url, banner_url, show_until_date);  DATE FORMAT: dd/mm/yyyy
// be sure to increase x by 1 for each banner added!
// to make sure a banner is always rotating, just set the date far into the future, i.e. year 3000
banners[0] = new banner('The Preferred Image', 'http://www.366tint.com', 'http://www.tintdude.com/shop/366tint.gif', '30/04/2019');
banners[1] = new banner('Eclipse Window Tinting', 'http://www.eclipse-window-tinting-inc.com', 'http://www.tintdude.com/shop/eclipse-tinting-florida.jpg', '10/04/2019');
banners[2] = new banner('Mitfolie.de', 'http://www.e1limo.de/mitfolie/index2.html', 'http://www.tintdude.com/shop/mitfolie.gif', '10/04/2019');
banners[3] = new banner('Auto Trim Hawaii', 'http://www.autotrimhawaii.com', 'http://www.tintdude.com/shop/autotrimhawaii.gif', '10/04/2019');
banners[4] = new banner('Auto Mall Tint Specialist', 'http://www.automalltintspecialist.com', 'http://www.tintdude.com/shop/automalltintspecialist.gif', '10/04/2019');
banners[5] = new banner('Rocky Mountain Windowtint', 'http://rockymtnwindowtint.com', 'http://www.tintdude.com/shop/rockymtnwindowtint.gif', '10/04/2019');
banners[6] = new banner('Lomas Glass and Tint', 'http://www.lomasglass.com', 'http://www.tintdude.com/shop/lomasglass.gif', '10/04/2019');
banners[7] = new banner('We Tint Cars', 'http://www.wetintcars.com', 'http://www.tintdude.com/shop/wetintcars.gif', '10/04/2019');
banners[8] = new banner('Oasis Glass Tinting', 'http://www.oasisglasstinting.com', 'http://www.tintdude.com/shop/oasisglasstinting.gif', '10/04/2019');
banners[9] = new banner('Shades Window Tinting', 'http://www.shadestint.com', 'http://www.tintdude.com/shop/shadestint.gif', '10/04/2019');
banners[10] = new banner('Towns Window Tinting', 'http://www.townswindowtinting.com', 'http://www.tintdude.com/shop/townswindowtinting.gif', '10/04/2019');
banners[11] = new banner('Reflecta Window Film and Tinting', 'http://www.reflecta.co.uk/Home.aspx', 'http://www.tintdude.com/shop/reflecta.gif', '10/04/2019');
banners[12] = new banner('Moniques Custom Auto Glass Tinting', 'http://www.moniquescustomautoglasstinting.com', 'http://www.tintdude.com/shop/moniquescustomautoglasstinting.gif', '10/04/2019');
banners[13] = new banner('Dartz Filmz', 'http://dartsfilmz.eu', 'http://www.tintdude.com/shop/dartsfilmz.gif', '10/04/2019');
banners[14] = new banner('Auto Window Tinting', 'http://www.autowindowtinting.com', 'http://www.tintdude.com/shop/autowindowtinting.gif', '10/04/2019');
banners[15] = new banner('Spokane Sunscreen', 'http://www.spokanesunscreen.com', 'http://www.tintdude.com/shop/spokanesunscreen.gif', '10/04/2019');
banners[16] = new banner('Hoosier Window Technologies', 'http://www.333-tint.com', 'http://www.tintdude.com/shop/333-tint.gif', '10/04/2019');
banners[17] = new banner('The Tint Shop', 'http://tintpdx.com/default.aspx', 'http://www.tintdude.com/shop/tintpdx.gif', '10/04/2019');
banners[18] = new banner('Lindsay Tint', 'http://www.lindsaytint.com', 'http://www.tintdude.com/shop/lindsaytint.gif', '10/04/2019');
banners[19] = new banner('XTREME GLASS TINTING', 'http://www.xtremeglasstinting.com', 'http://www.tintdude.com/shop/xtremeglasstinting.gif', '10/04/2019');
banners[20] = new banner('GDK Electronics', 'http://www.gdkelectronics.com', 'http://www.tintdude.com/shop/gdkelectronics.gif', '10/04/2019');
banners[21] = new banner('Guardian Graphics', 'http://www.guardiangraphics.net', 'http://www.tintdude.com/shop/guardiangraphics2.gif', '10/04/2019');
banners[22] = new banner('Cool Tint', 'http://www.cooltint.com', 'http://www.tintdude.com/shop/cooltint.gif', '10/04/2019');
banners[23] = new banner('Arizona Clear Bra', 'http://azclearbra.com', 'http://www.tintdude.com/shop/azclearbra.gif', '10/04/2019');
banners[24] = new banner('Paladin Tint', 'http://www.humbletint.com ', 'http://www.tintdude.com/shop/humbletint.gif', '10/04/2019');
banners[25] = new banner('The Art of Tint', 'http://www.theartoftint.com', 'http://www.tintdude.com/shop/theartoftint.gif', '10/04/2019');
banners[26] = new banner('Window Film Specialists', 'http://www.windowfilmspecialists.com', 'http://www.tintdude.com/shop/windowfilmspecialists.gif', '10/04/2019');
banners[27] = new banner('Cypress Window Tinting', 'http://www.cypresswindowtinting.com', 'http://www.tintdude.com/shop/cypresswindowtinting.gif', '10/04/2019');
banners[28] = new banner('Audio Illusions Inc.', 'http://audioillusionsinc.com', 'http://www.tintdude.com/shop/audioillusionsinc.gif', '10/04/2019');
banners[29] = new banner('Advanced Tinting Solutions', 'http://www.advancedtintingia.com', 'http://www.tintdude.com/shop/advancedtintingia.gif', '10/04/2019');
banners[30] = new banner('Radical Ray Rejection', 'http://www.radicalray.com', 'http://www.tintdude.com/shop/radicalray.gif', '10/04/2019');
banners[31] = new banner('Streets Ahead Windo Tinting', 'http://www.streetsaheadwindowtinting.co.nz/html/home.html', 'http://www.tintdude.com/shop/streetsaheadwindowtinting.gif', '10/04/2019');
banners[32] = new banner('Class On Glass Window Tinting', 'http://tint01.com', 'http://www.tintdude.com/shop/tint01.gif', '10/04/2019');
banners[33] = new banner('Lorenzo Tint NY', 'http://www.lorenzotint.com', 'http://www.tintdude.com/shop/lorenzotint.gif', '10/04/2019');
banners[34] = new banner('Custom Tints', 'http://www.CustomTintsInc.com', 'http://www.tintdude.com/shop/CustomTintsInc.gif', '10/04/2019');
banners[35] = new banner('GET IT DARKER', 'http://www.getitdarker.com', 'http://www.tintdude.com/shop/getitdarker.gif', '10/04/2019');
banners[35] = new banner('Shatter Safe', 'http://www.shattersafe.com', 'http://www.tintdude.com/shop/shattersafe.gif', '10/04/2019');

//         				
///////////////////////////////////////////////////////////////////////////////////

var used=0;var first_pass=0;var location_counter=1;var refresh_counter=1;function banner(name,url,image,date){this.name=name;this.url=url;this.image=image;this.date=date;this.active=1;}function show_banners(){var html='<div id="adLocation-'+location_counter+'"></div>';document.write(html);display_banners(location_counter);location_counter++;}function display_banners(location){if(location==''||!location||location<0){return;}var am=banners.length;if((am==used)&&duplicate_banners==0){return;}var rand=Math.floor(Math.random()*am);var bn=banners[rand];var image_size=(force_size==1)?' width="'+img_width+'" height="'+img_height+'"':'';var html='<a href="'+bn.url+'" rel="nofollow" title="'+bn.name+'" target="tint shop"><img class="borderwrap" border="0" src="'+bn.image+'"'+image_size+' alt="'+bn.name+'" /></a>';var now=new Date();var input=bn.date;input=input.split('/',3);var end_date=new Date();end_date=end_date.setFullYear(parseFloat(input[2]),parseFloat(input[1]),parseFloat(input[0]));if((now<end_date)&&bn.active==1){var location_element=document.getElementById('adLocation-'+location);if(location_element==null){alert('spyka Webmaster banner rotator\nError: adLocation doesn\'t exist!');}else
{location_element.innerHTML=html;if(duplicate_banners==0){bn.active=0;used++;}}}else
{display_banners(location);}}function refresh_banners(){if((refresh_counter==refresh_max)||refresh_time<1){clearInterval(banner_refresh);}used=0;for(i=0;i<banners.length;i++){banners[i].active=1;}for(i=1;i<location_counter;i++){display_banners(i);}refresh_counter++;}var banner_refresh=window.setInterval(refresh_banners,refresh_time);