function loadBar(fl)
{
  var x,y;
  if (self.innerHeight)
  {// all except Explorer
    x = self.innerWidth;
    y = self.innerHeight;
    document.body.style.overflow = "hidden";
  }
  else if (document.documentElement && document.documentElement.clientHeight)
  {// Explorer 6 Strict Mode
    x = document.documentElement.clientWidth;
    y = document.documentElement.clientHeight;
    document.body.style.overflow = "hidden";
  }
 else if (document.body)
  {// other Explorers
     x = document.body.scrollWidth ;  
     y = document.body.scrollHeight ; 
  }
 
    var el=document.getElementById('loader');
    if(null!=el ) 
	{
		el.style.visibility = (fl==1)?'visible':'hidden';
		el.style.display = (fl==1)?'block':'none';
		el.style.left = 0;
		el.style.top =  0; 
		el.style.height = y ; 
		el.style.width =  x ; 
		el.style.filter = "Alpha(opacity=50)";
		el.style.backgroundColor =  "#efefef"; //#dedede #efefef
		//alert(x);
		//alert(y);
		//document.body.style.overflow = "hidden";
		el.style.zIndex = 2;	
	}
		
}