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

$(document).ready(function(){

	Cufon.replace('h4.widget-title');
	Cufon.replace('#header-signup legend');
	
	jQuery(function(){
		jQuery('ul.sf-menu').superfish( {
		
			animation: { opacity:'show', height:'show' }, 
			speed: 'fast',
			autoArrows: false,
			dropShadows: false
		
		});
	});
	
	$('#info-widgets .widget').height($('#info-widgets').height());
		
	$('div.flickr_badge_image a').attr("target","_blank");
	
	$("#primetime").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
	
	$('#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"));
			}
			
		});
	
	});
	
	$('#ngp-email-signup').validate();
	
	$('#ngp-volunteer-signup').validate();

});