<!--
/* 
	Floating Ad Library Version 1.00
	Last Updated: April 4, 2005
	Copyright 2005 by A. J. Michalik

	This file cannot be redistributed or sold as part of any package without 
	explicit consent from A. J. Michalik contacted through www.AndrewM.com
 
 	For more information on this library, see http://www.AndrewM.com/

	This library is provided AS IS WITHOUT WARRANTY OF ANY KIND AND ARE PROVIDED 
	WITHOUT ANY IMPLIED WARRANTY OF FITNESS FOR PURPOSE, MERCHANTABILITY, 
	OR NON-INFRINGEMENT. 

	Due to the variable nature of the different Internet Client Object Models there are
	no guarantees this library will work AS IS in future releases of any browser.

	Unless prior arrangements are made through www.AndrewM.com, this file must be
	referenced as an external script by your web-pages. See the instructions for more 
	details.
         
	Registering 

	This library can be used on your web site as long as you comply with the following requirements:
		1) The copyright notice and disclaimer must be maintained in the library file.
		2) You register your URL (or company with email address if non-public URL such as an intranet) 
		through the contact page at www.AndrewM.com. Please state if you DO NOT want your web-site or
		company listed as using this library (Your e-mail addresses will never be given out).
		3) You include a link back to www.AndrewM.com              

	Questions should be sent to A. J. Michalik contacted through www.AndrewM.com
	See http://www.AndrewM.com/ for more information.
  
	This comment must be maintained in the document unless prior arrangements are made 
	with A. J. Michalik contacted through www.AndrewM.com.
*/
function floatElement(n,i,f,r)
{
var p=646;
var s=(navigator.appName.indexOf("Netscape")!=-1);
f += s ? 22 : 0;
function v(j)
{
var g=e(j);
g.sP=function(x,y){this.style.left=x;this.style.top=y;};
g.x=p;
if(i)
g.y=f;
else{
g.y=s?pageYOffset+innerHeight:document.body.scrollTop+document.body.clientHeight;
g.y-=f;
}
return g;
}
window.floatTopLeft=function()
{
if(i){
var o=(s?pageYOffset:document.body.scrollTop) - 0;
var aa=s?document.height+2:document.body.scrollHeight;
var d=0;
o=Math.min(aa-600-r,o);
d=Math.max(o-a.y,f-a.y);
d=(d>0)?Math.max(parseInt(d/8),d):Math.min(parseInt(d/8),d);
a.y+=d;
}
else{
var o=s?pageYOffset+innerHeight:document.body.scrollTop+document.body.clientHeight;
a.y+=(o-Math.max(f-document.body.scrollTop,0)-a.y)/8;
}
a.sP(a.x,a.y);
setTimeout("floatTopLeft()",10);
}
a=v(n);
floatTopLeft();
}
function h(j){
var k=document;
var g=k.getElementById?k.getElementById(j):k.all?k.all[j]:k.layers[j];
return(g);
}
function e(j){
var g=h(j);
return(document.layers?g.style:g);
}
function y(){
if(document.all){ad=0;x=1;t=0;m="visible";l="hidden";}
else if(document.getElementById){ad=0;x=0;t=1;m="";l="hidden";}
else if(document.layers){ad=1;x=0;t=0;m="show";l="hide";}
}
function u(/*variable argument list*/)
{
var b=arguments;
this.left=b.length>2?b[0]:0;
this.top=b.length>2?b[1]:0;
this.width=b.length>2?b[2]:(b.length==0?0:b[0]);
this.height=b.length>2?b[3]:(b.length==0?0:b[1]);
}
function q(j){
var c=h(j);
var w=c.offsetLeft;
var z=c.offsetTop;
var ac=c.offsetHeight;
var ab=c.offsetWidth;
for(c=c.offsetParent;c!=null;c=c.offsetParent){
w+=c.offsetLeft;
z+=c.offsetTop;
}
return(new u(w,z,ab,ac));
}
// -->
