
function alertSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //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
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }

var centerfelt = myHeight-331;
var scroll = centerfelt-12;

if (scroll <= 252) document.write('<style type="text/css" media="screen" >.scroll{height:253px;overflow:auto;}<\/style>');
else document.write('<style type="text/css" media="screen" >#center{height:' + centerfelt + 'px;}.scroll{height:' + scroll + 'px;overflow:auto;}<\/style>')

 }
alertSize();



    
    
function vis(i) {document.getElementById('popup'+i).style.visibility = 'visible';}
function gem(i) {document.getElementById('popup'+i).style.visibility = 'hidden';}

function show(i) {document.getElementById('smarttext'+i).style.display = 'block';}
function hide(i) {document.getElementById('smarttext'+i).style.display = 'none';}

function mange()
{
if (arguments.length == 4) {document.write('<a href="mailto:'+arguments[0]+'@'+arguments[1]+'" title="'+arguments[3]+'">'+arguments[2]+'<\/a>');} 
else if (arguments.length == 3) {document.write('<a href="mailto:'+arguments[0]+'@'+arguments[1]+'">'+arguments[2]+'<\/a>');} 
else if (arguments.length == 2) {document.write('<a href="mailto:'+arguments[0]+'@'+arguments[1]+'">'+arguments[0]+'@'+arguments[1]+'<\/a>');}
}

function openbrwindow(theURL,winName,features) {window.open(theURL,winName,features);}