function $id(id) {
	return document.getElementById(id);
}
function nav_open(menu) {
	if ($id('lnav_' + menu).style.display == 'block')
		nav_close();
	else {
		nav_close();
		$id('lnav_' + menu).style.display = 'block';
	}
}
function nav_close() {
	eleUL = document.getElementsByTagName('ul');
	for (i=0; i<eleUL.length; i++)
		if (eleUL[i].id.indexOf('lnav_') != -1)
			eleUL[i].style.display = 'none';
}
function display(action, id) {
	alldivs = document.getElementsByTagName('div');
	for (i=0;i<alldivs.length;i++)
		if (alldivs[i].id.indexOf('subnav')==0)
			alldivs[i].style.display = 'none';

	document.getElementById("subnav"+id).style.display = (action == 'show') ? 'block' : 'none';
}
function fbs_click(u,t) {
	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}
$.noConflict();
jQuery(document).ready(function($) {
	$('#subscribe input[type=image]').click(function() {
		$('#email').val($('#subscribe input[type=text]').val());
		$('#f_subscribe').modal();
		return false;
	});
});

