
$(document).ready(function(){

 //$("body").append('<iframe id="spread_frame" src="/spreadpage.htm" class="spread"></iframe><iframe id="center_frame" frameborder="0" marginwidth="0" marginheight="0" height="320" width="500" src="/loading.htm" scrolling="no" class="modelPopup"></iframe>');

pageHeight=document.getElementById('_bg').offsetHeight;

pageWidth =document.getElementById('_bg').offsetWidth;

//document.getElementById('mainDiv').style.width = pageWidth + 'px';

scrWidth = window.screen.width;
scrHeight = window.screen.height;

//================set window size strats=======================================
/*
if(scrWidth>pageWidth)
{
 if (navigator.appName.indexOf("Microsoft")!=-1) 
 { 

 
  if (document.all) {

  var fixedHeight = pageHeight + 100;
  
  window.resizeTo(pageWidth,fixedHeight); // resize window with some fixed height and width 
  var diffIEHeight = fixedHeight - document.documentElement.offsetHeight ;
  
  var diffIEWidth = pageWidth - document.documentElement.offsetWidth ;
  

if(pageHeight<scrHeight)
  window.resizeTo(pageWidth + diffIEWidth ,pageHeight + diffIEHeight );
  else
  window.resizeTo(pageWidth + diffIEWidth ,scrHeight );

  }

 }
 else
 {


 var diffHeight = (window.outerHeight)-(window.innerHeight);
diffWidth = (window.outerWidth)-(window.innerWidth);
//window.resizeTo(pageWidth + diffWidth , document.body.clientHeight + diffHeight);
  
}

}*/
}
);

