/*
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

	INITIALIZE
	
-----------------------------------------------------------------------------------------------------------------------------

	DEPENDENCIES: 
	MooTools - version 1.20              
	copyright 2007 | Valerio Proietti | http://mootools.net/
	MIT-style license | http://www.opensource.org/licenses/mit-license.php
	
	Clientside CNET Libraries for MooTools
	For descriptions and documentation: http://clientside.cnet.com/wiki/cnet-libraries
	
-----------------------------------------------------------------------------------------------------------------------------

	:: squarehead design studio   -  845.331.1953 | www.squarehead.com | sbliss@squarehead.com
	
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
*/

/* 	Carousel - CNET framework - Clentside docs: http://clientside.cnet.com/docs/Layout/SimpleCarousel
---------------------------------------------------------------------------------------------------------------------------*/
function initCarousel(){
	if ($('viewer')){
		new SimpleCarousel($('viewer'), $$('#viewer div.slide'), $$('#viewer div.button'), {
			slideInterval: 5000,
			rotateAction: 'click'
		});
	}
}

/* 	INITIALIZE STUFF AFTER DOM LOADS
---------------------------------------------------------------------------------------------------------------------------*/
window.addEvent('domready', function(){
	initCarousel();
});



