﻿// function Screen_Size()
// function Window_Size()
// --------------------------------
var screenW = 1024,screenH = 768;
var windowW = 0		,windowH = 0;
var scrollX = 0		,scrollY = 0;
// --------------------------------
function Screen_Size()
{
	if (parseInt(navigator.appVersion)>3) {
	 screenW = screen.width;
	 screenH = screen.height;
	}
	else if (navigator.appName == "Netscape" 
	    && parseInt(navigator.appVersion)==3
	    && navigator.javaEnabled()
	   ) 
	{
	 var jToolkit = java.awt.Toolkit.getDefaultToolkit();
	 var jScreenSize = jToolkit.getScreenSize();
	 screenW = jScreenSize.width;
	 screenH = jScreenSize.height;
	}
	//document.write("Screen width = "+screenW+" &nbsp; Screen height = "+screenH+"<br>");
}
function Window_Size()
{
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    windowW = window.innerWidth;
    windowH = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    windowW = document.documentElement.clientWidth;
    windowH = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    windowW = document.body.clientWidth;
    windowH = document.body.clientHeight;
  }
	//document.write("Window width = "+windowW+" &nbsp; Window height = "+windowH+"<br>");
}
function Scroll_Info()
{
  if( typeof( window.pageYOffset ) == 'number' ) {
    //Netscape compliant
    scrollY = window.pageYOffset;
    scrollX = window.pageXOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    //DOM compliant
    scrollY = document.body.scrollTop;
    scrollX = document.body.scrollLeft;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    //IE6 standards compliant mode
    scrollY = document.documentElement.scrollTop;
    scrollX = document.documentElement.scrollLeft;
  }
	//document.write("Scroll X = "+scrollX+" &nbsp; Scroll Y = "+scrollY+"<br>");
}

