

$("#ajax_overlay").css('width', '500px' );
$("#ajax_overlay").data("overlay").load();
$("#ajax_overlay").html("<div class=\"close\" onclick=\"$(\'#ajax_overlay\').overlay().close();\"><\/div><div class=\"boxes\">\n		<div class=\"title\">\n			<h3>Contact the Wertago Team<\/h3>\n		<\/div>\n		<div class=\"info\" id=\"feedback_form\">\n			<script type=\"text/javascript\"> \n				function check_form (email, comment) {\n					var bad = 0;\n					var bad_chars_regexp = /[,()[];:<>]|(\\.\\.)|\\.@| /gi;\n					if (email.match(bad_chars_regexp) != null) { bad=1; }\n					else if (email.indexOf(\'@\') < 1) { bad=1; }\n					else if (email.split(\'@\').length != 2) { bad=1; }\n					else if (comment.length < 2) { bad=2; }\n					if (bad == 1) {\n						alert(\"Invalid email address:\\n\"+email+\"\\nPlease enter a valid email.\");\n						return false;\n					} else if (bad == 2) {\n						alert(\"Please leave a substantive comment.\");\n						return false;\n					}\n					return true;\n				}\n			<\/script> \n		  <form action=\"/feedbacks/create\" class=\"overlay_form ajaxForm\" id=\"feedback_form\" onsubmit=\"check_form($(\':input#email\').val(), $(\':input#comment\').val());\"> \n			  <table> \n			    <tr> \n			      <td class=\"label\">Name<\/td> \n			      <td><input id=\"name\" name=\"name\" type=\"text\" value=\"\" /><\/td> \n			    <\/tr> \n			    <tr> \n			      <td class=\"label\">Email<\/td> \n			      <td><input id=\"email\" name=\"email\" type=\"text\" value=\"\" /><\/td> \n			    <\/tr> \n			    <tr> \n			      <td class=\"label\">Type<\/td>\n			      <td> \n			        <select name=\"type\">\n			          <option value=\"advertise\">Advertise<\/option> \n			          <option value=\"bug report\">Bug Report<\/option> \n			          <option value=\"comment\">Comment / Question<\/option> \n			          <option value=\"owner/promoter\">Owner / Promoter<\/option> \n			          <option value=\"feature\">Suggestion / Feature Request<\/option> \n			          <option value=\"venue\">Venue Request<\/option> \n			        <\/select> \n			      <\/td> \n			    <\/tr> \n			    <tr valign=\"top\"> \n			      <td class=\"label\" style=\"vertical-align: top;\">Message<\/td> \n			      <td> \n			        <textarea id=\"comment\" name=\"comment\" rows=\"8\" cols=\"40\"><\/textarea> \n			      <\/td> \n			    <\/tr> \n			  <\/table>\n	      <input type=submit class=\"submit\" value=\"Submit\"/> \n			<\/form> \n		<\/div> \n<\/div>\n");
$("#ajax_overlay").bind("onClose",  
	function(event) {
		 
	});
ajaxLinks();
