$(document).ready(function() {
	$("a#diagram").fancybox();
	$("a.fancy").fancybox({
	'zoomSpeedIn' : 600,
	'zoomSpeedOut' : 500,
	'frameWidth' : 400,
	'imageScale' : false,
	'hideOnContentClick' : false,
	'easingIn' : 'easeOutBack',
	'easingOut' : 'easeInBack'
	});
	$("div#newsletter a").fancybox({
	'zoomSpeedIn' : 600,
	'zoomSpeedOut' : 500,
	'frameWidth' : 450,
	'frameHeight' : 300,
	'hideOnContentClick' : false
	});

	$('ul#updates').liScroll({travelocity: 0.02});
	$('ul#memberslist').liScroll({travelocity: 0.02});

	$("#slider").easySlider({
	auto: true,
	continuous: true,
	speed: 1000,
	pause: 8000
	});

	$("div#activity").tabs({ selected: 0 });
	$("div#years-CPO").tabs({ selected: 2 });
	$("div#years-PKO").tabs({ selected: 2 });
	$("div#years-PKE").tabs({ selected: 2 });
	$("div#years").tabs({ selected: 2 });
	$("div#initials").accordion({
		autoHeight: false
	});
	$('table tbody tr:nth-child(even)').addClass('odd');
	$('div#content_main ul#memberlist li:nth-child(even)').addClass('odd');
	$('table caption').removeAttr("align");
	
	$('#slideshow').nivoSlider({
        effect:'fade', // Specify sets like: 'fold,fade,sliceDown'
        slices:15, // For slice animations
        boxCols: 8, // For box animations
        boxRows: 4, // For box animations
        animSpeed:500, // Slide transition speed
        pauseTime:5000, // How long each slide will show
        startSlide:0, // Set starting Slide (0 index)
        directionNav:false, // Next & Prev navigation
        directionNavHide:true, // Only show on hover
        controlNav:false, // 1,2,3... navigation
        keyboardNav:true, // Use left & right arrows
        pauseOnHover:true, // Stop animation while hovering
        manualAdvance:false, // Force manual transitions
        captionOpacity:1, // Universal caption opacity
        prevText: 'Prev', // Prev directionNav text
        nextText: 'Next', // Next directionNav text
        beforeChange: function(){}, // Triggers before a slide transition
        afterChange: function(){}, // Triggers after a slide transition
        slideshowEnd: function(){}, // Triggers after all slides have been shown
        lastSlide: function(){}, // Triggers when last slide is shown
        afterLoad: function(){} // Triggers when slider has loaded
    });

	$(".tweet").tweet({
	  	join_text: "auto",
	  	username: "greenpalmoil",
	  	avatar_size: 48,
	  	count: 1,
	  	loading_text: "loading tweets..."
	});
	
});
$(window).load(function() {
});
