function getInfo()
{
	var url = 'ajax_handler/get_info.php?&id='+self.document.location.hash.substring(1);

	new Ajax.Request(url, {
	  method: 'get',
	  onSuccess: function(result)
	  {
			var info = result.responseText;
			 $('info').innerHTML = info;
	  }
	});
	
	showPathway();
	showComments();
	showGmap();
	showBottomMenu();
}

function showPathway()
{
	jQuery.post("/ajax_handler/get_pathway.php",
	{
		hash: 			self.document.location.hash.substring(1)
	},
	function(data)
	{		
		jQuery("#pathway").html(data);		
	});
}

function showBottomMenu()
{
	jQuery.post("/ajax_handler/get_bottom_menu.php",
	{
		hash			: self.document.location.hash.substring(1),
		login			: getCookie('login'),
		pass			: getCookie('pass')
	},
	function(data)
	{		
		jQuery("#bottom_menu").html(data);		
	});
}

function showComments()
{
	jQuery.post("/ajax_handler/get_comments.php",
	{
		hash: 			self.document.location.hash.substring(1)
	},
	function(data)
	{		
		jQuery("#comments").html(data);		
	});
}

function showGmap()
{
	jQuery.post("/ajax_handler/get_gmap.php",
	{
		hash: 			self.document.location.hash.substring(1)
	},
	function(data)
	{		
		eval(data);
	});
}
function getCookie(name) {
	var cookie = " " + document.cookie;
	var search = " " + name + "=";
	var setStr = null;
	var offset = 0;
	var end = 0;
	if (cookie.length > 0) {
		offset = cookie.indexOf(search);
		if (offset != -1) {
			offset += search.length;
			end = cookie.indexOf(";", offset)
			if (end == -1) {
				end = cookie.length;
			}
			setStr = unescape(cookie.substring(offset, end));
		}
	}
	return(setStr);
}
function view_areas() {
	jQuery('#all_areas').show('slow'); ci1();
}
var ct1;
function ci1()
{
	ct1 = setTimeout("j1()",3000);
}
function j1()
{
	jQuery('#all_areas').hide('slow');
}

function view_streets() {
	jQuery('#all_streets').show('slow'); ci2();
}
var ct2;
function ci2()
{
	ct2 = setTimeout("j2()",3000);
}
function j2()
{
	jQuery('#all_streets').hide('slow');
}

function view_stations() {
	jQuery('#all_stations').show('slow'); ci3();
}
var ct3;
function ci3()
{
	ct3 = setTimeout("j3()",3000);
}
function j3()
{
	jQuery('#all_stations').hide('slow');
}
