
function getResize(side){
  var myWidth;
  var myHeight;
  if( typeof( window.innerWidth ) == 'number' && window.innerWidth > 0) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth ||  document.documentElement.clientHeight) && ( document.documentElement.clientWidth > 0 ||  document.documentElement.clientHeight > 0) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible .. But there are no body tags with a frameset..?
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  } else {
    myHeight = 663;
	}
  
if(side=="width"){return("940");}
  
//else if(side=="height"){if(myHeight>="663"){return Math.round(myHeight*0.8);}else{return "530";}}
else if(side=="height"){
  if(myHeight < 663){return "530";}
  else if(myHeight >= 985){return "758";}
  else{return Math.round(myHeight*0.8);}
}
}