
function browserWindowSize()
{
 var browserWinWidth = 0, browserWinHeight = 0;
 if( typeof( window.innerWidth ) == 'number' )
 {
  //Non-IE
  browserWinWidth = window.innerWidth;
  browserWinHeight = window.innerHeight;
 }
 else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
 { 
  //IE 6+ in 'standards compliant mode'
  browserWinWidth = document.documentElement.clientWidth;
  browserWinHeight = document.documentElement.clientHeight;
 }
 else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
 {
  //IE 4 compatible
  browserWinWidth = document.body.clientWidth;
  browserWinHeight = document.body.clientHeight;
 }
 //alert( 'Browser Window Width = ' + browserWinWidth +' Browser Window Height = '+browserWinHeight);
 return {width:browserWinWidth,height:browserWinHeight};
}


   function rehigh()
   {
    var size=browserWindowSize();
  
    var marq_td=null;
    var marq_div=null;
    var marq_marquee=null;
    
    try
    {
     marq_td=document.getElementById('marq_td');
     marq_div=document.getElementById('marq_td');
     marq_marquee=document.getElementById('marq_marquee');
    }
    catch(e)
    {
         setTimeout('rehigh()',100);
         return;
    }    
    if(marq_td!=null && marq_div!=null)
    {
     var test
     try
     {
      test=marq_div.tagName;
      test=marq_td.tagName;
      test=marq_marquee.tagName;
     }
     catch(e)
     {
         setTimeout('rehigh()',100);
         return;
     }  

     try
     {
      marq_marquee.style.height=marq_div.style.height=Math.max(size.height-(130+100),320);//marq_td.offsetHeight;
     }
     catch(e)
     {
       // error no ofset height
         return;
     }    
        
    }
   }
   function do_rehigh()
   {
    rehigh();
   }
   window.onresize = do_rehigh;
   setTimeout(do_rehigh,50);
