i did alter innerY as much as i could btw and when i push it to 150 where hte top border ends i loose a bit of my menu

i think i might have to write an if statement and make a new variable but know theres another way to do this just altering the code so im gonna try to find that 4 hours into this project

ill figure it out in due time tho...
If any1 can glance over the code and maby give an idea i would really appreciate it cuz im slow and ill be on this for literally like another 12+ edit hours... heres the code im using below...
<html><head><title>Sticky Menu Bar</title>
<script language=javaScript>
function setVariables(){
y1=-50;ob=1;max=20 // this max sets the distance from the top of the page
if (navigator.appName == "Netscape") {
v=".top=";h=".left=";dS="document.";sD="";
y="window.pageYOffset";x="window.pageXOffset";iW="window.innerWidth";iH="wi ndow.innerHeight"
}
else {h=".pixelLeft=";v=".pixelTop=";dS="";sD=".style";
y="document.body.scrollTop";x="document.body.scrollLeft";iW="document.body. clientWidth";iH="document.body.clientHeight"
}
object="object1";
checkLocationA()
}
movex=0,movey=0,xdiff=0,ydiff=0,ystart=0,xstart=0
function checkLocation(){
// innerX=eval(iW)-115 // place to the right
innerX=21 // controls the horizontal from the left side of the page
// innerY=eval(iH)-35 // place at the bottom
innerY=120 // controls the verticle from the top of the page
if (document.layers){innerY-=10;innerX-=10}
yy=eval(y);
xx=eval(x);
ydiff=ystart-yy;
xdiff=xstart-xx;
if ((ydiff<(-0.01))||(ydiff>(0.01))) movey=Math.round(ydiff/10),ystart-=movey
if ((xdiff<(-0.01))||(xdiff>(0.01))) movex=Math.round(xdiff/10),xstart-=movex
N=(document.layers)?1:0
V=(N) ? 4:5
if (V==4){
object="object1"
eval(dS+object+sD+v+(ystart+innerY+10));
eval(dS+object+sD+h+(xstart+innerX+10));
//eval(dS + objectX + sD + v + y);
}
else{
object=document.getElementById('object1')
object.style.top=ystart+innerY
object.style.left=xstart+innerX
}
setTimeout("checkLocation()",10)}
function checkLocationA(){
ystart=eval(y)+1;
xstart=eval(x)+5;}
spread=1
function scrollOn(){
items=1
if (ob<=items){
objectX="object"+ob;
y1+=10;
N=(document.layers)?1:0
V=(N) ? 4:5
if (V==4){
eval(dS + objectX + sD + v + y1);}
else{
object=document.getElementById(objectX)
object.style.top=y1}
//eval(dS + objectX + sD + v + y);
if (y1<max) xx=setTimeout ("scrollOn()",20)
else y1=-50, max+=spread, ob+=1, xx=setTimeout("scrollOn()",20) // this max sets the spacing
}
if (ob>1){clearTimeout(xx);checkLocation();}
}
</script>
</HEAD>
<body onload="setVariables();scrollOn()" bgcolor="#eeeeee">
<table border="2" bordercolor="lawngreen" cellpadding="12" cellspacing="2" Width="100%">
<tr><td align="center" colspan="2">
<tr><td bordercolor="#7FFC00"; align="left" Width="17%" valign="top">
test<br>test
<CENTER>New and improved <B>Scroll On Sticky Menu</B><br><br>
The logo uses relative positioning<br><br>and it works with <B>Netscape Version 6</B>
</CENTER>
</tr></td>
<div id="object1" style="position:absolute; visibility:show; left:25px; top:-50px; z-index:2">
<a href="javascript
:void" >
<object cellpadding="100";
classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0"
width="143"
height="395">
<param name="BGCOLOR" value="#0">
<param name=movie value="irawr-flash-menu-vertical.swf">
<param name=quality value=high>
<embed src="irawr-flash-menu-vertical.swf"
quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash"
width="143"
height="395"
bgcolor="#0">
</embed>
</object>
</a></div>