/* 
Title:		Build Scripts

	Requires:
		
		
*/

	/* Initiate scripts */
	$(document).ready(function(){
		
		//$(".header .quick-search .text").emptyonclick();
		
	});
	
/* 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 - Created by Andreas Creten (andreas@madewithlove.be) on 2008-06-06. */
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('');});};	

/* Clickable Area - target & href location */
function clickableArea(target,href) {href = href + ":first a:first";$(target).click(function() {window.location = $(this).find(href).attr("href");});$(target).hover(function() {$(this).addClass("hover");},function() {$(this).removeClass("hover");});}
