	var bgimages=new Array();
	bgimages[0]="http://www.tomorrowsdrivers.com/landing_images/test1.jpg";
	bgimages[1]="http://www.tomorrowsdrivers.com/landing_images/test1.jpg";
	bgimages[2]="http://www.tomorrowsdrivers.com/landing_images/test1.jpg";

	//preload images
	var pathToImg=new Array()
	for (i=0;i<bgimages.length;i++)
	{
	  pathToImg[i]=new Image()
	  pathToImg[i].src=bgimages[i]
	}

	var inc=-1;

	function bgSlide()
	{
	  if (inc<bgimages.length-1)
		inc++;
	  else
		inc=0;
		bgPic = 'url('+pathToImg[inc].src+')';
		//document.getElementById('content').style.backgroundImage = 'url('+bgPic+')';
		$(function(){ 
			//$("#content").css("background", bgPic).fadeIn(400);
			//$('#background').css({ 'background-image': bgPic },$('#background').fadeIn(1000));
			//$("#background").css("background-repeat", "no-repeat");
			
		});
	}

	if (document.all||document.getElementById)
	  window.onload=new Function('setInterval("bgSlide()",7000)')

	$(document).ready(function(){
		$('#background').crossSlide({
		  sleep: 5,
		  fade: 1
		}, [
		  { src: 'http://www.tomorrowsdrivers.com/landing_images/test1.jpg' },
		  { src: 'http://www.tomorrowsdrivers.com/landing_images/test1.jpg' },
		  { src: 'http://www.tomorrowsdrivers.com/landing_images/test1.jpg' }
		]);

		$('img.menu_class').click(function () {
			$('ul.the_menu').slideToggle('medium');
		});

		$(function(){
			$('.menu_class').mouseover(function(){
				var newSrc = $(this).attr("src").replace("select_dropdown.png", "select_dropdown_hover.png");
				$(this).attr("src", newSrc); 
			});
			$('.menu_class').mouseout(function(){
				var newSrc = $(this).attr("src").replace("select_dropdown_hover.png", "select_dropdown.png");
				$(this).attr("src", newSrc); 
			});
		});
	});
