
/*  && (window.innerHeight > view_heigth)) {*/
	var view_heigth = '440';

  function getWinDims() 
  {
    if (self.innerHeight) // all except Explorer
    {
      agent='std';
      x = self.innerWidth;
      y = self.innerHeight;
    }
    else if (document.documentElement && document.documentElement.clientHeight)
   // Explorer 6 Strict Mode
    {
      agent='>=ie6';    
      x = document.documentElement.clientWidth;
      y = document.documentElement.clientHeight;
    }
    else if (document.body) // other Explorers
    {
      agent='ie';      
      x = document.body.clientWidth;
      y = document.body.clientHeight;
    }
  return x,y;
  }	
	 
 
  function _Get_Heigh(){
    getWinDims();
	  var _WH;
    if ( agent == 'std')
    {
      _WH =  y -3;
    return _WH;
    }
    else if ( ( agent =='ie') && (document.body.offsetHeight > view_heigth) )
    {
      _WH = y -6;
    return _WH;
    }
    else if ( ( agent =='>=ie6') && (document.body.offsetHeight > view_heigth) )
    {
      _WH = y -6;
    return _WH;
    }
    else
    {
      return 0;
    }
  }
   
 
   function _Set_Cookie (_Content) {
		var _Ablauf = new Date();
		var _Zeit = _Ablauf.getTime() + (5 * 24 * 60 * 60 * 1000);
		_Ablauf.setTime(_Zeit);
		_Ablauf = _Ablauf.toGMTString();
		document.cookie = 'position-class-cookie' +"=" + _Content + ";expires=" + _Ablauf;
     }

	function _re_size_it(){

		var _H = _Get_Heigh();
		if ( _H >= view_heigth ){ 			
			var _CH = _H - 270;
			document.getElementById('contentframe').style.height = _CH+'px';
	   	document.getElementById('mainframe').style.height = _H +'px'; 
			var _Class_Sizes = _CH+'#'+_H;        
			_Set_Cookie(_Class_Sizes);
		}
		else if ( _H < view_heigth ){
			var _CH = view_heigth  - 270;
			_H = view_heigth;
			document.getElementById('contentframe').style.height = _CH+'px';
	   	document.getElementById('mainframe').style.height = _H +'px';
			var _Class_Sizes = _CH+'#'+_H;        
			_Set_Cookie(_Class_Sizes);
		}
	}
   
   
   
