if($) $(document).ready(function() {
if(home) {
		Cufon.replace('#nav, #header, #bubble-text, #front-excerpt span, #panel-content h2, #panel-top h1, .inner p, #footer', { hover: 'true' });
		$('#slider-container').cycle({ 
			prev:   'a#left_btn', 
			next:   'a#right_btn', 
			fx:		'fade',
			speed:	500,
			timeout: 3000
		});


			var thumbnailDefaults2 = {
				speed: 1000, // duration of transition (milliseconds)
				visible: 5,
				scroll: 1, // number of thumbnails that will scroll
				circular: true, // do you want it to continue scrolling even if it's at the end?
				easing: null, // transition easing (requires the easing plugin - more about this in the documentation)
				btnNext: 'a#clients_next', // the "next" button
				btnPrev: 'a#clients_prev' // the "previous" button
			}

		$('#carousel2').jCarouselLite(thumbnailDefaults2);
		document.getElementsByTagName('body')[0].style.visibility='visible';

}
else {
		Cufon.replace('.cufon, #cufon, .c, .c2, #header, #widePage h1, #linkTable td,  #nav, #panel-content h2, #panel-top h1, .inner p, #footer, #left-side h1, #main-description p, h2, .column p', { hover: 'true' });

			var thumbnailDefaults = {
				speed: 1000, // duration of transition (milliseconds)
				visible: 3,
				scroll: 1, // number of thumbnails that will scroll
				circular: true, // do you want it to continue scrolling even if it's at the end?
				easing: null, // transition easing (requires the easing plugin - more about this in the documentation)
				btnNext: 'a#clients_next', // the "next" button
				btnPrev: 'a#clients_prev' // the "previous" button
			}
			

			var thumbnailDefaults2 = {
				speed: 1000, // duration of transition (milliseconds)
				visible: 5,
				scroll: 1, // number of thumbnails that will scroll
				circular: true, // do you want it to continue scrolling even if it's at the end?
				easing: null, // transition easing (requires the easing plugin - more about this in the documentation)
				btnNext: 'a#clients_next', // the "next" button
				btnPrev: 'a#clients_prev' // the "previous" button
			}			

			$('#carousel').jCarouselLite(thumbnailDefaults);
			$('#carousel2').jCarouselLite(thumbnailDefaults2);
			document.getElementsByTagName('body')[0].style.visibility='visible';
}
});
