
(function($) {
$(document).ready(function() {
	var $j = jQuery.noConflict();
	
	$j('body').addClass('js');
	
	// set up rollovers
	// var offColor = '#1DB374';
	// var onColor = '#37895b';
	// var links = $j('#header .nav li a, a.button').not('.section a, a.current').not('.module.call-to-action .button');
	// links.mouseover( function() { $j(this).stop(); $j(this).animate( { backgroundColor:onColor }, 250 ); } );
	// links.mouseout ( function() { $j(this).stop(); $j(this).animate( { backgroundColor:offColor }, 250 ); } );
	// offColor = '#fb9f3e';
	// onColor = '#37895b';
	// links = $j('.tabs a').not('a.current');
	// links.mouseover( function() { $j(this).stop(); $j(this).animate( { backgroundColor:onColor }, 250 ); } );
	// links.mouseout ( function() { $j(this).stop(); $j(this).animate( { backgroundColor:offColor }, 250 ); } );
	$j('h1 a').roll( { speed:150 });
	
	// set up tabs
	var tabSettings = 
	{
		hideFunction: $j.fn.hide,
		hideArguments: [],
		showFunction: $j.fn.show,
		showArguments: []
	}
	$j('.tabs').tabs(tabSettings);
	
	
	// call to action panels
	$j('.module.call-to-action').callToActionPanel();
	
	
	// form fields
	$("#SearchForm_SearchForm_Search").focus(function(){
		if($("#SearchForm_SearchForm_Search").val()=="Search"){
			$("#SearchForm_SearchForm_Search").val("");
		}
	})
	$("#SearchForm_SearchForm_Search").blur(function(){
		if($("#SearchForm_SearchForm_Search").val()==""){
			$("#SearchForm_SearchForm_Search").val("Search");
		}
	})
	
	$("#Form_newsLetterForm_FirstName").focus(function(){
		if($("#Form_newsLetterForm_FirstName").val()=="Your Name"){
			$("#Form_newsLetterForm_FirstName").val("");
		}
	})
	$("#Form_newsLetterForm_FirstName").blur(function(){
		if($("#Form_newsLetterForm_FirstName").val()==""){
			$("#Form_newsLetterForm_FirstName").val("Your Name");
		}
	})
	
	$("#Form_newsLetterForm_Email").focus(function(){
		if($("#Form_newsLetterForm_Email").val()=="Your email address"){
			$("#Form_newsLetterForm_Email").val("");
		}
	})
	$("#Form_newsLetterForm_Email").blur(function(){
		if($("#Form_newsLetterForm_Email").val()==""){
			$("#Form_newsLetterForm_Email").val("Your email address");
		}
	})
	
})
})(jQuery);