$(document).ready(function(){
	
	$('.fade').innerfade({ 
	    animationtype: 'fade', 
		speed: '2000', 
		timeout: 5000, 
		//type: 'random', 
		containerheight: '98px' 
	});
	
	$('.banner ul').innerfade({ 
	    animationtype: 'fade', 
		speed: '2000', 
		timeout: 100000000000, 
		type: 'random', 
		containerheight: '65px' 
	});
	
	$('#swfcounter').flash({ 
			swf		: 'fileadmin/baden-racing.com/templates/baden-racing/flash/BandenRacing_CountDown_Longines_UK.SWF', 
			height	: 135, 
			width	: 200, 
			allowFullScreen: false, 
			wmode	: 'transparent'

		});
	
	$("#popup .close").click(function(){
		$("#popup").hide();	
		return false;
	});	
	
	/*----------- Colorbox ------------*/
	$(".banner a.colorbox").colorbox({
		transition:'fade',
		returnFocus:true
	});
	
	
	$('.boxes-link a').fadeTo("fast", 0.7);
	$('.boxes-link a').hover(
	function(){ //mouse over
		var $this=$(this);
		$this.stop().fadeTo("slow", 1);
	},
	function(){ //mouse out
		var $this=$(this);
		$this.stop().fadeTo("slow", 0.7);
	});

});
