
/*
	$(function(){
	$.preload( '#bucket img', {
    placeholder:'placeholder.jpg',
    notFound:'notfound.jpg'
});
	});
*/
	

		jQuery(function( $ ){
		
			var target = $('#bin').get(0);//the scrolled div
			target.scrollLeft = target.scrollTop = 0;
			
			//scroll initially if there's a hash (#something) in the url 
			$.localScroll.hash({
				target: target, //could be a selector or a jQuery object too.
				axis:'x',//the default is 'y'
				queue:true,
				duration:1500
			});
			
			var $last = $([]);//save the last link
			
			$('#header ul').localScroll({
				target: target, //could be a selector or a jQuery object too.
				axis:'x',//the default is 'y'
				queue:true,
				duration:1000,
				
				hash:true,
				onBefore:function( e, anchor, $target ){//'this' is the clicked link
					$last.removeClass('scrolling');
					$last = $(this).addClass('scrolling');
					this.blur();//remove the awful outline
				},
				onAfter:function( anchor ){
					$last.removeClass('scrolling');
				}
			});
			
			
			
			
		
		});		jQuery(function( $ ){
		
			var target = $('#bin').get(0);//the scrolled div
			target.scrollLeft = target.scrollTop = 0;
			
			//scroll initially if there's a hash (#something) in the url 
			$.localScroll.hash({
				target: target, //could be a selector or a jQuery object too.
				axis:'xy',//the default is 'y'
				queue:true,
				duration:1500
			});
			
			var $last = $([]);//save the last link
			
			$('#work dd').localScroll({
				target: target, //could be a selector or a jQuery object too.
				axis:'xy',//the default is 'y'
				queue:true,
				duration:1000,
				hash:true,
				onBefore:function( e, anchor, $target ){//'this' is the clicked link
					$last.removeClass('scrolling');
					$last = $(this).addClass('scrolling');
					this.blur();//remove the awful outline
				},
				onAfter:function( anchor ){
					$last.removeClass('scrolling');
				}
			});
			
			
			
			
		
		});
		
		
		$(function()
			{
				// this initialises the demo scollpanes on the page.
		$('#news dl, #work dl').jScrollPane({scrollbarWidth:20, scrollbarMargin:10});
                			
					
			});
			
			$(function(){
		$('#work dl dd').biggerlink();
	});
	
	$('#bin .p_btn a').click(function(){
 	$(this).addClass('current').siblings().removeClass('current');
 	});

