jQuery.noConflict();

jQuery(document).ready(function($) { 
    $("#flowpanes").scrollable({size: 1}).circular().mousewheel(400).navigator({navi: "#flowtabs", naviItem: 'a', activeClass: 'current'}).autoscroll({steps: 1, interval: 5000}); 
	
	var currentYear = (new Date).getFullYear();
	$("#date").text( (new Date).getFullYear() );
	
	$('li.dropdown').hover(function() {
		$('#toolbox-panel:visible').slideUp('fast');
		$('#toolbox').removeClass('active');
		$('ul', this).stop(true, true).slideDown('300'); },
		function() { $('ul', this).stop(true, true).slideUp(200);
	});
	
	$('#toolbox').click(function(){
		$('#toolbox-panel').slideToggle('fast');
		$(this).toggleClass('active');
	});
	
	$('.panel-close').click (function(){
		$('#toolbox-panel').slideToggle('fast');
		$('#toolbox').removeClass('active');
	});
	
	$.stylesheetInit();
		
	$('#toggler').bind('click',	function(e)	{
		$.stylesheetToggle();
		return false;
	});
	
	$('.styleswitch').bind('click',	function(e)	{
		$.stylesheetSwitch(this.getAttribute('rel'));
		return false;
	});
	
	$("#twitter-feed").getTwitter({
		userName: "pdcnet",
		numTweets: 2,
		loaderText: "Loading chatter...",
		slideIn: true,
		showHeading: false,
		showProfileLink: false,
		showTimestamp: true
	});
	
	$("#chatterbox-feed").getTwitter({
		userName: "pdcnet",
		numTweets: 10,
		loaderText: "Loading chatter...",
		slideIn: true,
		showHeading: false,
		showProfileLink: false,
		showTimestamp: true
	});	
});
