	function classImage (src, width, height, alt) {
		this.src = src;
		this.width = width;
		this.height = height;
		this.alt = alt;
	}
	
	function classSlogan (content, author) {
		this.content = content;
		this.author = author;
	}
	
	function pickRandom(range, cookie_name) {
		if (Math.random) {
			rnd = Math.round(Math.random() * (range-1));
		} else {
			var now = new Date();
			rnd = (now.getTime() / 1000) % range;
		}
		
		if (range>1 && document.cookie) {
			prevrnd = (getCookie(cookie_name) || -1);
			
			if (prevrnd >= 0) {
				if (prevrnd==rnd) {
					if (++rnd > range) {
						rnd=0;
					} else {
						rnd=rnd++;
					}
				}
			}
		
				
		}
		
		expire = new Date((new Date()).getTime() + 2*3600000);		
		setCookie(cookie_name, rnd, null, expire.toGMTString(),"/");
		
		return rnd;
	}

/* cookies funktionen */
function setCookie(name, wert, domain, expires, path, secure) {
   var cook = name+"="+unescape(wert)
   cook += (domain) ? "; domain="+ domain : ""
   cook += (expires) ? "; expires="+expires : ""
   cook += (path) ? "; path="+path : ""
   cook += (secure) ? "; secure" : ""
   document.cookie = cook
}

function eraseCookie(name, domain, path){
   var cook=name+"=; expires=Thu, 01-Jan-70 00:00:01 GMT"
   cook += (domain) ? "domain="+domain : ""
   cook += (path) ? "path="+path : ""
   document.cookie = cook
}

function getCookie(name){
   var i=0  //Suchposition im Cookie
   var suche = name+"="
   while (i<document.cookie.length){
      if (document.cookie.substring(i, i+suche.length)==suche){
         var ende = document.cookie.indexOf(";", i+suche.length)
         ende = (ende>-1) ? ende : document.cookie.length
         var cook = document.cookie.substring(i+suche.length, ende)
         return unescape(cook)
      }
      i++
   }
   return null
}

/* ende der cookie funktionen */