
$(document).ready(function(){

	var forms = $('form').get();
	for (var i in forms) {
		var form = forms[i];
		$("input.send", form).bind('click', function(e){
			console.log('submit?');
			submitForm(this);
		});
	}

	$("a.link").bind("click", function(e) {
		$("div#rmap").removeClass("divmapb");
	if ($(this).hasClass("pmap")) {
		$("div.divmap").slideDown('slow');
		$(this).removeClass("pmap");
		$(this).addClass("pmap_up");
}

else {
		$("div.divmap").slideUp('slow');
		$(this).removeClass("pmap_up");
		$(this).addClass("pmap");

}

	})



});

$.postJSON = function(url, data, callback) {
	$.post(url, data, callback, "json");
};
