
jQuery(document).ready(function() {
	

	jQuery("ul.sf-menu").superfish({
		delay: 500,
		animation: {opacity:'show'},
		speed: 200,
		autoArrows: false,
		dropShadows: false
	}); 
	

	jQuery('#nav ul.sf-menu').superfish({ 
		delay: 200,
		animation: {opacity:'show', height:'show'},
		speed: 'fast',
		autoArrows: false,
		dropShadows: false
	});
	
	jQuery(".tabs").tabs({ 
		fx: { opacity: 'toggle' } 
	});
	

	jQuery('input, textarea').focus( 
		function () {
			jQuery(this).css('border', '1px solid #d2d2d2');
			jQuery(this).css('color', '#444444');
		}
	);
	

	jQuery('input, textarea').blur( 
		function () {
			jQuery(this).css({
				border: '1px solid #e0e0e0',
				color: '#999999'
			});
		}
	);
	

	jQuery('#respond input.btn, #respond button').hover( 
		function () {
			jQuery(this).css({background: 'url(../images/comment_btn_bg_hover.png) repeat-x'});
			jQuery('#respond p.submit span.left_side').css({backgroundImage: 'url(images/comment_btn_left_hover.png)'});
			jQuery('#respond p.submit span.right_side').css({backgroundImage: 'url(images/comment_btn_right_hover.png)'});
		}, function () {
			jQuery(this).css({background: 'url(../images/comment_btn_bg.png) repeat-x'});
			jQuery('#respond p.submit span.left_side').css({backgroundImage: 'url(../images/comment_btn_left.png)'});
			jQuery('#respond p.submit span.right_side').css({backgroundImage: 'url(../images/comment_btn_right.png)'});
		}
	);
	

	jQuery('.gally a').hover( 
		function () {
			jQuery(this).stop().animate({ opacity: 0.5 },200);
		}, function () {
			jQuery(this).stop().animate({ opacity: 1 },200);
		}
	);
	

	$('#back_to_top a').click(function(){
		
		$('html, body').animate({scrollTop: '0px'}, 1000);
		
		return false;
	});
	


}); 
