// JavaScript Document
GxG1 = '<a href="http://www.njga.gov.cn/www/njga/wsgafj/fjdh.htm" target="_blank"><img src="images/jws-fj.jpg" width="107" height="217" alt="" border="0" /></a>';
GxG2 = '<a href="gsgg-mb_a39100429473.htm" target="_blank"><img src="images/pf0430.jpg" width="107" height="217" alt="" border="0" /></a>';
GxG3 = '<a href="http://t.sina.com.cn/njga" target="_blank"><img src="images/ga_wb.jpg" width="107" height="217" alt="" border="0" /></a>';
GxG4 = '<a href="http://218.94.123.30/www/gat/vote/poll.jsp?tid=6" target="_blank"><img src="images/ga_dcwj.jpg" width="107" height="217" alt="" border="0" /></a>';
Four();
function Four() {
    document.write('<div id="Gx1" style="left:5px;position:absolute;top:69px;"><a href="#" onclick="Close();"><img border="0" width="107" height="20" src=" images/close.gif" /></a><br> ' + GxG1 +'  </div>');
    document.write('<div id="Gx2" style="right:5px;position:absolute;top:69px;"><a href="#" onclick="Close();"><img border="0" width="107" height="20" src=" images/close.gif" /></a><br>' + GxG2 +'</div>');
	document.write('<div id="Gx3" style="left:5px;position:absolute;top:336px;"><a href="#" onclick="Close();"><img border="0" width="107" height="20" src=" images/close.gif" /></a><br>' + GxG3 +'</div>');
	document.write('<div id="Gx4" style="right:5px;position:absolute;top:336px;"><a href="#" onclick="Close();"><img border="0" width="107" height="20" src=" images/close.gif" /></a><br>' + GxG4 +'</div>');


    var obj1 = document.getElementById('Gx1');
    var obj2 = document.getElementById('Gx2');
	var obj3 = document.getElementById('Gx3');
	var obj4 = document.getElementById('Gx4');
	
    this.Close = function() {
        obj1.style.display = 'none';
        obj2.style.display = 'none';
		obj3.style.display = 'none';
		obj4.style.display = 'none';
    };
    var lastScrollY = 0;
    this.Show = function() {
        var diffY;
        if (document.documentElement && document.documentElement.scrollTop) {
            diffY = document.documentElement.scrollTop;
        } else if (document.body) {
            diffY = document.body.scrollTop;
        };
        var percent = .1 * (diffY - lastScrollY);
        if (percent > 0) percent = Math.ceil(percent);
        else percent = Math.floor(percent);
        obj1.style.top = parseInt(obj1.style.top) + percent + "px";
        obj2.style.top = parseInt(obj2.style.top) + percent + "px";
		obj3.style.top = parseInt(obj3.style.top) + percent + "px";
		obj4.style.top = parseInt(obj4.style.top) + percent + "px";
        lastScrollY = lastScrollY + percent;
    };
    window.setInterval("this.Show()", 1);
};
