<!--

	function init()
	{
	}	

	function addFavs()
	{
		var url=document.location.href;
		var title=document.title;
		if (document.all) {
			// i.e.
			window.external.AddFavorite(url, title);
		} else if (window.sidebar) {
			// ns6 & mozilla
			window.sidebar.addPanel(title, url, "");
		}
	}

	function setAsHomepage(id)
	{
		if (document.all) { //i.e.
			document.getElementById(id).style.behavior="url(#default#homepage)";
			document.getElementById(id).setHomePage("http://www.pokerface.co.il");
		}
		else { // all other browsers: ns6, ff etc...
			alert("To set a homepage in Netscape or Mozilla browsers drag the link to the \"Home\" button.");
		}
	}
			
	function moveMenu(mainid, subid, dir)
	{
    //alert(document.body.currentStyle.direction);
    if (dir == "right")
    {
		for (el = document.getElementById(mainid), left=0; el.tagName != "BODY";  el=el.offsetParent)
			left += el.offsetLeft;
		right = document.body.scrollWidth - left - document.getElementById(mainid).offsetWidth;
		document.getElementById(subid).style.right = right;
    }
    else
    {
		for (el = document.getElementById(mainid), left=0; el.tagName != "BODY";  el=el.offsetParent)
			left += el.offsetLeft;
      //alert(left);
      document.getElementById(subid).style.left = left;
    }
	}
function getTheLeft()
{
	var l=0;
	l=document.body.offsetWidth; //get width of window according to resolution
	l-=740; // take off width of outer table
	l/=2; // devide by 2 to get left position of outer table
	return l;
}
  
//-->