var appVers = navigator.appVersion;
var isIE = appVers.indexOf("Windows") != -1 && appVers.indexOf("MSIE") != -1;
var touthandle;
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function getXYcoord ( nvn ) {
    var elm = document.images[nvn];
    if ( document.layers ) return elm;
            // NS4 images contain x and y values
    var rd = { x:0 ,y:0 };
    do { rd.x += parseInt( elm.offsetLeft );
         rd.y += parseInt( elm.offsetTop );
         elm = elm.offsetParent;
    } while ( elm );
    return rd;
}

function viewff(ref) 
{
	//var ff = MM_findObj('ffact_detail');
	//var pos = getXYcoord(ref); // the location of the item we are relative to
	//ff.style.left = (pos.x+-20) +'px';
	//ff.style.top  = (pos.y-(ff.offsetHeight-160)) +'px';
	//alert("dixH:"+ff.offsetHeight+"\ndivX:"+ff.offsetLeft+"\ndivY:"+ff.offsetTop    );
	MM_showHideLayers('ffact_detail','','show');
}

function outff() {
	touthandle = window.setTimeout('hideff()', 2000);
}
function killoutff() {
	window.clearTimeout(touthandle);
}
function hideff() {
	//var ff = MM_findObj('ffact_detail');
	//ff.style.left = '100px';
	//ff.style.top  = '100px';
	MM_showHideLayers('ffact_detail','','hide');
} 
