      function swapTeaser(inid,dotoggle) {

    	  if (inid == 1) {
        	  	imgname = "webagentur";
        	  	if (dotoggle == 1) {
	        	  	toggle(1,7,0,65,1);
	        	  	toggle(2,7,0,43,1);
	        	  	toggle(3,7,0,60,1);
	        	  	toggle(4,7,0,70,1);

	        	  	offTeaser(2,1);
	        	  	offTeaser(3,1);
	        	  	offTeaser(4,1);
        	  	}
          }
    	  if (inid == 2) {
        	  imgname = "softwareschmiede";
	      	  	if (dotoggle == 1) {
	        	  	toggle(10,7,0,43,1);
	        	  	toggle(11,7,0,120,1);

	        	  	offTeaser(1,1);
	        	  	offTeaser(3,1);
	        	  	offTeaser(4,1);
	    	  	}
          }
    	  if (inid == 3) {
        	  imgname = "itservice";
	      	  	if (dotoggle == 1) {
	        	  	toggle(20,7,0,43,1);
	        	  	toggle(21,7,0,65,1);
	        	  	toggle(22,7,0,43,1);

	        	  	offTeaser(1,1);
	        	  	offTeaser(2,1);
	        	  	offTeaser(4,1);
	      	  	}
          }
    	  if (inid == 4) {
        	  imgname = "produkte";
	      	  	if (dotoggle == 1) {
	        	  	toggle(30,7,0,27,1);
	        	  	toggle(31,7,0,27,1);
	        	  	toggle(32,7,0,27,1);
	        	  	toggle(33,7,0,27,1);
	        	  	toggle(34,7,0,27,1);

	        	  	offTeaser(1,1);
	        	  	offTeaser(2,1);
	        	  	offTeaser(3,1);
	    	  	}
          }

         var imgurl = "/img/teaser_"+imgname+".jpg";
         var bbid = "homeBillboard" + inid;

         document.getElementById("teaserImage").src = imgurl;

         document.getElementById(bbid).style.backgroundColor = "#D9D9FF";
      }

      function offTeaser(inid,dotoggle) {
         var bbid = "homeBillboard" + inid;

	   	  if (inid == 1) {
	       	  	if (dotoggle == 1) {
		        	  	toggle(1,10,65,65,0);
		        	  	toggle(2,10,43,43,0);
		        	  	toggle(3,10,60,60,0);
		        	  	toggle(4,10,70,70,0);
	       	  	}
	         }
	   	  if (inid == 2) {
		      	  	if (dotoggle == 1) {
		        	  	toggle(10,10,43,43,0);
		        	  	toggle(11,10,120,120,0);
		    	  	}
	         }
	   	  if (inid == 3) {
		      	  	if (dotoggle == 1) {
		        	  	toggle(20,10,43,43,0);
		        	  	toggle(21,10,65,65,0);
		        	  	toggle(22,10,43,43,0);
		    	  	}
	         }
	   	  if (inid == 4) {
		      	  	if (dotoggle == 1) {
		        	  	toggle(30,10,27,27,0);
		        	  	toggle(31,10,27,27,0);
		        	  	toggle(32,10,27,27,0);
		        	  	toggle(33,10,27,27,0);
		        	  	toggle(34,10,27,27,0);
		    	  	}
	         }

         document.getElementById("teaserImage").src = "/img/slogan.jpg";
         document.getElementById(bbid).style.backgroundColor = "#ECECFF";
      }

		function showAGB(agbid) {
			document.getElementById('agb_1').style.display = "none";
			document.getElementById('agb_2').style.display = "none";
			document.getElementById('agb_3').style.display = "none";
			document.getElementById('agb_4').style.display = "none";

			if (agbid >= 1) {
				divid = "agb_"+agbid;
				document.getElementById(divid).style.display = "block";
			}
		}


function decodeEntities(encoded)
{
	decoded = encoded.replace(/&lt;/g, "<");
	decoded = decoded.replace(/&gt;/g, ">");
	return decoded;
}                 