/*
		CAROUSEL NAV
		this script controls fadein/fadeout on the carousel nav buttons.
		actual nav for the project sides is controlled by the jquery ui tabs
		which is called in the index.php file.
		
		
		*/
		
		//		by j.slaughter
		//		2010
		//		jslaughter.net
		
//////////////////
//
//	Don't ask me why I can't say $(document) ...
//	using the shorthand made jcarousel flagellate itself
//	and this script didn't take kindly to it either
//	that's what I get for trying to cut corners.
//
//////////////////


        jQuery(document).ready(function() {
										

				//////////////////////////////
				//							//
				//		BUTTON CONTROLS		//
				//							//
				//////////////////////////////
				
						//this file used to be a lot bigger, warranting a giant BUTTON CONTROLS comment.
						//It's no longer necessary, but I like the way it looks, so it stays.
						//Nobody reads these comments but me. I AM KING OF COMMENTS.
				

				jQuery(".carousel_button").click( function(event) {
																 										
						//turn off other carousel buttons
						jQuery(this).parent().siblings().animate({
								opacity: 0.5,
								borderTopColor: '#000000',
								borderBottomColor: '#000000',
								borderLeftColor: '#000000',
								borderRightColor: '#000000'
								}, 500, function() { });
						
						//highlight coordinating carousel button
						jQuery(this).parent().css('opacity',"1");
						jQuery(this).parent().css('border-color','#ffffff');
					
					});
								
				});

