// rotating weekly sponsor of the week

var myArray = new Array (
	['/images/logos/rectangle/pirelli.jpg',			'Pirelli',		 			'World competition-level tires.',					'http://us.pirelli.com'						],
	['/images/logos/rectangle/dynojet.jpg',			'Dynojet Research',			'Power Commanders, Quickshifters.',					'http://www.dynojet.com' 					],
	['/images/logos/rectangle/sharkskinz.jpg',		'Sharkskinz Bodywork',		'The best out there.',								'http://www.sharkskinz.com' 				],
	['/images/logos/rectangle/pitbull.jpg',			'Pit Bull',					'Motorcycle stands, dampers, sprockets',			'http://www.pit-bull.com' 					],
	['/images/logos/rectangle/ngk.jpg',				'NGK Spark Plugs',			'High quality spark plugs.',						'http://www.ngksparkplugs.com'				],
	['/images/logos/rectangle/motionpro.jpg',		'Motion Pro',				'Motorcycle cables and tools.',						'http://www.motionpro.com' 					],
	['/images/logos/rectangle/gptech.jpg',			'GP Tech',		 			'Factory-level parts and accessories.',				'http://www.gptechllc.com'					],
	['/images/logos/rectangle/oakley.jpg',			'Oakley',		 			'Sunglasses, goggles, apparel and more.',			'http://www.oakley.com'						],
	['/images/logos/rectangle/zipfizz.jpg',			'Zipfizz Energy', 			'Healthy energy at zero calories',					'http://www.zipfizz.com'					],
	['/images/logos/rectangle/graves.jpg',			'Graves Motorsports',		'Factory-quality race parts.',						'http://www.gravesport.com'					],
	['/images/logos/rectangle/taichi.jpg',			'RS Taichi',				'High-end leather suits and gloves.',				'http://stores.sportbiketrackgear.com/Categories.bok?category=RS+Taichi+%7C+RS+Taichi+Suits+%7C+Gloves+%7C+Jackets' ],
	//['/images/logos/rectangle/spiegler.jpg',		'Spiegler',					'Custom-made steel braided brake lines.',			'http://www.spieglerusa.com'				],
	//['/images/logos/rectangle/dupont.jpg',		'DuPont',					'High quality paints.',								'http://www.dupont.com' 					],
	//['/images/logos/rectangle/barnett.jpg',		'Barnett Clutches',			'Clutch components.',								'http://www.barnettclutches.com' 			],
	['/images/logos/rectangle/knox.jpg',			'Knox Armour',				'Impact protection.',								'http://stores.knoxarmorusa.com' 			],
	['/images/logos/rectangle/motul.jpg',			'Motul Lubricants',			'High quality motor oil and fluids.',				'http://www.motul.com' 						],
	['/images/logos/rectangle/chickenhawk.jpg',		'Chicken Hawk', 			'The best tire warmers available.',					'http://www.chickenhawkracing.com'			],
	['/images/logos/rectangle/samco.jpg',			'Samco Sport',				'Aftermarket silicone hose kits.',				 	'http://www.samcosport.com/usa/index.asp' 	],
	['/images/logos/rectangle/hanshaw.jpg',			'Hanshaw Engines',			'Incredibly fast and reliable motors.',				'http://www.hanshawengines.com'				],
	['/images/logos/rectangle/wwb.jpg',				'World Wide Bearings',		'Any and all bearings.',							'http://www.worldwidebearings.com'			]
); 

var arrLen = myArray.length; 
var index = 0; 
var rotatingSponsorImg = "";
var rotatingSponsorName = "";
var rotatingSponsorText = "";
var rotatingSponsorURL = "";
var rotatingSponsorDisplayURL = "";

  var myDateToday = new Date(); 
  //var myBaseDate = new Date('March 7, 2007 00:00:01');  // starting date for banner cycle - was originally april 10, 2006
  var myBaseDate = new Date('February 19, 2007 00:00:01');  // starting date for banner cycle - was originally april 10, 2006
  var howLong = myDateToday-myBaseDate; 
  howLong = howLong / 86400000; // 7 days worth of milliseconds 
	
  while(howLong > 7) { 
    howLong -= 7; 
    index++; 
    index = (index == arrLen) ? 0:index; 
  } 
	rotatingSponsorImg += myArray[index][0];
	rotatingSponsorName += myArray[index][1];
	rotatingSponsorText += myArray[index][2];
	rotatingSponsorURL += myArray[index][3];
