function findBrowser() {
	if(!KW_VARS.browser)
	{	KW_VARS.browser = "modern";
		agt = navigator.userAgent.toLowerCase();
		if(document.layers)
		{	KW_VARS.browser = "ns4";
		}
		else if((navigator.userAgent.indexOf("Opera 5")!=-1) ||(navigator.userAgent.indexOf("Opera/5")!=-1))
		{	KW_VARS.browser = "op5";
		}
		else if((navigator.userAgent.indexOf("Opera 6")!=-1) ||(navigator.userAgent.indexOf("Opera/6")!=-1))
		{	KW_VARS.browser = "op6"
		}
		else if(agt.indexOf("mac") != -1)
		{	KW_VARS.browser = "mac"
			if(agt.indexOf("msie") != -1)
			{	KW_VARS.browser = "macie";
			}
		}
		else if(agt.indexOf("msie") != -1)
		{	KW_VARS.browser = "ie"
		}
		//alert(KW_VARS.browser);
	}
}
function getElementHeight(Elem) {
	findBrowser();
	if(KW_VARS.browser == "ns4") {
		var elem = getObjNN4(document, Elem);
		return elem.clip.height;
	} else {
		if(document.getElementById) {
			var elem = document.getElementById(Elem);
		} else if(document.all){
			var elem = document.all[Elem];
		}
		if(KW_VARS.browser == "op5") { 
			xPos = elem.style.pixelHeight;
		} else {
			xPos = elem.offsetHeight;
		}
		//alert(xPos);
		return xPos;
	}
}

function getElementWidth(Elem) {
	findBrowser();
	if(KW_VARS.browser == "ns4") {
		var elem = getObjNN4(document, Elem);
		return elem.clip.width;
	} else {
		if(document.getElementById) {
			var elem = document.getElementById(Elem);
		} else if(document.all){
			var elem = document.all[Elem];
		}
		if(KW_VARS.browser == "op5") {
			xPos = elem.style.pixelWidth;
		} else {
			xPos = elem.offsetWidth;
		}
		return xPos;
	}
}
function windowWidth() {
  myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
  }
  return myWidth;
}
function windowHeight() {
  var myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    //myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  return myHeight;
}


