function myFontSize(fontMod, setCookie)
{
	newFontSize = parseInt(document.getElementById("myBody").style.fontSize);
	newFontSize = newFontSize+fontMod;
	if (newFontSize > 20)
		newFontSize = 20;
	if (newFontSize < 6)
		newFontSize = 6;
	document.getElementById("myBody").style.fontSize=newFontSize+"px";
	if (setCookie != false)
		myCookie(newFontSize);
}
function myCookie(fontSize)
{
	document.getElementById("pIFrame").src = "_shared/p_cookie.php?cookieNameArray=fontSize&cookieValueArray="+fontSize;
}

function show(id)
{
	new Effect.BlindDown("answer_"+id, { duration: 1.0 });
	document.getElementById("link_"+id).href = "javascript: hide("+id+")";
}
function hide(id)
{
	new Effect.BlindUp("answer_"+id, { duration: 1.0 });
	document.getElementById("link_"+id).href = "javascript: show("+id+")";
}

var lastEventFunction;
function showHoverLayer(hoverLayer,sender)
{
	pos = Position.positionedOffset(sender);
	dim = Element.getDimensions(sender);
	
	Element.setOpacity(hoverLayer, 0.0);
	
	$(hoverLayer).style.display = "block";
	$(hoverLayer).style.top = pos[1]+"px";
	$(hoverLayer).style.left = pos[0]+dim.width+5+"px";

 	new Effect.Opacity(hoverLayer,
    { duration: 0.3, 
      transition: Effect.Transitions.linear, 
      from: 0.0, to: 0.8 });

	//Event.observe(sender, 'mousemove', lastEventFunction = function(event){ $(hoverLayer).style.top= Event.pointerY(event)+5+"px"; $(hoverLayer).style.left= Event.pointerX(event)+5+"px"; });	
}

function hideHoverLayer(hoverLayer,sender)
{
	new Effect.Opacity(hoverLayer,
    { 
    	afterFinish: function(obj) { $(hoverLayer).style.display = "none"; } ,
    	duration: 0.1, 
    	transition: Effect.Transitions.linear, 
    	from: 0.8, to: 0.0 });
      
	//Event.stopObserving(sender, 'mousemove', lastEventFunction);
}