/*	=========================
	
	scripts.js
	
	Put scripts here.
	
	Last edited: 10/14/09 by Dan
	
	========================= */

$(document).ready(function(){

	jQuery(function(){
		jQuery('ul.sf-menu').superfish( {
		
			animation: { opacity:'show', height:'show' }, 
			speed: 'fast'
		
		});
	});
	
	$('#pt-content').after('<ul id="pt-controls"><li id="pt-pager"></li></ul>').cycle({
		fx: 'fade',
		speed: 'fast',
		timeout: 6000,
		pager: '#pt-pager'
	});
	
	$('div.flickr_badge_image a').attr("target","_blank");
	
	// $('.columnator-2-col').columnize({columns: 2, dontsplit: "h4,p,h2", column: "columnator-column"})
	
	$('#header-signup input:text').each(function() {
		
		// alert($(this).val());
		
		$(this).data("originalValue",$(this).val());
		
		$(this).click(function() {
			
			if($(this).val() == $(this).data("originalValue")) {
				$(this).val('');
			}
			
		});
		
		$(this).blur(function() {
		
			if($(this).val() == '') {
				$(this).val($(this).data("originalValue"));
			}
			
		});
	
	});
	
	$('#header-signup').supersleight({ shim: '../images/header/x.gif' });
	
	if($('#content').height() < $('#body').height()) {
		$('#content').height($('#body').height() + 14);
	}

	if($('#home-blog').height() < $('#home-chair').height()) {
		$('#home-blog').height($('#home-chair').height());
	}
	else {
		$('#home-chair').height($('#home-blog').height());
	}

});
