floatX=100;
floatY=85;
layerwidth=195;
layerheight=201;
halign="center";
valign="top";
projectOffset = 120;

NS6=false;
IE4=(document.all);
if (IE4) {
	floatY=87;
} else {
	NS6=(document.getElementById);
}
NS4=(document.layers);

function reAdjustFltLayer() {
	if ((NS4) || (NS6)) {
	
		lastX=window.pageXOffset + floatX - projectOffset;
		lastY=window.pageYOffset + floatY;
	
		if (NS4){
			document.layers['miniFltLayer'].pageX = lastX;
			document.layers['miniFltLayer'].pageY = lastY;
		}
		if (NS6){
		document.getElementById('miniFltLayer').style.left=lastX+'px';
		document.getElementById('miniFltLayer').style.top=lastY+'px';
		}
		
	} else if (IE4) {
	
		lastX=document.body.scrollLeft + floatX - projectOffset;
		lastY=document.body.scrollTop + floatY;
	
		document.all['miniFltLayer'].style.posLeft = lastX;
		document.all['miniFltLayer'].style.posTop = lastY;
	}	
	setTimeout('reAdjustFltLayer()',50);
}

function reDefineFltLayer() {
	if ((NS4) || (NS6)) { 
		if (halign=="left") {floatX=ifloatX};
		if (halign=="right") {floatX=window.innerWidth-ifloatX-layerwidth-20};
		if (halign=="center") {floatX=Math.round((window.innerWidth-20)/2)-Math.round(layerwidth/2)};
		if (valign=="top") {floatY=ifloatY};
		if (valign=="bottom") {floatY=window.innerHeight-ifloatY-layerheight};
		if (valign=="center") {floatY=Math.round((window.innerHeight-20)/2)-Math.round(layerheight/2)};
	}
	if (IE4) {
		if (halign=="left") {floatX=ifloatX};
		if (halign=="right") {floatX=document.body.offsetWidth-ifloatX-layerwidth-20}
		if (halign=="center") {floatX=Math.round((document.body.offsetWidth-20)/2)-Math.round(layerwidth/2)}
		if (valign=="top") {floatY=ifloatY};
		if (valign=="bottom") {floatY=document.body.offsetHeight-ifloatY-layerheight}
		if (valign=="center") {floatY=Math.round((document.body.offsetHeight-20)/2)-Math.round(layerheight/2)}
	}
}
