if(ie==1)
{ document.onmousemove=scroll_joinfloat;
}
else if(ns6==1)
{ document.onmousemove=scroll_joinfloat;
}
else if((mz7==1)||(ns4==1)||(ns7==1))
{ document.captureEvents(Event.MOUSEMOVE);
  document.onmousemove=scroll_joinfloat;
}

var doscroll=false;
var avail_xx=0;
var avail_yy=0;
var joinlyr_width=200;
var content_width=782;
var scroll_xx=0;
var scroll_yy=0;

function getdims()
{ if (self.innerHeight) // all except Explorer
  {	avail_xx=self.innerWidth;
  	avail_yy=self.innerHeight;
  }
  else if (document.documentElement && document.documentElement.clientHeight)	// Explorer 6 Strict Mode
  {	avail_xx=document.documentElement.clientWidth;
  	avail_yy=document.documentElement.clientHeight;
  }
  else if (document.body) // other Explorers
  {	avail_xx=document.body.clientWidth;
  	avail_yy=document.body.clientHeight;
  }
  //alert(avail_xx);
  if(avail_xx>1200)
  { document.getElementById('join_floatLyr').style.visibility='visible';
  	var bodyposition = document.getElementById('header').style.left;
    document.getElementById('join_floatLyr').style.left=bodyposition;
    //document.getElementById('join_floatLyr').style.left=Math.floor(content_width+((avail_xx-content_width)/2));
    doscroll=true;
    scroll_joinfloat();
  }
  else
  { document.getElementById('join_floatLyr').style.visibility='hidden';
    document.getElementById('join_floatLyr').style.left=0;
    doscroll=false;
  }  
}

function scroll_joinfloat()
{ if(doscroll)
  { if(document.layers)
    { scroll_xx=window.pageXOffset;
      scroll_yy=window.pageYOffset;
    }
    else if(document.all)
    { scroll_xx=document.body.scrollLeft;
      scroll_yy=document.body.scrollTop;
    }
    else
    { scroll_xx=window.pageXOffset;
      scroll_yy=window.pageYOffset;
    }
    if(scroll_yy<170){scroll_yy=170;}
    document.getElementById('join_floatLyr').style.top=scroll_yy+40;  
  }
}
