$(document).ready(function(){
}).load(function(){
    checkAboutLS();
}).resize(function(){
    checkAboutLS();
});

function checkAboutLS() {
    w = xClientWidth();
    h = xClientHeight();
    bc = $('div#biocontent');

    if (bc.get(0)) {
        bc.get(0).style.width = (w-350)+'px';
        if ((w-350)<600) {
            $('div#biocontent div#biotext p').each(function(){
               this.style.width = (w-350-60-20)+'px'; 
            });
        }
        else {
            $('div#biocontent div#biotext p').each(function(){
               this.style.width = (570)+'px'; 
            });
            
        }
    }
}

var xOp7Up,xOp6Dn,xIE4Up,xIE4,xIE5,xNN4,xUA=navigator.userAgent.toLowerCase();
if(window.opera){
    var i=xUA.indexOf('opera');
    if(i!=-1){
        var v=parseInt(xUA.charAt(i+6));
        xOp7Up=v>=7;
        xOp6Dn=v<7;
    }
}
else 
    if(navigator.vendor!='KDE' && document.all && xUA.indexOf('msie')!=-1){
        xIE4Up=parseFloat(navigator.appVersion)>=4;
        xIE4=xUA.indexOf('msie 4')!=-1;
        xIE5=xUA.indexOf('msie 5')!=-1;
    }
    else 
        if(document.layers){
            xNN4=true;
        }

xMac=xUA.indexOf('mac')!=-1;

function xDef()
{
  for(var i=0; i<arguments.length; ++i){if(typeof(arguments[i])=='undefined') return false;}
  return true;
}

function xClientHeight()
{
  var h=0;
  if(xOp6Dn) h=window.innerHeight;
  else if(document.compatMode == 'CSS1Compat' && !window.opera && document.documentElement && document.documentElement.clientHeight)
    h=document.documentElement.clientHeight;
  else if(document.body && document.body.clientHeight)
    h=document.body.clientHeight;
  else if(xDef(window.innerWidth,window.innerHeight,document.width)) {
    h=window.innerHeight;
    if(document.width>window.innerWidth) h-=16;
  }
  return h;
}

function xClientWidth()
{
  var w=1100;
  return w;
}

