function initLinks(select, normalColour, hoverColour)
{

	select = $(select);
		
	select.removeAttr('style');
	
	select.hover(function(){
		
		$(this).stop().css({"color": normalColour}).animate({"color": hoverColour}, 350);
		
	},function(){

		$(this).stop().animate({"color": normalColour}, 250);

	});

}

function initThumbs(selector){
	$(selector).thumbnailScroller({ 
		scrollerType:"clickButtons", 
		scrollerOrientation:"horizontal", 
		scrollEasingAmount:0, 
		scrollSpeed:2000,
		scrollAmmount:240
	});
}

$(function(){
	
	if ($("#gallery-thumbs").length) {
		
		initThumbs('#gallery-thumbs');
		
	};
	
	if ($('.ng-gallery').length) {
		
		initGallery();
		
	};
	
});
