$(document).ready(function(){
	$("#navigation > ul > li > ul").parent().children("a").hover(function() {
		$(this).addClass("hover");
		$(this).parent().find("ul").slideDown('fast').show();
		$(this).parent().hover(function() {}, function() {
			$(this).parent().find("ul").slideUp('fast', function() {
				$(this).parent().children("a").removeClass("hover");
			});
		});
	});
	
	$(".slideshow").nivoSlider({
		effect: 'fade', //Specify sets like: 'fold,fade,sliceDown'
		slices: 15,
		animSpeed: 500, //Slide transition speed
		pauseTime: 5000,
		startSlide: 0, //Set starting Slide (0 index)
		directionNav: false, //Next & Prev
		directionNavHide: true, //Only show on hover
		controlNav: true, //1,2,3...
		controlNavThumbs: false, //Use thumbnails for Control Nav
		controlNavThumbsFromRel: false, //Use image rel for thumbs
		controlNavThumbsSearch: '.jpg', //Replace this with...
		controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
		keyboardNav: false, //Use left & right arrows
		pauseOnHover: true, //Stop animation while hovering
		manualAdvance: false, //Force manual transitions
		captionOpacity: 0.8, //Universal caption opacity (0.8)
		beforeChange: function(){},
		afterChange: function(){},
		slideshowEnd: function(){} //Triggers after all slides have been shown
	});
	
	$('a.mainPhotoLink, a.subPhotoLink').colorbox({iframe:true, innerWidth:506, innerHeight:506, opacity:0.2});
	
//	$('.review').hide();
//	$('.productmore').find("a").click(function() {
	//	var divselect = $(this).attr("href").split("#");
	//	divselect = divselect[1];
	//	$(this).parent().siblings("div").removeClass("productmoreselected");
	//	$(this).parent().addClass("productmoreselected");
	//	$(".divselectmore").hide();
	//	$("."+divselect).show();
	//	return false;
	//});
	
});

