
function k7_nsposition(bh)
{
	if(ns4==true)
	{
	wh = window.innerHeight ;
	np = eval(wh-bh)
	document.layer2.top= np;	}
//	if(window.addEventListener)        
//        document.addEventListener('DOMMouseScroll', moveObject, false);  
	//document.onscroll = moveObject; 
}

function k7_nspositionb(bh)
{
	if(ns4==true)
	{
	    wh = window.innerHeight ;
	    np = eval(wh-bh)
	    document.layer2.top= np;
	    location.reload()	
	}
}

function k7_ieposition()
{
if(ie){
document.getElementById("layer2").style.top = null
document.getElementById("layer2").style.bottom = 0}

}

function moveObject(event) 
{    
  var currPos=document.getElementById('layer2').offsetTop;
  var scrOfX = 0, scrOfY = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    //Netscape compliant
    scrOfY = window.pageYOffset;
    scrOfX = window.pageXOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    //DOM compliant
    scrOfY = document.body.scrollTop;
    scrOfX = document.body.scrollLeft;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    //IE6 standards compliant mode
    scrOfY = document.documentElement.scrollTop;
    scrOfX = document.documentElement.scrollLeft;
  }

  currPos=parseInt(currPos);       
  document.getElementById('layer2').style.top = currPos + "px";  
}
