// nav bar roll and cache

function cache_img (img_URL) {
im = new Image();
im.src = img_URL;
}


function roll_img (img_name, img_URL) {
if (document.images) {
			document.images[img_name].src = img_URL;
		}
}

cache_img ('../imgs/buttons/sponsor01.gif');
cache_img ('../imgs/buttons/sponsor02.gif');

// date start

dayName = new Array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
monName = new Array ("January","February","March","April","May","June","July","August","September","October","November","December")
dateName = new Array ("","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31")
now = new Date

// logo ticker

var tWidth='680px';                  // width (in pixels)
var tHeight='66px';                  // height (in pixels)
var tcolour='#ffffff';               // background colour:
var moStop=false;                     // pause on mouseover (true or false)
var fontfamily = 'arial,sans-serif'; // font for content
var tSpeed=3;                        // scroll speed (1 = slow, 5 = fast)

// enter your ticker content here (use \/ and \' in place of / and ' respectively)
var content='<img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/astonmartin.gif" height="66" width="119" alt="Aston Martin" style="margin:0px 20px 0px 60px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/astonmartinracing.gif" height="66" width="115" alt="Aston Martin Racing" style="margin:0px 20px 0px 20px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/autocar.gif" height="66" width="192" alt="Autocar.co.uk" style="margin:0px 20px 0px 20px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/classiccars.gif" height="66" width="158" alt="Classic Cars" style="margin:0px 20px 0px 20px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/classicsmonthly.gif" height="66" width="180" alt="Classics Monthly" style="margin:0px 20px 0px 20px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/classicandsportscar.gif" height="66" width="203" alt="Classics &amp; Sports Car" style="margin:0px 20px 0px 20px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/eurotunnel.gif" height="66" width="65" alt="Euro Tunnel" style="margin:0px 20px 0px 20px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/ferrari.gif" height="66" width="41" alt="Ferrari" style="margin:0px 20px 0px 20px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/goodwood.gif" height="66" width="152" alt="Goodwood" style="margin:0px 20px 0px 20px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/harwoods.gif" height="66" width="143" alt="Harwoods" style="margin:0px 20px 0px 20px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/hatchmansfield.gif" height="66" width="300" alt="Hatch Mansfield" style="margin:0px 20px 0px 20px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/bp.gif" height="66" width="51" alt="BP" style="margin:0px 20px 0px 20px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/ingear.gif" height="66" width="152" alt="InGear" style="margin:0px 20px 0px 20px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/jaguar.gif" height="66" width="115" alt="Jaguar" style="margin:0px 20px 0px 20px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/louisjadot.gif" height="66" width="215" alt="Louis Jadot" style="margin:0px 20px 0px 20px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/overbury.gif" height="66" width="156" alt="Overbury" style="margin:0px 20px 0px 20px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/turtledesign.gif" height="66" width="194" alt="Turtle Design" style="margin:0px 20px 0px 20px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/taittinger.gif" height="66" width="88" alt="Taittinger" style="margin:0px 20px 0px 20px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/timesonline.gif" height="66" width="200" alt="Times Online" style="margin:0px 20px 0px 20px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/trafficmaster.gif" height="66" width="206" alt="Trafficmaster" style="margin:0px 20px 0px 20px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/veurve.gif" height="66" width="109" alt="Veurve Clicquot" style="margin:0px 20px 0px 0px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/casio.gif" height="66" width="203" alt="Casio" style="margin:0px 20px 0px 0px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/launchgroup.gif" height="66" width="274" alt="Launch Group" style="margin:0px 20px 0px 0px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/vodaphone.gif" height="66" width="107" alt="Vodaphone" style="margin:0px 20px 0px 0px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/blackberry.gif" height="66" width="167" alt="Blackberry" style="margin:0px 20px 0px 0px;" \/><img src="http:\/\/www.beaujolaisrun.com\/imgs\/logos\/trackaphone.gif" height="66" width="162" alt="Trackaphone" style="margin:0px 20px 0px 0px;" \/>';

// Simple Marquee / Ticker Script
// copyright 3rd January 2006, Stephen Chapman
// permission to use this Javascript on your web page is granted
// provided that all of the below code in this script (including this
// comment) is used without any alteration
var cps=tSpeed; var aw, mq; var fsz = parseInt(tHeight) - 4; function startticker(){if (document.getElementById) {var tick = '<div style="position:relative;width:'+tWidth+';height:'+tHeight+';overflow:hidden;background-color:'+tcolour+'"'; if (moStop) tick += ' onmouseover="cps=0" onmouseout="cps=tSpeed"'; tick +='><div id="mq" style="position:absolute;left:0px;top:0px;font-family:'+fontfamily+';font-size:'+fsz+'px;white-space:nowrap;"><\/div><\/div>'; document.getElementById('ticker').innerHTML = tick; mq = document.getElementById("mq"); mq.style.right=(parseInt(tWidth)+10)+"px"; mq.innerHTML='<span id="tx">'+content+'<\/span>'; aw = document.getElementById("tx").offsetWidth; lefttime=setInterval("scrollticker()",50);}} function scrollticker(){mq.style.left = (parseInt(mq.style.left)>(-10 - aw)) ?parseInt(mq.style.left)-cps+"px" : parseInt(tWidth)+10+"px";} window.onload=startticker;

// generic pop-up

function popUp(popupwin){
window.open(popupwin,"_blank",'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=490,height=330,left=100,top=100');
}

function popUpWin(url){
newWindow = window.open(url,'eventdetails','resizable=yes,toolbar=no,location=no,scrollbars=no,menubar=no,width=300,height=300,left=100,top=100');
newWindow.focus();
}

function tracking(popupwin){
window.open(popupwin,"_blank",'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=370,left=100,top=100');
}