Some Basic Javascript Problem

Hello everyone,

Im new to javascript&jquery and im trying to implement a new form of contact.

The page is this one:

http://gritodarua.com/new/

The javascript code im using:

var showingContact = false;

//setButtons
$("a[rel=contact]").click(openContact);

//setContact
//$("#form .close").click(closeContact);

function openContact(){
if(showingContact) return;
showingContact = true;
$("div#contact").css({display:"block", top:-700});
$("div#contact").stop().animate({top:formY},800,"easeOutQuint");
}

It wont aplly the css to the div or animate when i click on the link, someone have an ideia?

Thank you

The following variable highlighted in red is undefined, simply create this or set the value within the object.

$("div#contact").stop().animate({top:[B][COLOR=#ff0000]formY[/COLOR][/B]},800,"easeOutQuint");

Thank you very much!

Functioned like a charm!