// ===============================================
//  jQuery scripts ran on DOM Ready
// =============================================== 
jQuery.noConflict(); // Safety first
var $j = jQuery; 

$j(document).ready(function(){
	// OLD REVIEW CAROSEL
	var review_links=new Array();
	var review_images=new Array();
	var review_titles=new Array();
	
/*	
	$j('#new_releases li').each(function(){
		// Add the link of each item to an array
		
		var image = $j(this).find('img:first').attr('src');
		
		// If there is in image in the post, add the image src and the post href to arrays
		if ( image !== undefined) {
			review_links.push( $j(this).find('a:first').attr('href') );
			review_titles.push( $j(this).find('a:first').html() );
			review_images.push( image );
		}

	});
	
	for (x in review_links) {
	
		if (x<4) {
			$j('#carousel_container').append(  '<a href="'+ review_links[x] +'" title="'+ review_titles[x] +'"><img src="'+ review_images[x] +'"/></a>'  );
		}
	
	}
*/



	/*
	// OLD REVIEW CAROSEL
	var review_links=new Array();
	var review_images=new Array();
	var review_titles=new Array();
	
	$j('#review_content .item').each(function(){
		// Add the link of each item to an array
		
		var image = $j(this).find('.content').find('img:first').attr('src');
		
		// If there is in image in the post, add the image src and the post href to arrays
		if ( image !== undefined) {
			review_links.push( $j(this).find('.link').html() );
			review_titles.push( $j(this).find('.title').html() );
			review_images.push( image );
		}

	});
	
	for (x in review_links) {
	
		if (x<4) {
			$j('#carousel_container').append(  '<a href="'+ review_links[x] +'" title="'+ review_titles[x] +'"><img src="'+ review_images[x] +'"/></a>'  );
		}
	
	}
	// END OLD REVIEW CAROUSEL
*/
/*
	$('#review_carousel').find('img').each(function(){
		Reflection.add(this, { height: 2/4, opacity: 1/3 });
	});
	
*/
/*

	$('#review_carousel').Fisheye(
		{
			maxWidth: 30,
			items: 'a',
			itemText: '',
			container: '#carousel_container',
			itemWidth: 90,
			proximity: 60,
			halign : 'center',
			valign: 'bottom'
		}
	)
	
*/
// 
// $j('#carousel_container').Carousel(
// 			{
// 					itemWidth: 90,
// 					itemHeight: 70,
// 					itemMinWidth: 60,
// 					items: 'a',
// 					reflections: .6,
// 					rotationSpeed: 1
// 			}
// 		);
// 	
// 	
	//$j('#review_content').appendTo(review_links.toString());
	
	
		
}); // end domready
