Cufon.replace(['.navi a', '.submit'], {hover: true});
Cufon.replace(['h1', 'h2', 'h3']);


$(document).ready(function() {
	var tabs = $('.tabs li');
	var tab_contents = $('.tab-content');
	var tab_holder = $('.tab-holder');
	
	tabs.each(function(i) {
		$(this).click(function() {
			tabs.removeClass('selected');
			$(this).addClass('selected')
			
			tab_contents.hide();
			var open = tab_contents.eq(i).show();
			
			tab_holder.animate({height: open.height()}, 500);
		});
	});
	
	tabs.eq(0).click();
	
	
	
	$('.reset').each(function() {
		var def = $(this).val();
		
		$(this).focus(function() {
			if($(this).val() == def)
				$(this).val('');
		}).blur(function() {
			if($(this).val() == '')
				$(this).val(def);
		});
	});
});
