// Provided by Lisham.com
<!--
function fbs_click(u,t)
{
	//u=location.href;
	//t=document.title;
	//alert(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;
}


function hide_text(id)
{
	var el = document.getElementById(id);
	if(el.style.display=='none')
	{
		el.style.display= 'block';
	}
	else
	{
		el.style.display= 'none';
	}
}

function getCookieVal (offset)
{
	var endstr = document.cookie.indexOf (";", offset);
	if (endstr == -1)
		endstr = document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name)
{
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	while (i < clen)
	{
		var j = i + alen;
		if (document.cookie.substring(i, j) == arg)
			return getCookieVal (j);
		i = document.cookie.indexOf(" ", i) + 1;
		if (i == 0) break; 
	}
	return null;
}

function SetCookie (name, value, expires)
{
	var argv = SetCookie.arguments;
	var argc = SetCookie.arguments.length;
	var expires = (argc > 2) ? argv[2] : null;
	//var path = (argc > 3) ? argv[3] : null;
	//var domain = (argc > 4) ? argv[4] : null;
	//var secure = (argc > 5) ? argv[5] : false;
	document.cookie = name + "=" + escape (value) +
		((expires == null) ? "" : ("; expires=" + expires.toGMTString()));
}

function DeleteCookie (name)
{
	var exp = new Date();
	exp.setTime (exp.getTime() - 1);
	var cval = GetCookie (name);
	document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}

function showMenu(menuName, eventObj)
{
	if(document.layers)
	{
		x = 0;
		y = 0;
		menuTop = y + 10;
		eval('document.layers["'+menuName+'"].top="'+menuTop+'"');
		eval('document.layers["'+menuName+'"].left="'+x+'"');
		/* alert('Message from ' + window.name + ': Hello, World.'); */
	}
	/* document.getElementById(menuName).style.top=5; */
	eventObj.cancelBubble = true;
	if(changeObjectVisibility(menuName, 'visible'))
	{
		return true;
	}
	else
	{
		return false;
	}
}

function hideMenu(menuName, eventObj)
{
	eventObj.cancelBubble = true;
	if(changeObjectVisibility(menuName, 'hidden'))
	{
		return true;
	}
	else
	{
		return false;
	}
}

function hideAllMenus()
{
	theDivsGroups = document.getElementsByTagName('div');
	divNumbers = theDivsGroups.length;
	//alert(divNumbers);
	for(i = 0; i < divNumbers; i++)
	{
		//if((theDivsGroups[i].id != 'myPage') && (theDivsGroups[i].id != 'news') && (theDivsGroups[i].id != 'sendmsg'))
		if(theDivsGroups[i].id.search('HH_') != -1)
		{
			//alert(theDivsGroups[i].id);
			changeObjectVisibility(theDivsGroups[i].id, 'hidden');
		}
		//alert(theDivsGroups[i].id);
		//changeObjectVisibility(theDivsGroups[0].id, 'hidden');
	}
	/*
	for(counter = 1; counter <= numMenus; counter++)
	{
		changeObjectVisibility('activeMenu'+counter, 'hidden');
	}
	*/
}

function getStyleObject(objectId)
{
	// cross-browser function to get an object's style object given its id
	if(document.getElementById && document.getElementById(objectId))
	{
		// W3C DOM
		return document.getElementById(objectId).style;
	}
	else if (document.all && document.all(objectId))
	{
		// MSIE 4 DOM
		return document.all(objectId).style;
	}
	else if (document.layers && document.layers[objectId])
	{
		// NN 4 DOM.. note: this won't find nested layers
		return document.layers[objectId];
	}
	else
	{
		return false;
	}
} // getStyleObject

function changeObjectVisibility(objectId, newVisibility)
{
	// get a reference to the cross-browser style object and make sure the object exists
	var styleObject = getStyleObject(objectId);
	if(styleObject)
	{
		styleObject.visibility = newVisibility;
		return true;
	}
	else
	{
		//we couldn't find the object, so we can't change its visibility
		return false;
	}
} // changeObjectVisibility

-->