jQuery.noConflict();
var $j = jQuery;

$j(document).ready(function(){
	thumbnails.init();
});

thumbnails = function(){
	store = {}
	function init(){
		store.thumbs = $j('#Thumbnails img');
		store.stage = $j('#ThumbnailsStage');
		store.stage_image = $j('img',store.stage);
		store.stage_text = $j('#ThumbnailsStageText',store.stage);
		store.friend_product = $j('#friendprod');
		events();
	}
	function events(){
		store.thumbs.css({cursor: 'pointer'});
		store.thumbs.click(function(){
			var contentStore = $j('#' + $j(this).attr('class'));
			store.stage_text.html( $j('.detail',contentStore).html() );
			store.stage_image.attr('src',$j(this).attr('title'));
			store.friend_product.html($j('.product',contentStore).html() );
		});
	}
	return { init: init }
}();