// JavaScript Document

front =
{
	init: function()
	{ 
		jQuery('#navigation li').hover(front.navigation.show,front.navigation.hide);
		jQuery('#follow_container #info').click(front.info);
		jQuery('#follow_container #rss').click(front.rss);
		jQuery('#follow_container #search').click(front.search_field);
		jQuery('#follow_container #facebook').click(front.face);
		jQuery('#follow_container #language').click(front.language);
		jQuery('#map').click(front.map);
	},
	
	navigation:
	{
		show: function () 
		{ 
			jQuery('.sub-menu', this).stop(true, true).delay(200).slideDown('fast');
		},
		hide: function () 
		{ 
			jQuery('.sub-menu', this).stop(true, true).delay(200).slideUp('fast');
		}
	},
	info: function () 
		{ 
			jQuery('#follow_container li span').hide();
			jQuery('#follow_container #info_span').show();
		},
	rss: function () 
	{ 
		jQuery('#follow_container li span').hide();
		jQuery('#follow_container #rss_span').toggle();
	},
	search_field: function () 
	{ 
		jQuery('#follow_container li span').hide();
		jQuery('#follow_container .search').toggle();
	},
	face: function () 
	{ 
		jQuery('#follow_container li span').hide();
		jQuery('#follow_container #facebook_span').toggle();
	},
	language: function () 
	{ 
		jQuery('#follow_container li span').hide();
		jQuery('#follow_container #language_span').toggle();
	},
	map: function () 
	{ 
		jQuery('#map_promp').toggle('fast');
	},

}
jQuery(document).ready
(
	function()
	{
		front.init();
	
	}	
);


