var st,dw;
var fm,w;

function mpcheck() {

	if (document.documentElement.scrollTop!=st) {
		st = document.documentElement.scrollTop;
		fm.style.top = (st+145)+'px';
		//fm.style.top = (st+220)+'px';		
	}

	if (document.width!=dw) {
		dw = document.body.clientWidth;
		fm.style.left = (dw/2) + 130 +'px';
	}

}



function mponload() {

	st = document.documentElement.scrollTop;
	dw = document.body.clientWidth;
	fm = document.getElementById('layer1');
	w = fm.clientWidth;
 //alert (st);  

	fm.style.top = (st+145)+'px';
//		fm.style.top = (st+220)+'px';
// fm.style.left = (((dw-800)/2)-w)+'px';
	fm.style.left = (dw/2) + 130 +'px';

//	alert("levo " + fm.style.left);
	
	fm.style.visibility = 'visible';
	window.setInterval("mpcheck()",20);
}

if (window.attachEvent)
	window.attachEvent("onload",mponload);
else
	onload = mponload;

