function get_page_height() 
{
   if ( document.body.clientHeight ) 
   {
      return document.body.clientHeight;
   } 
   else if ( window.innerHeight ) 
   {
      return window.innerHeight;
   } 
   else 
   {
      return 400;
   }
}

function get_page_width() 
{
   if ( document.body.clientWidth ) 
   {
      return document.body.clientWidth;
   } 
   else if ( window.innerWidth ) 
   {
      return window.innerWidth;
   } 
   else 
   {
      return 400;
   }
}

function init_scroll() 
{
   var h = (navigator.appName == 'Microsoft Internet Explorer' && navigator.userAgent.indexOf('MSIE 7') == -1) ? 206 : 206;
   var pheight = get_page_height();
   var pwidth = get_page_width();
   var sidewidthleft = 219;
   var sidewidthright = 201;
   
   if (pwidth < 828) {
		document.getElementById( 'left' ).style.display = 'none';
		document.getElementById( 'right' ).style.display = 'none';
   } else if (pwidth < 1150) {
		document.getElementById( 'left' ).style.display = 'block';
		document.getElementById( 'right' ).style.display = 'block';
		sidewidthleft = (pwidth - 768) / 2;
		sidewidthright = (pwidth - 768) / 2;
		document.getElementById( 'left' ).style.width = sidewidthleft + 'px';
		document.getElementById( 'right' ).style.width = sidewidthright + 'px';
   } else {
		document.getElementById( 'left' ).style.display = 'block';
		document.getElementById( 'right' ).style.display = 'block';
		document.getElementById( 'left' ).style.width = sidewidthleft + 'px';
		document.getElementById( 'right' ).style.width = sidewidthright + 'px';
   }
   
   document.getElementById( 'left' ).style.left = ((pwidth - 828)/2 - (sidewidthleft - 30)) + 'px';
   document.getElementById( 'right' ).style.right = ((pwidth - 828)/2 - (sidewidthright - 30)) + 'px';
}

