 $(document).ready(function(){
							$(".description").hover(function() {
		//alert(1);
		$(this).find("span").delay(500).animate({opacity: "show"}, "slow");
	}, function() {
		$(this).find("span").delay(100).animate({opacity: "hide"}, "slow");
	});
});

/*  $(document).ready(function(){
	$('i.description').mouseover(function() {
	  //alert("1");
	  $(this).find("span").animate({opacity: "show"}, "slow");
	});
});
 
  $(document).ready(function(){
	$('i.description').mouseout(function() {
	  //alert("1");
	  $(this).find("span").animate({opacity: "hide"}, "slow");
	});
});
 

$(document).ready(function(){
	$('i.description img').mouseout(function() {
	  $(this).next("span").hide();
	});
});


$(document).ready(function(){

	$(".description img").hover(function() {
		//alert(1);
		$(this).next("span").delay(500).animate({opacity: "show"}, "slow");
	}, function() {
		$(this).next("span").delay(100).animate({opacity: "hide"}, "slow");
	});
	
});
*/
function toggleContent(id){
		//alert(id);
		var MyContent=new Array(); 
		MyContent[0]="overview";       
		MyContent[1]="scooters";
		MyContent[2]="roadbikes";
		MyContent[3]="scramblers";
		MyContent[4]="quads";
		var i=0;		
		while(i < MyContent.length){
			document.getElementById(MyContent[i]).style.display = "none";
			i++;
		}
		
		document.getElementById(id).style.display = "block";
}

function toggleLink(id){
		
		var MyLink=new Array(); 
		MyLink[0]="overview_link";       
		MyLink[1]="scooters_link";
		MyLink[2]="roadbikes_link";
		MyLink[3]="scramblers_link";
		MyLink[4]="quads_link";
		var i=0;		
		while(i < MyLink.length){
			document.getElementById(MyLink[i]).setAttribute("class", "");
			i++;
		}		
		document.getElementById(id+'_link').setAttribute("class", "selected");
}

function toggleNews(id){
		
		var MyNews=new Array(); 
		MyNews[0]="news1";       
		MyNews[1]="news2";
		MyNews[2]="news3";
		MyNews[3]="news4";
		MyNews[4]="news5";
		MyNews[5]="news6";
		MyNews[6]="news7";
		
		var i=0;		
		while(i < MyNews.length){
			document.getElementById(MyNews[i]).style.display = 'none';
			i++;
		}		
		document.getElementById(id).style.display = 'block';
}

/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Mr J | http://www.huntingground.net/ */

scrollStep=2

timerLeft=""
timerRight=""

function toLeft(id){
  document.getElementById(id).scrollLeft=0
}

function scrollDivLeft(id){
 
  clearTimeout(timerRight) 
  document.getElementById(id).scrollLeft+=scrollStep
  timerRight=setTimeout("scrollDivLeft('"+id+"')",1)
}

function scrollDivRight(id){
  clearTimeout(timerLeft)
  document.getElementById(id).scrollLeft-=scrollStep
  timerLeft=setTimeout("scrollDivRight('"+id+"')",1)
}

function toRight(id){
  document.getElementById(id).scrollLeft=document.getElementById(id).scrollWidth
}

function stopMe(){
  clearTimeout(timerRight) 
  clearTimeout(timerLeft)
}


