jQuery.noConflict();

jQuery(function($) {
	// 4th product element
	$('#content .product:nth-child(3n+2)').css({"border-right":"none"});
	
	// product text
	$('.product p, .description ul li').wrapInner('<span>');
	
	// header slider
	if(jQuery('#slideshow')[0]){
		jQuery('#slideshow').nivoSlider({
			effect:'random',
			slices:15,
			animSpeed:1000,
			pauseTime:5000,
			startSlide:0, //Set starting Slide (0 index)
			directionNav:false, //Next & Prev
			directionNavHide:false, //Only show on hover
			controlNav:false, //1,2,3...
			keyboardNav:false, //Use left & right arrows
			pauseOnHover:true, //Stop animation while hovering
			manualAdvance:false, //Force manual transitions
			captionOpacity:0.7
		});
	}

	
});

function changeWeight(uid,price,price2) {
	
	if (uid.options.selectedIndex==1) newPrice = price2;
	else newPrice = price;
	
	orderLink = 'orderLink'+uid.id;
	priceTxt = 'priceTxt'+uid.id;
	
	document.getElementById(orderLink).href = uid.options[uid.options.selectedIndex].value;
	document.getElementById(priceTxt).innerHTML = newPrice;
}
