
function display_share(quote, story, relx, rely )
{
  if (typeof document.getElementById == "undefined") 
  { 
	return; 
  }
  var quoteobj=document.getElementById(quote); 
  var storyobj=document.getElementById(story);   
  var position=getPosition_share(storyobj);

  quoteobj.style.left=position[0]+relx+"px";  
  quoteobj.style.top=position[1]+rely+"px";

  quoteobj.style.display="block";   
  quoteobj.style.visibility="visible";
}

function hide_share(quote, story )
{
  if (typeof document.getElementById == "undefined") 
  {  
	return;  
  }
  var quoteobj=document.getElementById(quote); 
  var storyobj=document.getElementById(story);

  quoteobj.style.display="block"; 
  quoteobj.style.visibility="hidden";
}

function getPosition_share(pelement)
{
 var positionx=0; 
 var positiony=0;
 while (pelement!=null) 
 { 
	positionx=positionx+pelement.offsetLeft; 
	positiony=positiony+pelement.offsetTop; 
	pelement=pelement.offsetParent; 
 }
 return [positionx,positiony];
}


