<!--
/*******************************************************************************
	OLDIE - or Old IE. A script that finds the version of IE you're using,
	and does smth if lower than the set parameter.
*******************************************************************************/
var browser		= navigator.appName
var ver			= navigator.appVersion
var thestart	= parseFloat(ver.indexOf("MSIE"))+1 //This finds the start of the MS version string.
var brow_ver	= parseFloat(ver.substring(thestart+4,thestart+7)) //This cuts out the bit of string we need.

if ((browser=="Microsoft Internet Explorer") && (brow_ver < 7)) //By default the min. IE ver is set to 6. Change as desired.
{
   $(function(){
      $('body').html('<div id="getNewBrowser">Atnaujinkite Naršyklės Versija.</div>');
   });
}
//-->

$(function(){
    var height = $(window).height() - $('#header').height() - $('#footer').height() - 100;
    if (height<350)
        height = 350;
    $('#content .cont_ins').css({'min-height': height})    
    
    if ($('#content .scroll').length>0){
      var posTop = $('#content .scroll').position().top;
      var scrollHeight = height - posTop - 2;
      $('#content .scroll').css({'height': scrollHeight});
    } 
    
    $('.b-t').each(function(){
      width = $(this).parent().width() - 20;
      height = $(this).parent().height() - 20;
      
      $(this).css({'width': width, 'height': height});
    });
       
});
