function osDetect()
{
	osType = Array();
	osType[0] = navigator.appCodeName;
	osType[1] = navigator.appName;
	osType[2] = navigator.appVersion;
	osType[3] = navigator.userAgent;
	
	if(osType[1] == "Microsoft Internet Explorer") osDef = 0;
	if(osType[1] == "Netscape") osDef = 1;
	
	return osType;
}

function browserSize()
{
  curWidth = 0, curHeight = 0;
  
  if( typeof( window.innerWidth ) == 'number' )
  {
    //Non-IE
    curWidth = window.innerWidth;
    curHeight = window.innerHeight;
  }
  else if(document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight))
  {
    //IE 6+ in 'standards compliant mode'
    curWidth = document.documentElement.clientWidth;
    curHeight = document.documentElement.clientHeight;
  }
  else if(document.body && ( document.body.clientWidth || document.body.clientHeight))
  {
    //IE 4 compatible
    curWidth = document.body.clientWidth;
    curHeight = document.body.clientHeight;
  }
}