jQuery(document).ready(function($){
    
	jQuery("select").uniform({width: "133px"});
    
    /**
     * Telmo 2010-04-22 set the content and sidebar height to be the same
     */
    var content_height = jQuery('#content').outerHeight(true);
    var sidebar_height = jQuery('#sidebar').outerHeight(true);
    if( content_height < sidebar_height ) {
        jQuery('#content').height( sidebar_height - 45 ); /* 45 is the content and sidebar div paddings for firefox */
    }
    
	// placeholder script
    if(!Modernizr.input.placeholder){
        jQuery("input").each(
            function(){
                $this = jQuery(this);
                if(($this.val() == "" || $this.val() == $this.attr("placeholder")) && $this.attr("placeholder") != ""){
                    $this.val( $this.attr("placeholder") );
                    $this.focus(function(){
                        $this = jQuery(this);
                        if( $this.val() == $this.attr("placeholder") ){
                            $this.val("");
                        }
                    });
                    $this.blur(function(){
                        $this = jQuery(this);
                        if( $this.val() == "" ){
                            $this.val( $this.attr("placeholder") );
                        }
                    });
                }
            }
        );
    }
    


});

