function checkBrowser()
{
  this.ver=navigator.appVersion
  this.dom=document.getElementById?1:0
  this.ie8=(this.ver.indexOf("MSIE 8")>-1 && this.dom)?1:0;
  this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom)?1:0;
  this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
  this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
  this.ie4=(document.all && !this.dom)?1:0;
  this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
  this.ns4=(document.layers && !this.dom)?1:0;
  this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
  return this
}

var width = 0;
var height = 0;

if(self.innerWidth!=undefined){
  width = window.innerWidth;
  height = window.innerHeight;
}
else{
  width = document.documentElement.clientWidth;
  height = document.documentElement.clientHeight;
}

function resizeContent()
{
  if (width > 1200){
    newWidth = (width*50)/100;
    newHeight = (height*60)/100;
  }
  else {
    newWidth = (width*70)/100;
    newHeight = (height*50)/100;
  }
  if(document.getElementById("content-home"))
  {
    document.getElementById("content-home").style.width = newWidth+"px";
    document.getElementById("content-home").style.height = newHeight+"px";
  }
  else
  {
    document.getElementById("content").style.width = newWidth+"px";
    document.getElementById("content").style.height = newHeight+"px";

  }

  var nav = checkBrowser();
  if (nav.ie6 == 1)
  {
    document.getElementById("footer").style.top = (height-33)+"px";
    document.getElementById("footer").style.left = "0px";
  }

}


//window.onresize = resizeContent();
//window.onresize = alert('tutu');
