var windowWidth  = getWidthWindow();
var windowHeight = getHeightWindow();
if(top.document) {
  if(top.document.getElementById("wInnerMain")){
    windowWidth  = parseInt(top.document.getElementById("wInnerMain").style.width);
    windowHeight = parseInt(top.document.getElementById("wInnerMain").style.height);
  }
}
var diffHeight = 0;
var diffWidth  = 0;

  if(ie){
    diffHeight += 68;
    diffWidth  += 0;
  }
  else{
    diffHeight += 66;
    diffWidth  += 0;
  }
  
  

var diffContentWidth   = 0;
var diffContentHeight = 0;
var diffSourceWidth  = 0;
var diffSourceHeight = 0;
var diffDocumentXtWidth  = 0;
var diffDocumentXtHeight = 0;
function initWindow(){
  document.getElementById("wMainContentTable").style.width  = windowWidth-diffWidth+'px';
  document.getElementById("wMainContent").style.height = windowHeight-diffHeight+'px';
  document.getElementById("wBody").style.visibility = 'visible';
  if(typeof(document_onLoad) == 'function'){
    document_onLoad();
  }
  if(typeof(initWindowLocal) == 'function'){
    initWindowLocal();
  }                         
}
function adaptWindow(){
	if(top.document.getElementById("wInnerMain")){
	  windowWidth = parseInt(top.document.getElementById("wInnerMain").style.width);
	  windowHeight = parseInt(top.document.getElementById("wInnerMain").style.height);
	  
	  document.getElementById("wMainContentTable").style.width  = windowWidth-diffWidth+'px';
	  document.getElementById("wMainContent").style.height = windowHeight-diffHeight+'px';
	  
	  if(typeof(adaptWindowLocal) == 'function'){
	    adaptWindowLocal();
	  }
	}        
}

