/**jQuery.noConflict();***/
jQuery(document).ready(function ($) {
   // Product Detail Specifications
	$('#Specifications').hide();
	$('.btn_SeeSpecifications').click(function () {
		$('#Specifications').show();
	});
	// tabs - where to buy
	$('.tab_content').hide();
	$('#tab1_content').show();
	$('.tabbed_nav a').click(function() {
		var id = $(this).parent('li').attr('id');
		$('.tab_content').hide();
		$(this).parent('li').siblings().removeClass('on');
		$(this).parent('li').addClass('on');
		$('#' + id + '_content').show();
		return false;
	});
	// Rotator
	var speed = 10000; // time between rotations
	var timer;
	function cycle(delay) {
		if (!delay) delay = 0;
		$('.rotator div.widget_content:last').fadeOut(delay, function () {
			$(this).remove().prependTo('.rotator').show();
			timer = setTimeout(function () {
				cycle(500);
			}, speed);
		});
	};
	timer = setTimeout(function () {
		cycle(500);
	}, speed);
	$('.rotator_nav a.next').live('click', function () {
		clearTimeout(timer);
		cycle(0);
		return false;
	});
	$('.rotator_nav a.prev').live('click', function () {
		clearTimeout(timer);
		$('.rotator div.widget_content:first').remove().appendTo('.rotator').fadeIn();
		timer = setTimeout(function () {
			cycle(500);
		}, speed);
		return false;
	});
});
