$(document).ready(function()
	{
		//$('p.product-name, p.price').centerscreen({
		//	parent : 1,
		//	horizontal : 0,
		//	animate : 0,
		//	onresize : 0
		//});
		
		//slideshow
		$('#scrollContainer').cycle({ 
			fx: 'fade', 
			speed: 1000,
			timeout: 8000,
			pager:  '.navigation',
			 
			// callback fn that creates a thumbnail to use as pager anchor 
			pagerAnchorBuilder: function(idx, slide) { 
				num = idx+1;
				return '<li><a href="#">'+ num +'</a></li>'; 
			} 
		});
		
		//Nav Tabs
		$(function () 
		{
			var tabContainers = $('div#product-nav > div');
			tabContainers.hide().filter(':first').show();
			
			$('div#product-nav ul#tabs a').click(function () {
					tabContainers.hide();
					tabContainers.filter(this.hash).show();
					$('div#product-nav ul#tabs a').removeClass('selected');
					$(this).addClass('selected');
					return false;
			}).filter(':first').click();
		});
		
	});
	
$(window).load(function()
	{
		$('.item-small-image a').centerscreen({
			parent : 1,
			animate : 0,
			onresize : 0
		});
	});
