/* 
Title:		Build Scripts
*/

	/* Initiate scripts */
	$(document).ready(function(){
		/*$('.header fieldset input').emptyonclick();*/
		equalHeight($(".col"));
		if($.browser.msie) { // Rounded corners for ie
			DD_roundies.addRule('.aside h2', '6px'); 
			DD_roundies.addRule('.content1 .feature', '12px');
			DD_roundies.addRule('.results-body .featured', '12px');
		}
	});

	/* Equal Height Columns - http://www.cssnewbie.com/equal-height-columns-with-jquery/ */
	function equalHeight(group) { tallest = 0; group.each(function() { thisHeight = $(this).height();if(thisHeight > tallest) {tallest = thisHeight;}});group.height(tallest);}
	
	/* jQuery emptyonclick plugin - http://resources.madewithlove.be/javascripts/jquery/emptyonclick.html */
    jQuery.fn.extend({emptyonclick: function(options) {return this.each(function() {new jQuery.EmptyOnClick(this, options);});}});jQuery.EmptyOnClick = function(element, options) {var defaultValue = $(element).val();$(element).bind("focus", function(e) {if(defaultValue == $(this).val())$(this).val('');}).bind("blur", function(e) {if(!$(this).val()) {$(this).val(defaultValue);}});$("form:has(#"+element.id+")").bind('reset', function(e) {$(element).val(defaultValue);$(element).removeClass(options.changeClass);}) .bind('submit', function(e) {if($(element).val() == defaultValue)$(element).val('');});};
