<!--

function win_size(des_w,des_h){
var as_browser= new as_verifyCompatibleBrowser();
var iw = 0; var ih = 0; var sl = 0; var st = 0;
var sw = screen.availWidth; var sh = screen.availHeight; 
if (as_browser.ns || as_browser.opera) {iw = window.innerWidth; ih = window.innerHeight;}
else {iw = document.body.clientWidth ;

ih = document.body.clientHeight; 
ih = document.body.parentNode.clientHeight; 
}

if (!as_browser.mac) {window.resizeBy(des_w-iw,des_h-ih);}
window.focus();
}
function as_verifyCompatibleBrowser(){ 
	this.ver=navigator.appVersion 
	this.dom=document.getElementById?1:0
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0; 
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; 
	this.ie4=(document.all && !this.dom)?1:0; 
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.mac=(navigator.userAgent.indexOf('Mac') != -1)?1:0;
	this.badmac = (this.ie4 && this.mac);
	this.bw= (this.ie5 || this.ie4 || this.ns4 || this.ns5);
	this.ns= (this.ns4 || this.ns5);
	this.ie= (this.ie6 || this.ie5 || this.ie4);
	this.ie5up = (this.ie6 || this.ie5);
	this.opera=window.opera?1:0;
	// khtml triumvirate 
 	this.khtml = (navigator.vendor == 'KDE')?true:false;
 	this.konq = (navigator.vendor == 'KDE')||(document.childNodes)&&(!document.all)&&(!navigator.taintEnabled)?true:false;
 	this.safari = (document.childNodes)&&(!document.all)&&(!navigator.taintEnabled)&&(!navigator.accentColorName)?true:false;
 	this.omniweb45plus = (document.childNodes)&&(!document.all)&&(!navigator.taintEnabled)&&(navigator.accentColorName)?true:false;
	this.nds = (this.ns4 || this.opera || this.badmac);
	this.loaded = true;
	return this 
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_showHideLayers() { //v3.0
		var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) {v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
function changeCssAttrib(cssElement, attribute, value){
  //	thx to www.shanolson.net for assisting with this function. :)

  usedStyles = document.styleSheets;

  var cssList    = 0;
  var safariName = cssElement;
	
  if(cssElement.substring(0,1) == "#"){  //  this is needed for safari
    safariName = "*[ID\"" + cssElement.substring(1) + "\"]";
  }

  if(usedStyles){  //  ie, mozilla

    if(usedStyles[0]['rules']){  //  different way for different browsers  (IE)
      cssList = 'rules';
    } else if(usedStyles[0]['cssRules']) {  //  (Mozilla)
      cssList = 'cssRules';
    }

    for( i=0; i<usedStyles.length; i++){  //  walk through all loaded files
      theCSS = usedStyles[i][cssList];
      for(j=0;j<theCSS.length;j++){  //  content of all styles
      
       if(theCSS[j].selectorText == cssElement || theCSS[j].selectorText == safariName){  //  get the desired element
          theCSS[j].style[attribute] = value;
         }
       }
    }
  } else {  //  opera
    name = cssElement.substring(1);
    if(cssElement.substring(0,1) == "#"){
      elem = document.getElementById(name);
      elem.style[attribute] = value;
    } else {
      elems = document.getElementsByTagName("div");
      for(i=0;i<elems.length;i++){
        if(elems[i].getAttribute("class") == name){
          elems[i].style[attribute] = value;
        }
      }
    }
  }
}
function Balken(){
 xp="px";
 if (document.all) {h1= document.body.parentNode.clientHeight; 
 } else { h1 = window.innerHeight;}
 h2 = document.getElementById("Menu").clientHeight;
 h3 = document.getElementById("Inhalte").clientHeight + 10; //top des div
 h = Math.max(h1,h2); h = Math.max(h,h3);
 x = h + xp;
 document.getElementById("Balken").style.height = x;
}
function resize(){
h6=0;

  var bottomBorder = 0;
  rightBorder = 0;
  
  //  get size of the page and of some elements
  var  y_used = document.body.scrollHeight;    //  used height

  if(window.innerHeight){  //  Mozilla, Opera alert
    y_possible = window.innerHeight; 
	x_possible = window.innerWidth;
    y_used += 1;
	
  } else if(document.body.offsetHeight){  //  Internet Explorer
    y_possible = document.body.offsetHeight;  //  possible height
	x_possible = document.body.offsetWidth;
	bottomBorder = 2;  rightBorder = 21;
	if(document.body.parentNode.offsetHeight){
	 y_possible2 = document.body.parentNode.offsetHeight;
	 x_possible2 = document.body.parentNode.offsetWidth;
	  y_possible =  Math.max(y_possible,y_possible2);
	  x_possible =  Math.max(x_possible,x_possible2);
	}    
	y_used += 2;
    y_possible -= 3;

  }

  if(y_used < (y_possible)){  //  with scrollbars
    y = y_possible;
  } else {  //  content fits in screen
    y = y_used;
  }

 h2 = document.getElementById("MenuLeft").clientHeight;
 h2a = document.getElementById("MenuLeft").offsetTop;
 h3 = document.getElementById("Inhalt").clientHeight ;
 h4 = document.getElementById("Inhalt").offsetTop; //top des div
 if (h3 ==0) { if (document.getElementById("Inhalt").offsetHeight) {h3a = document.getElementById("Inhalt").offsetHeight ;
   h3 = h3a;
  }}
 h5=h3+h4;
  
  h6 = Math.max(h2,h5); 
 if (document.getElementById("BoxBilderRechts")) {
 h3 = document.getElementById("BoxBilderRechts").clientHeight ;
  h4 = document.getElementById("BoxBilderRechts").offsetTop ;   
  if (h3 ==0) {h3a = document.getElementById("BoxBilderRechts").offsetHeight ;
   h3 = h3a;
  }
  h5=h3+h4; 
  h6 = Math.max(h6,h5);
 } 
  
 if (document.getElementById("BoxAktuell")) {
  h3 = document.getElementById("BoxAktuell").clientHeight ;
  h4 = document.getElementById("BoxAktuell").offsetTop ;//top des div
  if (h3 ==0) {h3a = document.getElementById("BoxAktuell").offsetHeight ;
   h3 = h3a;
  }
 
  h5=h3+h4;
  h6 = Math.max(h6,h5);
 } 
 
 h7 = Math.max(h6,y_used);
  
 h = Math.max(h7,y_possible);
   
  var y=0;
 y=h;	

 x= x_possible-750 - rightBorder;
 if (x<0) {x=0;}
  //  here we change the sizes of the elements
  //  this works only with classes in safari!!!!!
  
  changeCssAttrib('#MenuLeft', 'height', (y - bottomBorder -h2a) + "px");
 changeCssAttrib('#BGW', 'height', (y - bottomBorder) + "px");
 changeCssAttrib('#BGW', 'width', (x) + "px");
//  changeCssAttrib('#columnRight', 'height', (y - bottomBorder) + "px");
//  changeCssAttrib('#navigation', 'height', (y - 126 - bottomBorder + "px"));
}
function showcompat() {
	if (document.all)
{document.write(document.compatMode);}	
}
function addToFavorites(urlAddress,pageName){
  if (window.external){window.external.AddFavorite(urlAddress,pageName)}
  else {alert("Sorry! Your browser doesn't support this function.");}
}
function P7_autoLayers() { //v1.4 by PVII
 var g,b,k,f,args=P7_autoLayers.arguments;a=parseInt(args[0]);if(isNaN(a))a=0;
 if(!document.p7setc){p7c=new Array();document.p7setc=true;for(var u=0;u<10;u++){
 p7c[u]=new Array();}}
 for(k=0;k<p7c[a].length;k++){
 if(((g=MM_findObj(p7c[a][k]))!=null) ) {
 b=(document.layers)?g:g.style;b.visibility="hidden";}}for(k=1;k<args.length;k++){
 if((g=MM_findObj(args[k]))!=null){b=(document.layers)?g:g.style;b.visibility="visible";f=false;
 for(var j=0;j<p7c[a].length;j++){if(args[k]==p7c[a][j]) {f=true;}}
 if(!f){p7c[a][p7c[a].length++]=args[k];}}}
}
function init_marque(container, content, sx,sy,mby,mrepeat){
mar_Container = container; mar_Content = content; mar_xstart = sx; mar_ystart = sy;
mar_moveby = mby; mar_repeat = mrepeat;
marque_it();
}
function marque_it(){
MM_showHideLayers(mar_Content,'','hide');
w = document.getElementById(mar_Container).clientWidth;
tfaktor= w / mar_xstart ;
tneu = Math.ceil(mar_repeat * tfaktor);
tmt_DivMove(mar_Content,w,mar_ystart);//Startposition
MM_showHideLayers(mar_Content,'','show');
P7AniMagic(mar_Content,-mar_moveby,0,2,30,1,0); 
setTimeout('marque_it()',tneu);
}
function tmt_DivMove(theDiv, l, t){
	var obj = MM_findObj(theDiv);
	if((parseInt(navigator.appVersion)>4 || navigator.userAgent.indexOf("MSIE")>-1)&& navigator.userAgent.indexOf("Opera")==-1){
    l+="em";t+="em";}
	if(obj){
		if(obj.style) {obj.style.left=l; obj.style.top=t;} else {obj.left=l; obj.top=t;}
	} 
	
}
function P7AniMagic(el, x, y, a, b, c, s) { //v2.8 PVII
 var g,elo=el,f="",m=false,d="";x=parseInt(x);y=parseInt(y);
 var t = 'g.p7Magic = setTimeout("P7AniMagic(\''+elo+'\','; 
 if ((g=MM_findObj(el))!=null) {d=(document.layers)?g:g.style;}else{return;}
 if (parseInt(s)>0) {eval(t+x+','+y+','+a+','+b+','+c+',0)",' + s+')');return;}
 var xx=(parseInt(d.left))?parseInt(d.left):0;
 var yy=(parseInt(d.top))?parseInt(d.top):0;
 if(parseInt(c)==1) {x+=xx;y+=yy;m=true;c=0;}
 else if (c==2) {m=false;clearTimeout(g.p7Magic);}
 else {var i=parseInt(a);
  if (eval(g.moved)){clearTimeout(g.p7Magic);}
  if (xx<x){xx+=i;m=true;if(xx>x){xx=x;}}
  if (xx>x){xx-=i;m=true;if(xx<x){xx=x;}}
  if (yy<y){yy+=i;m=true;if(yy>y){yy=y;}}
  if (yy>y){yy-=i;m=true;if(yy<y){yy=y;}}}
 if (m){if((parseInt(navigator.appVersion)>4 || navigator.userAgent.indexOf("MSIE")>-1)&& navigator.userAgent.indexOf("Opera")==-1){
    xx+="px";yy+="px";}
  d.left=xx;d.top=yy;g.moved=true;eval(t+x+','+y+','+a+','+b+','+c+',0)",'+b+')');
  }else {g.moved=false;}
}

//-->

