var bodyLayer; var menuLayer; var serviceLayer; var serviceOldTop=-1; //} else { // bodyLayer = window.document.Body; // serviceLayer = window.document.Body.document.BottomServices; // serviceOldTop = serviceLayer.clip.top; //} function MoveBottomServices() { if( document.all && serviceLayer!=null) { serviceHeight=serviceLayer.offsetHeight; serviceBottom=serviceLayer.offsetTop+serviceHeight+bodyLayer.offsetTop; bodyBottom=bodyLayer.offsetTop+bodyLayer.offsetHeight; windowHeight=document.body.clientHeight; //Start Rohini 15 feb 07 //Condition to check whether Menu is used in document or not if(menuLayer) { menuBottom=menuLayer.offsetTop+menuLayer.offsetHeight; //Start Rohini 07-09-06 var Bottoms=1; var diff1=0; // To get the maximum height and accordingly set the serviceLaye.style.top value if (menuBottom > bodyBottom) { Bottoms=menuBottom; diff1=menuBottom-bodyBottom; if(Bottoms>windowHeight) { serviceLayer.style.top=diff1+15; } else { serviceLayer.style.top=windowHeight-bodyBottom+5; } } else { Bottoms=bodyBottom; if(Bottoms>windowHeight) { serviceLayer.style.top=5; } else { serviceLayer.style.top=windowHeight-bodyBottom+5; } } //end Rohini 08-09-06 } else { if(bodyBottom