//*****************************************************************************
// Alloy Navigator 5
//
// Copyright (c) 2002-2007 Alloy Software Inc.
// All Right Reserved
//
// The entire contents of this file is protected by U.S. and
// International Copyright Laws. Unauthorized reproduction, 
// reverse-engineering, and distribution of all or any portion of 
// the code contained in this file is strictly prohibited and may 
// result in severe civil and criminal penalties and will be 
// prosecuted to the maximum extent possible under the law. 
//
// RESTRICTIONS 
// 
// The source code contained within this file and all related 
// files or any portion of its contents shall at no time be 
// copied, transferred, sold, distributed, or otherwise made 
// available to other individuals without express written consent 
// and permission from Alloy Software Inc. 
//

var width = 0;

function checkIE()
{
 var vers = navigator.appVersion;
 var DOM = document.getElementById ? 1 : 0;
 var Opera = window.opera ? 1 : 0;
 var ie55 = (vers.indexOf("MSIE 5.5") > -1 && DOM && !Opera) ? 1 : 0;
 var ie50 = (vers.indexOf("MSIE 5") > -1 && DOM && !ie55 && !Opera) ? 1 : 0;
 var ie60 = (vers.indexOf("MSIE 6") > -1 && DOM && !Opera) ? 1 : 0;
 var ie40 = (document.all && !DOM && !Opera) ? 1 : 0;
 return ie40 || ie50 || ie55 || ie60;
}

function scrollBody()
{ if (document.getElementById("main"))
	{	var scrollPos = 0;
		if (checkIE())
			scrollPos = parseInt(document.body.scrollLeft);
		else
			scrollPos = parseInt(document.documentElement.scrollLeft);
		var bdw = parseInt(document.body.clientWidth) + scrollPos;
		if (bdw!=width)
		{
		  var divMain = document.getElementById("main");	
		  divMain.style.cssText = 'width:'+bdw +'px;';
		  leftPos = scrollPos;
		  width = bdw;
		}
	}
}

function contextMenu()
{
	showInfo('The function was disabled');
	return false;
}


