// JavaScript Document

/*function getClientWidth() {
  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
}

function getClientHeight() {
  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
}*/

  /* var width = document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
   var height = document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
   */
   /*var width = document.documentElement.clientWidth;
  	var height = document.documentElement.clientHeight;*/
//document.body.onresize='location.reload(true)' ;

function resizeContainer(){
var height = document.documentElement.clientHeight;
var boxHeight = document.getElementById("incontainer").scrollHeight;
var boxHeight2 = document.getElementById("incontainer2").scrollHeight;
var footerHeight = document.getElementById("infooter").scrollHeight;

if(boxHeight<height){
newHeight = height-footerHeight-1;
document.getElementById('incontainer').style.height= newHeight+'px';
}else if(boxHeight>height){

document.getElementById('incontainer').style.height= boxHeight2+'px';
}//end if

}//end function resizeContainer

function reloadIt() {
document.location = document.location;

}
/*
window.onresize = function(){
reloadIt(); resizeContainer();
}*/


