var MenuOldY=-1;
var LizardOldY=50;
var MenuStyle;
var LizardStyle;
var MenuIntervall;
var canMenu=0;
var canLizard=0;

function ScrollAll() {
var y=0;
if (document.body.scrollTop) y=document.body.scrollTop;
if (window.pageYOffset) y=window.pageYOffset;
if ((canMenu>0) && (y!=MenuOldY)) {
 if (y>MenuOldY) MenuOldY=Math.round((MenuOldY+y)/2); else MenuOldY=y;
 MenuStyle.top=MenuOldY;
 }
y=y+10;
if (y<50) y=50;
if ((canLizard>0) && (y!=LizardOldY)) {
 LizardOldY=Math.round((LizardOldY+y)/2);
 LizardStyle.top=LizardOldY;
 }
MenuIntervall=setTimeout('ScrollAll()',150);
}

function InitScroll() {
var aDiv=document.getElementById("LizardDiv");
if (aDiv!=null) {
	LizardStyle=aDiv.style;
	if (document.body.offsetWidth) {if (document.body.offsetWidth>860) canLizard=1;}
	 else {if (screen.width>800) canLizard=1;}
	if (canLizard>0) LizardStyle.visibility="visible"; 	
	}
aDiv=document.getElementById("MenuDiv"); 	
if (aDiv!=null) {
	MenuStyle=aDiv.style; // MenuStyle.position="absolute"; MenuStyle.top=0; MenuStyle.left=0;
	canMenu=1;
 }
 if (canLizard+canMenu>0) ScrollAll();
}

if (document.getElementById) InitScroll();
