Cufon.replace('#secondaryColumn .section h3');

$(document).ready(function() {
	//Add/Remove Input Values
	$('input[title]').each(function() {
		if($(this).val() == '') {
			$(this).val($(this).attr('title'));	
		}
		
		$(this).focus(function() {
			if($(this).val() == $(this).attr('title')) {
				$(this).val('');	
			}
		});
		$(this).blur(function() {
			if($(this).val() == '') {
				$(this).val($(this).attr('title'));	
			}
		});
	});
	//End Add/Remove Input Values

	//Featured Nav
	$('#featured .frame:first-child, #featured .nav li:first-child').addClass('current');
	$('#featured .frame:first-child').fadeIn(1500, function() {
		$('#featured .frame:not(:first-child)').show();
	});
	
	$('#featured .nav a').click(function() {
		if(!$(this).parent().hasClass('current')) {
			var $childIndex = $(this).parent().prevAll().length + 1;
			$('#featured .nav .current, #featured .frame.current').removeClass('current');
			$(this).parent().addClass('current');
				
			$('#featured .frames').children('.frame:nth-child('+$childIndex+')').addClass('current');
			
		}
		return false;
	});
	//End Featured Nav
	
	//Colorbox
	$("a[rel*='lightbox']").colorbox();
	//End Colorbox
});
