function switchV(id)
{
	if ($(id).style.display == "none")
	{
		Effect.Appear($(id));
	}
	else
	{
		Effect.Fade($(id));
	}
}


var disableKeys = 0;

function toggleKeys(value)
{
	disableKeys = value;
}

function tellFriend(sh,offsetx,offsety)
{
	if (sh)
	{
		Effect.Appear($("tellAFriend"),{duration:0.5});
		
	    if( typeof( window.innerWidth ) == 'number' )
		{
	        myHeight = window.innerHeight;
	        myWidth  = window.innerWidth;
	        
	        $("tellAFriend").style.top  = parseInt(myHeight/2 - offsety) + 'px';
	    	$("tellAFriend").style.left = parseInt(myWidth/2 - offsetx) + 'px';
	    }
	    else
	    {
	        //IE 6+ in 'standards compliant mode'
	        myWidth  = document.documentElement.clientWidth;
	        myHeight = parseInt(document.documentElement.scrollTop) + offsety;
	        
	        $("tellAFriend").style.top  = myHeight + 'px';
	    	$("tellAFriend").style.left = parseInt(myWidth/2 - offsetx) + 'px';
	    }
	}
	else
	{
		Effect.Fade($("tellAFriend"),{duration:0.5});
	}
}