jQuery(function($) { // Tell BC this is Jquery

// Jquery Cycle
	$(document).ready(function() {
		$('#rotating').cycle({
		fx:     	'fade',
		cleartype: true,
		cleartypeNoBg: true,
		delay:  	200,
		speed:  	1000,
		timeout:	5000,
		height:     'auto',
		containerResize: 1
		});
	});
// End Jquery Cycle

// Image and URL Error Handeler for Testimonials App
	$().ready(function() {
		$("a[href='']").removeAttr('href');
		$("img[src='']").remove();
	});
// End Image and URL Error Handeler for Testimonials App

// Jquery Lavalamp
	$(function() {   
	   $("#lavalamp").lavaLamp({
			fx: 'swing',
			speed: 333
		});
	});
// End Jquery Lavalamp

// Jquery Fancybox
	$(document).ready(function() { 
		$("a.group").fancybox({ 'zoomSpeedIn': 300, 'zoomSpeedOut': 300, 'overlayShow': true, 'titleShow': false });
	}); 
// End Jquery Fancybox

// External Links Icon
// Creating custom :external selector
	$.expr[':'].external = function(obj){
		return (obj.hostname != location.hostname);
	};

	$(document).ready(function(){
        // Add 'external' CSS class to all external links
        $('a:external').addClass('external');
	});
// End External Links Icon

}); // End BC this is Jquery