﻿	function staticize(){
		var topPs;
		var LeftPs, clientHeight;
        var IMGTOP = document.getElementById("DivImageTop");
        
        if(self.innerHeight)
            clientHeight = self.innerHeight;
        else if(document.documentElement && document.documentElement.clientHeight)
            clientHeight =document.documentElement.clientHeight;

		topPs = eval(ietruebody().scrollTop + clientHeight -255) + "px";
		LeftPs = eval(ietruebody().scrollLeft + 777) + "px";
		
		IMGTOP.style.left = LeftPs;
		IMGTOP.style.top = topPs;
	}

	function ietruebody(){
        return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
    }

    if (window.addEventListener)
        window.addEventListener("scroll", staticize, false)
    else if (window.attachEvent)
        window.attachEvent("onscroll", staticize)
    else if (document.getElementById)
	    window.onscroll = staticize;
