function popX()
{
  return ( document.body.offsetWidth?document.body.offsetWidth:document.body.style.pixelWidth ) - 360;
}

function popY()
{
  var top = 10;
  if( navigator.appName == 'Netscape' ) 
  {
  	if( parseFloat(navigator.appVersion) >= 5 ) 
  	{ 
  	  top = ( document.body.scrollTop>=0?document.body.scrollTop+10:event.clientY+10 ); 
  	}
  }
  else
  {
    top = (document.body.scrollTop >= 0 ? document.body.scrollTop+10:event.clientY+10);
  	if( ( event.clientX > popX() ) && ( event.clientY < 310 ) ) 
  	{
  		top = (document.body.scrollTop?document.body.scrollTop:document.body.offsetTop) + event.clientY + 20;
  	}
  }

  return top;
}

function onLoading()
{
  preloadImages( "images/poptip.gif" );
  window.status = "Hover over a title or graph for help";
}

function preloadImages() 
{ 
  var d=document; 
  if(d.images)
  { 
    if(!d.ar_p) d.ar_p=new Array();
    
    var i,j=d.ar_p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0)
    { 
      d.ar_p[j]=new Image; d.ar_p[j++].src=a[i];
    }
 }
}

var pt=[
"Name of the Image advertisements.",
"Name of the Text advertisements.",
"Click to view the Image advertisement.",
"Click to view the Text advertisement.",
"Click to edit the Image advertiesment",
"Click to edit the Text advertisement.",
"The image file that needs to be uploaded.",
"Only active adverts can be viewed by the affiliates.",
"Affiliate log in username.",
"The affiliate's website, where your advertisement(s) will be placed.",
"Click to view and add new payouts.",
"Click below to edit the affiliate's details.",
"Click below to delete an affiliate.",
"Affiliate's email address.",
"Affiliate's telephone number.",
"Affiliate's postal address.",
"Affiliate's website url.",
"Name of the advertisement.",
"Anchor text is the visible hyperlinked text on a page.",
"The number of impressions logged by an affiliate.",
"The number of clicks logged by an affiliate.",
"The number of sales produced by an affiliate.",
"The total value of the sales.",
"The amount of commission earned.",
"The amount that has been paid to an affiliate for the selected period.",
"The number of impressions logged through an advertisement.",
"The number of clicks logged through an advertisement.",
"The number of sales produced through an advertisement.",
"The affiliate's website.",
"Click to view the selected advertisement.",
"The total number of impressions logged.",
"The total number of clicks logged.",
"The total number of sales logged.",
"The average number of click-throughs per hundred ad impressions, expressed as a percentage.<br> The CTR measures the percentage of visitors to a site who clicked on an ad to arrive at the destination site.",
"The average number of sales per hundred clicks, expressed as a percentage.",
"Contact email address.",
"Contact telephone number.",
"Postal address.",
"The website where the advertisements will be placed.",
"Log in username.",
"The period(month) in with the commission was earned.<br><br>Click to edit the payout.",    
"The amount paid out for the specific period.",  
"The total amount of commission earned for the specific month.",
"Commission category breakdown.",
"The % commission earned breakdown.",
"The currency the sale was made in.",
"The rate at which the commission was calculated.",
"The currency the commissione was paid out in.",
"The logo that will be used on the affiliate front-end, after the affiliate has logged in the Quirk logo will be replaced by the client logo.",
"The sum of commission earned minus payout.",
"Please add http:// to your landing page.",
"Total number of registered visitors/customers for the selected date period.",
"Non-Processed sales include sales with status: Arrears, Failed, Vetted, New or Bad.",
"The remote URL where the image(s) will be served from, please include the protocol (http://).",
];
