var $jQ = jQuery.noConflict();

$jQ(document).ready(function() {
    if ( $jQ("div.error").length > 0 ) {
        $jQ("div#ntsp_panel").css({'height': "270px"});
        $jQ("div.ntsp_panel_button").hide();
    }
	$jQ("div.ntsp_panel_button").click(function(){
		$jQ("div#ntsp_panel").animate({
			height: "270px"
		},"slow");
		$jQ("div.ntsp_panel_button").fadeOut("slow");
	});
    
    $jQ('input.defaultText').focus(function(){
        if ($jQ(this).val() == $jQ(this)[0].title)
        {
            $jQ(this).removeClass("defaultTextActive");
            $jQ(this).val("");
        }
    });

    $jQ("input.defaultText").blur(function()
    {
        if ($jQ(this).val() == "")
        {
            $jQ(this).addClass("defaultTextActive");
            $jQ(this).val($jQ(this)[0].title);
        }
    });
    
    $jQ("#fakepass").focus(function(){
        $jQ("#fakepass").hide();
        $jQ("#password").show();
        $jQ("#password").focus();
    });
    
    $jQ("#password").blur(function(){
        if ( $jQ("#password").val() == "" ) {
            $jQ("#password").hide();
            $jQ("#fakepass").show();
        }
    });
    

    $jQ('input.defaultText').blur();
    
    $jQ('#login').submit(function(){
        $jQ('input.defaultTextActive').not(':button, :submit, :reset, :hidden')
            .val('');
    });
});

