/* 
Title:		Build Scripts

	Requires:
		dd-roundies.js
		jquery.carousellite.js
		
*/

	/* Initiate scripts */
	$(document).ready(function(){
		
		if($(".featured-jobs li").size() > 3) {
            $(".featured-jobs .inner").jCarouselLite({  // Carousel
                btnNext: ".next",
                btnPrev: ".prev"
            });
            $(".prev, .next").show(); // show paging controls
        }

		/*$(".quick-search .text").emptyonclick();*/
		
		if($.browser.msie) { // Rounded corners for ie
			DD_roundies.addRule('.btn1, .btn2', '10px');
			
		}
	});

	/* 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");});}
