//positioning functions*************************************************************************************

function getAnchorWindowPosition(anchorname)
{

   var coordinates=getAnchorPosition(anchorname);
   var x=0;
   var y=0;

   if(document.getElementById)
   {
      if(isNaN(window.screenX))
      {
         //ie likes this
         this.x=coordinates.x;
         this.y=coordinates.y + 16; //added the px height of font to display directly under
      }
         else
      {
         this.x=coordinates.x;
         this.y=coordinates.y + 12; //added the px height of font to display directly under
      }
   }
}

function getAnchorPosition(anchorname)
{
   var useWindow=false;
   var coordinates=new Object();
   var x=0,y=0;
   coordinates.x=AnchorPosition_getPageOffsetLeft(document.getElementById(anchorname));
   coordinates.y=AnchorPosition_getPageOffsetTop(document.getElementById(anchorname));
   return coordinates;
}

function AnchorPosition_getPageOffsetLeft(el)
{
   var ol=el.offsetLeft;
   while((el=el.offsetParent) != null)
   {
      ol += el.offsetLeft;
   }
   return ol;
}

function AnchorPosition_getWindowOffsetLeft(el)
{
   return AnchorPosition_getPageOffsetLeft(el)-document.body.scrollLeft;
}
	
function AnchorPosition_getPageOffsetTop(el)
{
   var ot=el.offsetTop;
   while((el=el.offsetParent) != null)
   {
      ot += el.offsetTop;
   }
   return ot;
}

function AnchorPosition_getWindowOffsetTop(el)
{
   return AnchorPosition_getPageOffsetTop(el)-document.body.scrollTop;
}
function roll_over(img_name, img_src)
  		 {
  		 	document[img_name].src = img_src;
 		  }

