var fBrw=(navigator.userAgent.indexOf('MSIE')!= -1 && navigator.userAgent.indexOf('Windows')!= -1);
function ftd(divid){	

	if (!document.getElementById('FPTSHeader')) return false;
	
	if (!document.getElementById('FPTSQuote')) return false;
	
	var eY=0;
	var startX, startY;
	if(document.body.clientWidth < 1000){
		startX = - 1;
	}
	else{
		startX = (document.body.clientWidth - 1000) / 2 - 1;
	}
	startY = 0;

	window.stayFloat=function(ftlObj)
	{
		iTop=parseInt(itGetXY(document.getElementById('FPTSQuote'))[1]);
		var startX, startY;
		var ns = (navigator.appName.indexOf("Netscape") != -1);
		if(document.body.clientWidth < 1000){
			startX = - 1;
		}
		else{
			startX = (document.body.clientWidth - 1000) / 2 - 1;
		}
		if (document.body.scrollTop < iTop) {
			ftlObj.style.display = 'none';
		} 
		else {
			ftlObj.style.display = '';
			
			if (document.documentElement && document.documentElement.scrollTop)
				var pY = ns ? pageYOffset : document.documentElement.scrollTop;
			else if (document.body)
				var pY = ns ? pageYOffset : document.body.scrollTop;

			startY=0;

			ftlObj.y += (pY + startY - ftlObj.y)/8;
			ftlObj.style.left=startX;
			ftlObj.style.top= ftlObj.y + eY;
		}
		setTimeout(function(){stayFloat(ftlObj,eY)}, 15);
	}

	var ftlObj = document.getElementById?document.getElementById(divid):document.all?d.all[divid]:document.layers[divid];
	if(!ftlObj) return;
	ftlObj.x = startX;
	ftlObj.y = startY;
	stayFloat(ftlObj);
	
	return true;
}

function itGetXY(a,offset) {
	var p=offset?offset.slice(0):[0,0];
	while(a) {
		p[0]+=a.offsetLeft;
		p[1]+=a.offsetTop;
		if (a.tagName.toUpperCase()=="BODY") break;
		a=a.offsetParent;
	}
	return p;
}

function shw(){	
	if (typeof(iTop)=='undefined')return;
	if (document.body.scrollTop > iTop)	document.getElementById('divHeader').style.display='';
	document.getElementById('FPTSHeader').style.width = document.getElementById('FPTSQuote').style.width
	for (var i=0;i<2;i++){
		for (var j=0;j<30;j++){
			if (document.getElementById('FPTSQuote').rows[i].cells[j]){
				iClientWidth = parseInt(document.getElementById('FPTSQuote').rows[i].cells[j].clientWidth);
				iOffsetWidth = parseInt(document.getElementById('FPTSQuote').rows[i].cells[j].offsetWidth);
try
{

  
				if (fBrw)
				{
					/************ IE ************/
					document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth + 'px';												
					//alert(document.getElementById('FPTSHeader').rows[i].cells[j].style.width+' - '+iClientWidth );
				}
				else 
				{					
					/************ FF ************/
					//alert(document.getElementById('FPTSHeader').rows[i].cells[j].style.width+' | '+iClientWidth );					
					//alert('width='+document.getElementById('FPTSHeader').rows[i].cells[j].style.width+', rows='+i+', cells='+j+', text='+document.getElementById('FPTSHeader').rows[i].cells[j].innerHTML+'|'+iClientWidth);					
					if(i==0 && j==0){
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth + 'px';
					}						
					else if(i==0 && j==1){
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth - 2 + 'px';
					}
					else if(i==0 && j==2){
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth - 1 + 'px';
					}
					else if(i==0 && j==3){
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth - 6 + 'px';
					}
					else if(i==0 && j==4){
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth - 15 + 'px';
					}
					else if(i==0 && j==5){
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth - 4 + 'px';
					}
					else if(i==0 && j==6){
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth - 6 + 'px';
					}
					else if(i==0 && j==7){
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth + 3 + 'px';
					}
					else if(i==0 && j==8){
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth - 2 + 'px';
					}
					else if(i==0 && j==9){
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth - 6 + 'px';
					}
					else if(i==0 && j==10){
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth - 2 + 'px';
					}
					
					else if(i==1 && j==0){
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth - 4 + 'px';
					}
					else if(i==1 && j==1){
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth - 4 + 'px';
					}
					else if(i==1 && j==2){
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth - 2 + 'px';
					}
					else if(i==1 && j==3){
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth - 3 + 'px';
					}
					else if(i==1 && j==4){
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth - 3 + 'px';
					}
					else if(i==1 && j==5){
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth -4 + 'px';
					}
					else if(i==1 && j==6){
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth - 5 + 'px';
					}
					else if(i==1 && j==7){
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth - 5 + 'px';
					}
					else if(i==1 && j==8){
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth - 4 + 'px';
					}
					else if(i==1 && j==9){
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth - 4 + 'px';
					}
					else if(i==1 && j==10){
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth - 4 + 'px';
					}
					else if(i==1 && j==11){
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth + 3 + 'px';
					}					
					else{
						document.getElementById('FPTSHeader').rows[i].cells[j].style.width = iClientWidth + 'px';
					}
				}
}
catch(err)
{
document.location.reload()
}
			}
		}
	}	
}