// ------------------------------------------------------------------
// javacript to change ccs style class
// ------------------------------------------------------------------
// Works only on ellement with defined (id="somename")
// Call like the element :
// onMouseOut="chclass('this', 'def_class'); onMouseOver="change('this', 'over_class');

function chclass(id, newClass){
  
  identity=document.getElementById(id);
  identity.className=newClass;
}


/*  && (window.innerHeight > view_heigth)) {*/
var view_heigth = '500';
	function _Get_Heigh(){
	var _WH;
          if (window.innerHeight){
               _WH =  window.innerHeight -3;
           return _WH;
          }
          else if ( (document.body) && (document.body.offsetHeight > view_heigth)){
               _WH = document.body.offsetHeight -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 Var1 = _Get_Heigh();
		if ( Var1 >= view_heigth ){ 			
			var Var2 = Var1 - 260;
/*			document.getElementById('content-container').style.height = Var2+'px'; */
/*	   	document.getElementById('r-border').style.height = Var1 +'px'; */
			var _Class_Sizes = Var2+'#'+Var1;        
			_Set_Cookie(_Class_Sizes);
		}
		else if ( Var1 < view_heigth ){ 			
			var Var2 = view_heigth  - 260;
			Var1 = view_heigth;
/*			document.getElementById('content-container').style.height = Var2+'px'; */
/*	   	document.getElementById('r-border').style.height = Var1 +'px'; */
			var _Class_Sizes = Var2+'#'+Var1;        
			_Set_Cookie(_Class_Sizes);
		}
	}
	
   
   
   