floatX=-350; // HORIZONTAL POSITION
floatY=141; // VERTICAL POSITION
align="center"; // SET TO left, center OR right (small characters)
valign="middle"; // SET TO top, center OR bottom (small characters)
delayspeed=8; // Set to 0 for instant update of the layers position. Otherwise set to 1-10.

IE4=(document.all);
NS4=(document.layers);

function scrolling() {

if (NS4) {
    if (lastX==-1 || delayspeed==0)
    {
     lastX=window.pageXOffset + floatX;
     lastY=window.pageYOffset + floatY;
    }
    else
    {
     dx=Math.abs(window.pageXOffset+floatX-lastX);
     dy=Math.abs(window.pageYOffset+floatY-lastY);
     d=Math.sqrt(dx*dx+dy*dy);
     c=Math.round(d/10);
     if (window.pageXOffset+floatX>lastX) {lastX=lastX+delayspeed+c;}
     if (window.pageXOffset+floatX<lastX) {lastX=lastX-delayspeed-c;}
     if (window.pageYOffset+floatY>lastY) {lastY=lastY+delayspeed+c;}
     if (window.pageYOffset+floatY<lastY) {lastY=lastY-delayspeed-c;}
    }
    document.layers['floatlayer'].pageX = lastX;
    document.layers['floatlayer'].pageY = lastY;
}
else if (IE4){
    if (lastX==-1 || delayspeed==0)
    {
     lastX=document.body.scrollLeft + floatX;
     lastY=document.body.scrollTop + floatY;
    }
    else
    {
     dx=Math.abs(document.body.scrollLeft+floatX-lastX);
     dy=Math.abs(document.body.scrollTop+floatY-lastY);
     d=Math.sqrt(dx*dx+dy*dy);
     c=Math.round(d/10);
     if (document.body.scrollLeft+floatX>lastX) {lastX=lastX+delayspeed+c;}
     if (document.body.scrollLeft+floatX<lastX) {lastX=lastX-delayspeed-c;}
     if (document.body.scrollTop+floatY>lastY) {lastY=lastY+delayspeed+c;}
     if (document.body.scrollTop+floatY<lastY) {lastY=lastY-delayspeed-c;}
    }
    document.all['floatlayer'].style.posLeft = lastX;
    document.all['floatlayer'].style.posTop = lastY;
}	
    setTimeout('scrolling()',50);
}

function define()
{
 if (NS4) 
 {  
  if (align=="left") {floatX=ifloatX}; 
  if (align=="right") {floatX=window.innerWidth-ifloatX};
  if (align=="center") {floatX=Math.round((window.innerWidth/2)-ifloatX)};
  if (valign=="top") {floatY=ifloatY}   
  if (valign=="bottom") {floatY=window.innerHeight-ifloatY};
  if (valign=="center") {floatY=Math.round((window.innerHeight/2)-ifloatY)};
 }
 if (IE4) 
 {
 if (align=="left") {floatX=ifloatX}; 
 if (align=="right") {floatX=document.body.offsetWidth-ifloatX}
 if (align=="center") {floatX=Math.round((document.body.offsetWidth/2)-ifloatX)}
 if (valign=="top") {floatY=ifloatY} 
 if (valign=="bottom") {floatY=document.body.offsetHeight-ifloatY}
 if (valign=="center") {floatY=Math.round((document.body.offsetHeight/2)-ifloatY)}
 }
}
 function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);



 function initFloatLayer() 
{
document.all["floatlayer"].style.visibility='visible';
}

function closeFloatLayer() 
{
document.all["floatlayer"].style.visibility='hidden';
}



//******************************CREATE LAYER*******************************
document.write('<body onload=initFloatLayer();>');
if (NS4) {document.write('<LAYER NAME="floatlayer" LEFT="'+floatX+'" TOP="'+floatY+'">');}
if (IE4) {document.write('<div id="floatlayer" style="position:absolute; left:'+floatX+'; top:'+floatY+';">');}

//***************************** PUT CONTENT HERE********************************************
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="140" height="480">');
document.write('<param name="movie" value="banner02.swf">');
document.write('<param name="quality" value="high">');
document.write('<param name="menu" value="false">');
document.write('<embed src="banner02.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="140" height="480"></embed>');
document.write('<param name="wmode" value="transparent">');
document.write('</object>');

if (NS4) {document.write('</LAYER>');}
if (IE4) {document.write('</DIV>');}
ifloatX=floatX;
ifloatY=floatY;
define();
window.onresize=define;
lastX=-1;
lastY=-1;
scrolling();
//*******************************************End Layer****************************************