<!--
$(document).ready(function() 
{	$("img#loader").hide();
	$("#message").focus(function() { $(this).html(""); });
	
    $("input#sendButton").click(function()
	{

	$.post("index.php?module=Contact&type=ajax", { contact: escape($("#contact").val()), message: escape($("#message").val()) },
  		function(xml)
		{
			if($(xml).find("contact").text() == 1)
				$("div#info").html("Wiadomość została poprawnie wysłana.");
			else
				$("div#info").html("Wystąpił błąd podczas wysyłania wiadomości, spróbuj jeszcze raz.");
			$("img#loader").hide();
  		}, "xml");
	$("div#info").html("Trwa wysyłanie...");
	$("img#loader").show();
	});
    return false;
});
$("#formularz").html('<table cellpadding="0" cellspacing="0" class="flat"><tr><td>Wiadomość:</td></tr><tr><td><textarea id="message" rows="5" cols="50">Wpisz tutaj wiadomość...</textarea></td></tr><tr><td>&nbsp;</td></tr><tr><td>E-mail lub telefon kontaktowy:</td></tr><tr><td><input id="contact" type="text" style="width:150px;" /></td></tr><tr><td>&nbsp;</td></tr><tr><td><input type="button" id="sendButton" value="Wyślij" /></td></tr><tr><td>&nbsp;</td></tr><tr><td><img id="loader" src="images/ajax-loader.gif" mce_src="images/ajax-loader.gif" /><div id="info"></div></td></tr></td></tr></table>');
// -->
