$( document ).ready( function () {

    $.fn.search = function() {
        return this.focus(function() {
            if( this.value == this.defaultValue ) {
                this.value = "";
            }
        }).blur(function() {
            if( !this.value.length ) {
                this.value = this.defaultValue;
            }
        });
    };
    
    $('a.new-window').click(function(){
		window.open(this.href);
		return false;
	});
	
    $('#loading').css('display','block');
    
    // $(".bottomBlock").makeFloat({x:"current",y:($(window).height()-85),speed:"fast"});
    
    
    // $.event.add(window, "resize", bottom);
});

// function bottom() {
//     // alert($(window).height());
//     $(".bottomBlock").makeFloat({x:"current",y:($(window).height()-85),speed:"fast"});
// }
    

$(window).load(function() {
    $('#loading').fadeOut("slow"); 
});
