$(function() {
	//Cycle
	$('#slideshowfront1').cycle({
		fx: 'fade',
		delay: 2000,
		timeout: 6000
	});
	$('#slideshowfront2').cycle({
		fx: 'fade',
		delay: 2000,
		timeout: 7000
	});
	$('a.popup').lightBox({
		fixedNavigation: true
	});
	
	//Workshop Slider
	$('#slideshow').cycle({
		fx: 'fade',
		speed: 'slow',
		timeout: 5000,
		pager: '#slider_nav',
		prev: '#prev',
		next: '#next',
		pagerAnchorBuilder: function(idx, slide) {
			// return sel string for existing anchor
			return '#slider_nav li:eq(' + (idx) + ') a';
		}
	});
	
	// JQUERY TOOLS
	// TABS
	$("ul.tabs").tabs("div.panes > div", {
		effect: 'default',
	});
	
	// TO TOP SCROLL 
	$('a[href=#top]').click(function() {
		$('html, body').animate({
			scrollTop: 0
		}, 'slow');
		return false;
	});

});
