<!--
function changeImage(image_id,image_filename) {
	document.getElementById(image_id).src = "/images/" + image_filename;
}

function popup(seite,w,h) {
	var windowstyle = 'scrollbars=no,resizable=no,status=no,location=no,toolbar=no,directories=no,menubar=no,copyhistory=no,width=' + w + ',height=' + h;
	window.open(seite, '_blank', windowstyle);
	return false;
}

function extern(seite) {
	var status = "scrollbars=yes,resizable=yes,status=yes,location=yes,toolbar=yes,directories=yes,menubar=yes,copyhistory=yes";
	window.open(seite, '_blank', status);
	return false;
}




  /**
  * @author martin.dilg
  */

  /**
   *  controler class for fontsize scaling
   */
        


  //class:: fsControler
  function fsControler(containerId){
			
			var htmlContainerId = containerId;
			
			//enable debug mode
			var debug = false;
			
			//set default fontsize
			var fontsize = 0.625;
			
			
			//public:: initial read cookie value and change fontsize
			this.init = function(){
				
				if (debug) alert("init");
				
				generateView();
				
				var cookieVal = readValueFromCookie();
				
				if(cookieVal != -1){
					fontsize = cookieVal;	
					setActiveState(fontsize);
					setFontSize(fontsize);
				}else if(cookieVal == -1){
                                        setActiveState('norm');
                                        setFontSize('norm');
                                        writeValueToCookie('norm');
                                }
		
			} 
			
			
			//public:: change fontsize to a new value
			this.changeFsTo = function(fontsize){

				setActiveState(fontsize);
				setFontSize(fontsize);
				writeValueToCookie(fontsize);
				
			} 
			
			//private:: set fontsize by changing the fontsize-css value of the body-tag
			setFontSize = function(fs){
				
				
				switch (fs) {
  					case "norm":
    					fs = 0.625;
    					break;
  					case "medium":
    					fs = 0.7;
    					break;
  					case "big":
    					fs = 0.775;
    					break;
  					 default:
    					fs = 0.625;
    					break;
				}
				
				
				if (debug) alert("setting fontsize to " + fs + " em");
				
				document.getElementsByTagName("body")[0].style.fontSize = fs + "em";
				
			}
			
			//private:: wirte value to cookie
			writeValueToCookie = function (fs){
				
				if(debug) alert("writing " + fs + " to cookie");
				
				document.cookie = "fontsize=" + fs + "; path=/"; 
				
			}
			
			//private:: read value from cookie
			readValueFromCookie = function(){
				
						
				var cookieName = "fontsize";
				
				var cookies = document.cookie;

				if (cookies.indexOf(cookieName) != -1){

					var startpos = cookies.indexOf(cookieName)+cookieName.length+1;

					var endpos = cookies.indexOf(";",startpos)-1;

					if (endpos == -2) endpos = cookies.length;
					
					retVal = unescape(cookies.substring(startpos,endpos));

				}else{

					retVal = -1; 

				}
				
				if(debug) alert("read '" + retVal + "' from cookie");
				
				return retVal;
			}
			
			
			//private:: generate view
			generateView = function(){
				
				if (debug) alert("generating view:");
				
				var html = "Schriftgröße:<a href='#' id='fsNorm' onclick='fsControler.changeFsTo(\"norm\");'>A</a><img alt='' src='/images/strichel_vertical_print.gif'/><a href='#' id='fsMedium' onclick='fsControler.changeFsTo(\"medium\");'>A</a><img alt='' src='/images/strichel_vertical_print.gif'/><a href='#' id='fsBig'' onclick='fsControler.changeFsTo(\"big\");'>A</a>";
			
				if (debug) alert(html);
			
				document.getElementById(htmlContainerId).innerHTML = html;
			};
			
			
			//private:: set active state
			setActiveState = function(id){
				
				switch (id) {
  					case "norm":
						id = 'fsNorm';
    					break;
  					case "medium":
						id = 'fsMedium';
    					break;
  					case "big":
						id ='fsBig';
    					break;
  					 default:
						id = 'fsNorm';
    					break;
				}
				
				
				document.getElementById("fsNorm").className="";
				document.getElementById("fsMedium").className="";
				document.getElementById("fsBig").className="";
				
				if(debug) alert("setting active state of element: " + id);
				
				document.getElementById(id).className="active";
				
			}
			
		}
		
		








-->
