$(document).ready(function() {
	// Nav Dropdowns
	$('li.drop_list').hover(
		function() { $('ul', this).stop(true, true).slideDown('fast'); $(this).css('background-color', '#FFD200'); },
		function() { $('ul', this).stop(true, true).slideUp('fast'); $(this).css('background-color', 'transparent');
	});
	// FancyBox Additions	
	$('.photo_grid a').attr('rel', '5K-gallery').addClass('gallery-box');
});
// Call Fancybox Only after window loads
$(window).load(function() {
	$(".gallery-box").fancybox({
		prevEffect	: 'fade',
		nextEffect	: 'fade',
		nextSpeed : 'slow',
		prevSpeded : 'slow',
		helpers	: {
			overlay: {
				opacity: 0.9,
				css: {
					'background-color' : '#000'
				}
			}		
		}
	});
});
//Sidebar Size Fix
$(window).load(function() {
	var set_right = $('#sidebar').height();
	var set_left = $('.content').height();
	if(set_left > set_right) {
		$('#sidebar').height(set_left);
	}
});
// Fix for Sidebar Inputs on Blog
$(document).ready(function() {
	$('.xoxo input[type=text]').addClass('styled');
	$('.widget-title').css('cursor', 'pointer').next().hide();
	$('.widget-title').click(function() {
		var span = $('span.symbol', this);
		$(this).next().slideToggle('fast', function() {
			$(span).text(function (index, text) {
      	return (text == '+' ? '-' : '+');
      });
    });
	});
});

