$(document).ready(function()
{
	  $jScroller.add("#scroller_container","#scroller","left", 10, true);
	  $jScroller.start();
	  
	 $('.fade').each(function()
	{

		 $(this).click(function(e)
		{

			var x = e.pageX;
			var y = e.pageY;
			$('#scroller').children('a').each(function(){
				$(this).children('img:first').each(function()
				{
					var offsetLink = $(this).offset();
					var xLink = offsetLink.left;
					var yLink = offsetLink.top;
					
					var heightLink = $(this).height() + offsetLink.top;
					var widthLink = $(this).width() + offsetLink.left;
					
					//check of de A tag intersect met de cursor
					//binnen de breedte
					//alert( x + ">" + xLink); //391.5 > 445.5
					//alert( x + "<" + widthLink);//391.5<445.571
					//alert( y + ">" + yLink);//1372<1431
					//alert( y + "<" + heightLink);//1372>143116*/
					
					if(x > xLink && x < widthLink)
					{
						//ja nu de hoogte
						if(y > yLink && y < heightLink)
						{
							//klik
							window.location.href = $(this).parent().attr('href');
							
						}
					}
				});
			});
		});			
	});	 
});

