if(!(document.getElementById) && document.all){
    document.getElementById = function(id){ return document.all[id]; };
}

if(!(document.getElementById) && document.layers) {
	document.all2=[];
	CopyToAll(document,document);
    document.getElementById = function(id){ return document.all2[id]; };
}

function CopyLayersToAll(doc,obj) { 
	var d = obj.layers; 
	var result,temp; 
	for(var i=0; i<d.length; i++){ 
		doc.all2(d[i].id)=d[i];
		if(d[i].layers.length){ 
			CopyLayersToAll(doc,d[i]); 
		}
	}
}

function GetWindowWidth() {
  var myWidth = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    myWidth = window.innerWidth;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    myWidth = document.documentElement.clientWidth;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    myWidth = document.body.clientWidth;
  }
  return myWidth;
}

function GetWindowHeight() {
  var myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    myHeight = document.body.clientHeight;
  }
  return myHeight;
}
if(typeof(LoadedModule)!='undefined') {
	LoadedModule("COMPAT");
}
