// Set Status Bar for IE
window.status="PXServer from Parmavex Services"

//Errors
function fncStopError()
{
  	return true;
}
  	window.onerror = fncStopError;
     
function scrollLayer(layerName,NSpath,IEpath,firstTime)
{
NSpath = NSpath.replace(/!!/g,"'")
IEpath = IEpath.replace(/!!/g,"'")
var offset;
var isIE=(document.all) ? 1 : 0;
var isNav=(document.layers) ? 1 : 0;
var MainMenuLayer="";
	if(NSpath =='') 
	{
		if(isIE) {eval('MainMenuLayer='+layerName)}	
		else {eval('MainMenuLayer=document.'+layerName)}
	}	
	else
	{	
		if(isIE) {eval('MainMenuLayer='+IEpath)}	
		else {eval('MainMenuLayer='+NSpath)}
	}	

	if(eval(firstTime))
	{
		MainMenuLayer.XPOS = 0;
		MainMenuLayer.YPOS = 0;
	}

	if(isNav)
	{				
		offset = self.pageYOffset
		if (offset != MainMenuLayer.YPOS)
		{
			offset=offset-MainMenuLayer.YPOS
			MainMenuLayer.top+=offset
			MainMenuLayer.YPOS = MainMenuLayer.YPOS + offset;
		}

	}
	else
	{
		offset = window.document.body.scrollTop;
		if (offset >= 0)
		{
			if (offset != MainMenuLayer.YPOS)
			{
				offset=offset-MainMenuLayer.YPOS;
				MainMenuLayer.style.pixelTop+=offset;
				MainMenuLayer.YPOS = MainMenuLayer.YPOS + offset;
			}
		}
	}
	
	if(isIE) MainMenuLayer.timerid = setTimeout("scrollLayer(\""+layerName+"\",\""+NSpath+"\",\""+IEpath+"\",'false')",50);
}
