// Custom jquery plugin's for http://www.trackdays.co.uk

// Bottom linkbar
$(document).ready(function() {
	$('a#slick-show').click(function() {
    	$('#vehicle_navigation') .slideToggle("slow");
		$("<div id='jquery-overlay' style='height: 100%; width: 100%; background: #000; :alpha(opacity=70);-moz-opacity:.70;opacity:.70;'></div>").appendTo("body");
		$('a#slick-show') .hide();
		$('a#slick-hide') .show();
   		return false;
  	});
	$('a#slick-hide').click(function() {
		$('#vehicle_navigation') .slideToggle("slow");
		$('#jquery-overlay') .hide();
		$('a#slick-show') .show();
		$('a#slick-hide') .hide();
		return false;
	});
	$('a#detach_Menu').click(function() {
		$('#link_Bar') .css({ position: "relative" });
		$('body') .css({ padding: "0px 0px 0px 0px" });
		$('a#detach_Menu') .hide();
		$('a#attach_Menu') .show();
	});
	$('a#attach_Menu').click(function() {
		$('#link_Bar') .css({ position: "fixed" });
		$('a#attach_Menu') .hide();
		$('a#detach_Menu') .show();
	});
	$('.panel').corner({
	  	tl: { radius: 7 },
       	tr: { radius: 7 },
       	bl: { radius: 7 },
       	br: { radius: 7 },
       	antiAlias: true,
       	autoPad: false,
       	validTags: ["div"]
	});
	
	$('.panel_vehicle').corner({
		tl: { radius: 7 },
        tr: { radius: 7 },
        bl: { radius: 7 },
        br: { radius: 7 },
        antiAlias: true,
        autoPad: false,
        validTags: ["div"]
	});
	$('ul#ticker02').cycle({ fx: 'scrollUp', speed: 700, timeout: 5000, cleartype: 1 });
	$('.nextWeather').click(function() {
		$('#currentConditions1').toggle();
		$('#currentConditions2').toggle();
	});
});
// End
	
window.onload = function()
{
	//alert('_'+document.getElementsByTagName('div')[0].innerHTML+'_');
	$(document).pngFix();
}
function highlight1() {
	if(document.getElementById('cir_1').style.background == '#2a2a2a');
	{
	document.getElementById('cir_1').style.background = '#0f0f0f';
	}
	if(document.getElementById('cir_2').style.background == '#2a2a2a');
	{
	document.getElementById('cir_2').style.background = '#0f0f0f';
	}
	if(document.getElementById('cir_3').style.background == '#2a2a2a');
	{
	document.getElementById('cir_3').style.background = '#0f0f0f';
	}
	if(document.getElementById('cir_4').style.background == '#2a2a2a');
	{
	document.getElementById('cir_4').style.background = '#0f0f0f';
	}
	if(document.getElementById('cir_5').style.background == '#2a2a2a');
	{
	document.getElementById('cir_5').style.background = '#0f0f0f';
	}
	document.getElementById('cir_1').style.background = '#2a2a2a';
}
function highlight2() {
	if(document.getElementById('cir_1').style.background == '#2a2a2a');
	{
	document.getElementById('cir_1').style.background = '#0f0f0f';
	}
	if(document.getElementById('cir_2').style.background == '#2a2a2a');
	{
	document.getElementById('cir_2').style.background = '#0f0f0f';
	}
	if(document.getElementById('cir_3').style.background == '#2a2a2a');
	{
	document.getElementById('cir_3').style.background = '#0f0f0f';
	}
	if(document.getElementById('cir_4').style.background == '#2a2a2a');
	{
	document.getElementById('cir_4').style.background = '#0f0f0f';
	}
	if(document.getElementById('cir_5').style.background == '#2a2a2a');
	{
	document.getElementById('cir_5').style.background = '#0f0f0f';
	}
	document.getElementById('cir_2').style.background = '#2a2a2a';
}
function highlight3() {
	if(document.getElementById('cir_1').style.background == '#2a2a2a');
	{
	document.getElementById('cir_1').style.background = '#0f0f0f';
	}
	if(document.getElementById('cir_2').style.background == '#2a2a2a');
	{
	document.getElementById('cir_2').style.background = '#0f0f0f';
	}
	if(document.getElementById('cir_3').style.background == '#2a2a2a');
	{
	document.getElementById('cir_3').style.background = '#0f0f0f';
	}
	if(document.getElementById('cir_4').style.background == '#2a2a2a');
	{
	document.getElementById('cir_4').style.background = '#0f0f0f';
	}
	if(document.getElementById('cir_5').style.background == '#2a2a2a');
	{
	document.getElementById('cir_5').style.background = '#0f0f0f';
	}
	document.getElementById('cir_3').style.background = '#2a2a2a';
}
function highlight4() {
	if(document.getElementById('cir_1').style.background == '#2a2a2a');
	{
	document.getElementById('cir_1').style.background = '#0f0f0f';
	}
	if(document.getElementById('cir_2').style.background == '#2a2a2a');
	{
	document.getElementById('cir_2').style.background = '#0f0f0f';
	}
	if(document.getElementById('cir_3').style.background == '#2a2a2a');
	{
	document.getElementById('cir_3').style.background = '#0f0f0f';
	}
	if(document.getElementById('cir_4').style.background == '#2a2a2a');
	{
	document.getElementById('cir_4').style.background = '#0f0f0f';
	}
	if(document.getElementById('cir_5').style.background == '#2a2a2a');
	{
	document.getElementById('cir_5').style.background = '#0f0f0f';
	}
	document.getElementById('cir_4').style.background = '#2a2a2a';
}
function highlight5() {
	if(document.getElementById('cir_1').style.background == '#2a2a2a');
	{
	document.getElementById('cir_1').style.background = '#0f0f0f';
	}
	if(document.getElementById('cir_2').style.background == '#2a2a2a');
	{
	document.getElementById('cir_2').style.background = '#0f0f0f';
	}
	if(document.getElementById('cir_3').style.background == '#2a2a2a');
	{
	document.getElementById('cir_3').style.background = '#0f0f0f';
	}
	if(document.getElementById('cir_4').style.background == '#2a2a2a');
	{
	document.getElementById('cir_4').style.background = '#0f0f0f';
	}
	if(document.getElementById('cir_5').style.background == '#2a2a2a');
	{
	document.getElementById('cir_5').style.background = '#0f0f0f';
	}
	document.getElementById('cir_5').style.background = '#2a2a2a';
}

function showknockhill(){ 
	document.getElementById('knockhill').style.display = 'block';
	}
function hideknockhill(){ 
	document.getElementById('knockhill').style.display = 'none';
	}
function showchobham(){ 
	document.getElementById('chobham').style.display = 'block';
	}
function hidechobham(){ 
	document.getElementById('chobham').style.display = 'none';
	}
function showteesside(){ 
	document.getElementById('teesside').style.display = 'block';
	}
function hideteesside(){ 
	document.getElementById('teesside').style.display = 'none';
	}
function showcroft(){ 
	document.getElementById('croft').style.display = 'block';
	}
function hidecroft(){ 
	document.getElementById('croft').style.display = 'none';
	}
function showjurby(){ 
	document.getElementById('jurby').style.display = 'block';
	}
function hidejurby(){ 
	document.getElementById('jurby').style.display = 'none';
	}
function showmondello_park(){ 
	document.getElementById('mondello_park').style.display = 'block';
	}
function hidemondello_park(){ 
	document.getElementById('mondello_park').style.display = 'none';
	}
function showanglesey(){ 
	document.getElementById('anglesey').style.display = 'block';
	}
function hideanglesey(){ 
	document.getElementById('anglesey').style.display = 'none';
	}
function showelvington(){ 
	document.getElementById('elvington').style.display = 'block';
	}
function hideelvington(){ 
	document.getElementById('elvington').style.display = 'none';
	}
function showthree_sisters(){ 
	document.getElementById('three_sisters').style.display = 'block';
	}
function hidethree_sisters(){ 
	document.getElementById('three_sisters').style.display = 'none';
	}
function showoulton_park(){ 
	document.getElementById('oulton_park').style.display = 'block';
	}
function hideoulton_park(){ 
	document.getElementById('oulton_park').style.display = 'none';
	}
function showoulton_park(){ 
	document.getElementById('oulton_park').style.display = 'block';
	}
function hideoulton_park(){ 
	document.getElementById('oulton_park').style.display = 'none';
	}
function showcadwell_park(){ 
	document.getElementById('cadwell_park').style.display = 'block';
	}
function hidecadwell_park(){ 
	document.getElementById('cadwell_park').style.display = 'none';
	}
function showdonington_park(){ 
	document.getElementById('donington_park').style.display = 'block';
	}
function hidedonington_park(){ 
	document.getElementById('donington_park').style.display = 'none';
	}
function showseighford_driving_centre(){ 
	document.getElementById('seighford_driving_centre').style.display = 'block';
	}
function hideseighford_driving_centre(){ 
	document.getElementById('seighford_driving_centre').style.display = 'none';
	}
function showprestwold_hall(){ 
	document.getElementById('prestwold_hall').style.display = 'block';
	}
function hideprestwold_hall(){ 
	document.getElementById('prestwold_hall').style.display = 'none';
	}
function showrockingham(){ 
	document.getElementById('rockingham').style.display = 'block';
	}
function hiderockingham(){ 
	document.getElementById('rockingham').style.display = 'none';
	}
function showsnetterton(){ 
	document.getElementById('snetterton').style.display = 'block';
	}
function hidesnetterton(){ 
	document.getElementById('snetterton').style.display = 'none';
	}
function showwoodbridge(){ 
	document.getElementById('woodbridge').style.display = 'block';
	}
function hidewoodbridge(){ 
	document.getElementById('woodbridge').style.display = 'none';
	}
function showbedford(){ 
	document.getElementById('bedford').style.display = 'block';
	}
function hidebedford(){ 
	document.getElementById('bedford').style.display = 'none';
	}
function showsilverstone(){ 
	document.getElementById('silverstone').style.display = 'block';
	}
function hidesilverstone(){ 
	document.getElementById('silverstone').style.display = 'none';
	}
function showbruntingthorpe(){ 
	document.getElementById('bruntingthorpe').style.display = 'block';
	}
function hidebruntingthorpe(){ 
	document.getElementById('bruntingthorpe').style.display = 'none';
	}
function showmallory_park(){ 
	document.getElementById('mallory_park').style.display = 'block';
	}
function hidemallory_park(){ 
	document.getElementById('mallory_park').style.display = 'none';
	}
function showkenilworth(){ 
	document.getElementById('kenilworth').style.display = 'block';
	}
function hidekenilworth(){ 
	document.getElementById('kenilworth').style.display = 'none';
	}
function showheyford_park(){ 
	document.getElementById('heyford_park').style.display = 'block';
	}
function hideheyford_park(){ 
	document.getElementById('heyford_park').style.display = 'none';
	}
function showcastle_combe(){ 
	document.getElementById('castle_combe').style.display = 'block';
	}
function hidecastle_combe(){ 
	document.getElementById('castle_combe').style.display = 'none';
	}
function showllandow(){ 
	document.getElementById('llandow').style.display = 'block';
	}
function hidellandow(){ 
	document.getElementById('llandow').style.display = 'none';
	}
function showpembrey(){ 
	document.getElementById('pembrey').style.display = 'block';
	}
function hidepembrey(){ 
	document.getElementById('pembrey').style.display = 'none';
	}
function showthruxton(){ 
	document.getElementById('thruxton').style.display = 'block';
	}
function hidethruxton(){ 
	document.getElementById('thruxton').style.display = 'none';
	}
function showgoodwood(){ 
	document.getElementById('goodwood').style.display = 'block';
	}
function hidegoodwood(){ 
	document.getElementById('goodwood').style.display = 'none';
	}
function showbrands_hatch(){ 
	document.getElementById('brands_hatch').style.display = 'block';
	}
function hidebrands_hatch(){ 
	document.getElementById('brands_hatch').style.display = 'none';
	}
function showlydden(){ 
	document.getElementById('lydden').style.display = 'block';
	}
function hidelydden(){ 
	document.getElementById('lydden').style.display = 'none';
	}
function showabingdon(){ 
	document.getElementById('abingdon').style.display = 'block';
	}
function hideabingdon(){ 
	document.getElementById('abingdon').style.display = 'none';
	}
	function showhullavington(){ 
	document.getElementById('hullavington').style.display = 'block';
	}
function hidehullavington(){ 
	document.getElementById('hullavington').style.display = 'none';
	}
	function showkeevil(){ 
	document.getElementById('keevil').style.display = 'block';
	}
function hidekeevil(){ 
	document.getElementById('keevil').style.display = 'none';
	}	
	function showcolerne(){ 
	document.getElementById('colerne').style.display = 'block';
	}
function hidecolerne(){ 
	document.getElementById('colerne').style.display = 'none';
	}
		function showgreat_tew(){ 
	document.getElementById('great_tew').style.display = 'block';
	}
function hidegreat_tew(){ 
	document.getElementById('great_tew').style.display = 'none';
	}
	$(document).ready(function()
            {
                        $("#hide").hide();
                        $("#show").show();
                        $("#divShow").hide();
                $("#hide").click(function()
                        {
                                    $("#divShow").hide();
                                    $("#hide").hide();
                                    $("#show").show();
                        });
                        $("#show").click(function()
                        {
                                    $("#divShow").show();
                                    $("#hide").show();
                                    $("#show").hide();
                        });
            });
