jQuery.noConflict();
	var showing;
	//-------------------------------------
	// array of quotes to display on the site
	// each index will be an object {quote:"", signature:''}
	var aQuotes = [
		{quote:"A truly captivating documentary, that doesn't carry an agenda.", signature:'Erik Davis, Cinematical'},
		{quote:"Harrowing.", signature:'Reed Johnson, The Los Angeles Times'},
		{quote:"Tremendous - eye opening filmmaking.", signature:'Erik Price, Esquire'},
		{quote:"An unflinching look at the world of Central American child migrants.", signature:'The Wall Street Journal'},
		{quote:"Tackles the almost unfathomably complex immigration issue...", signature:'David Hinckley,<br>The New York Daily News'},
		{quote:"Exceptionally effective filmmaking.", signature:'Jennifer Merin, About.com'}
	// please note last quote in array should NOT have a comma following last curly brace -- will break in IE if it does
	];
	
	// Function to return populate the quote holer with divs to be rotated
	// target #fading_quotes
	// we will include the closing dbl quote in the format rather than content
	/*
		<div class="fading_quote">
			<p class="quote">ary[i].quote"<br /> <span class="quote-small">ary[i].signature</span></p>
		</div>
	*/
	function writeQuotesToPage(){
		// loop and add div for each quote in the array
		
		//var hldr = jQuery('#fading_quotes');
		var l = aQuotes.length;
		//alert("Writing Quotes["+l+"] to Page");
		for(var i=0;i<l;i++){
			var obj = aQuotes[i];
			var s = '<div class="fading_quote"><p class="quote">'+obj.quote+'"<br /> <span class="quote-small">'+obj.signature+'</span></p></div>';
							
			jQuery(s).appendTo('#fading_quotes');
		};
	}	


	//-------------------------------------

	jQuery(document).ready(function(){	
		writeQuotesToPage();
		showing = jQuery('#fading_quotes div.fading_quote:first'); // Initiate the 'showing' variable as the 	first rotating_item
		showing.siblings('div').hide(); // Hide all other rotating_items
		setInterval("show_next_rotating_item(showing)", 5000); // Set the rotate time to 5 seconds
	
	
	jQuery('#fading_quotes').show();
	
	// When a link in the rotating_item is clicked
	// we want to instead treat it as if the whole
	// box was clicked.
	jQuery('#fading_quotes a').click(function(){
		jQuery('#fading_quotes').click();
		return false;
	});
	
	
	// Now, when the box is clicked, track the click
	// as an event in Google Analytics and then direct
	// the user to the intended URL.
	jQuery('#fading_quotes').click(function(){
		var link = showing.contents().find('a').attr('href');
		if(!link) return false; // if there is no link, theres nothing to do here
		var testi_title = showing.find('h3').html();

		if(link!=''){
			window.open(link);
		}
		try {
			pageTracker._trackEvent('fading_quote','click','Following link for ' + testi_title); 
		} catch(err) {
		}							
	}).mouseover(function(){
		jQuery(this).addClass('hover');
	}).mouseout(function(){
		jQuery(this).removeClass('hover');
	});
	});


	// Below is the code that picks an item at random to display
	jQuery.jQueryRandom = 0;  
	jQuery.extend(jQuery.expr[":"],  
	{  
    random: function(a, i, m, r) {  
        if (i == 0) {  
            jQuery.jQueryRandom = Math.floor(Math.random() * r.length);  
        };  
        return i == jQuery.jQueryRandom;  
    }  
	}); 


	// The below function repeatedly gets called, to do the rotating
	function show_next_rotating_item(t){
	jQuery(t).fadeOut('slow');

	var next_rotating_item = jQuery(t).siblings('.fading_quote:random');
	if(!next_rotating_item.attr('class')){
		next_rotating_item = jQuery('#fading_quotes div.fading_quote:first');
	}
	next_rotating_item.fadeIn('slow');
	
	showing = next_rotating_item;	
	}

