	if(jQuery.cookie("css")) {
	jQuery("link.styleswitcher").attr("href",jQuery.cookie("css"));
}



jQuery(document).ready(function($){
	
	$('input[type=text]').focus(function() {
		$(this).val('');
	});

	$("#switcher li a").click(function() { 
		$("link.styleswitcher").attr("href",$(this).attr('rel'));
		$.cookie("css",$(this).attr('rel'), {expires: 365, path: '/'});
		return false;
	});


	$("a[rel^='prettyPhoto']").prettyPhoto({
			animation_speed: 'fast', /* fast/slow/normal */
			opacity: 0.80, /* Value between 0 and 1 */
			show_title: true, /* true/false */
			allow_resize: true, /* Resize the photos bigger than viewport. true/false */
			default_width: 500,
			default_height: 344,
			theme: 'facebook', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
			hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
			wmode: 'opaque', /* Set the flash wmode attribute */
			autoplay: true, /* Automatically start videos: True/False */
			modal: false /* If set to true, only the close button will close the window */

	});
	
	$('.video_link').animate({ opacity:0.7 });
	$('.video_link').hover(function() {
		$(this).stop().animate({ 'opacity':'1'},'slow')},function() {
		$(this).stop().animate({ 'opacity':'0.7'},'slow')})

	
	$(".product_grid_item:nth-child(4n)").addClass("last");
	$(".video_gallery:nth-child(3n)").addClass("videolast");
	
	$(".single_additional_description").hide();

	$("p#more_toggle").click(function() { 
		$(".single_additional_description").slideToggle("slow");
		$(".form_column").fadeOut("slow");
		return false;
	});
	
	$(".login_register").click(function() { 
		$(".form_column").fadeIn("slow");
		$("#login_dropdown").slideToggle("slow");
	});
	
	$("a.close").click(function() { 
		$(".form_column").fadeOut("slow");
		$("#login_dropdown").slideToggle("slow");
		return false;
	});

	$(window).load(function() {
	    $('#slider').nivoSlider({
	        effect:'sliceDown', //Specify sets like: 'fold,fade,sliceDown'
	        slices:15,
	        animSpeed:500, //Slide transition speed
	        pauseTime:5000,
	        startSlide:0, //Set starting Slide (0 index)
	        directionNav:true, //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:true, //Use left & right arrows
	        pauseOnHover:true, //Stop animation while hovering
	        manualAdvance:false, //Force manual transitions
	        captionOpacity:0.8, //Universal caption opacity
	        beforeChange: function(){},
	        afterChange: function(){},
	        slideshowEnd: function(){}, //Triggers after all slides have been shown
	        lastSlide: function(){}, //Triggers when last slide is shown
	        afterLoad: function(){} //Triggers when slider has loaded
	    });
	});
	

});

