
			window.recentHash = "#";
			window.scrolloff = 0;
			var scrlct=1;
			var scrl;
			var scrl_step = 10;


			function logo_jump()
			{
				var x,y,i,z,obj_logo,stx,sty,posx,posy;
				var jump_range=600/1440;


				obj_logo=document.getElementById("Logo");
				i=document.jump_i;
				x=document.jump_x;
				y=document.jump_y;

				i=i+4;

				if (i<=1440)
					{
						z=Math.abs(Math.sin(i*Math.PI/180));
						posy=Math.round(y-z*15);

						if (document.jump_way=="up")
						{
							posx=Math.round(x+(i*jump_range));
						}
						else
						{
							posx=Math.round(x-(i*jump_range));
						}

						stx=posx+'px';
						sty=posy+'px';
						obj_logo.style.left=stx;
						obj_logo.style.top=sty;
						document.jump_i=i;
					}
					else
					{
						window.clearInterval(jump_again);
						document.jump_y=obj_logo.offsetTop;
						document.jump_x=obj_logo.offsetLeft;
						document.jump_run=0;
					}
			}

			function logo_run()
			{
				var jump,obj_logo;

				obj_logo=document.getElementById("Logo");
				document.jump_y=obj_logo.offsetTop;
				document.jump_x=obj_logo.offsetLeft;

				if(obj_logo.offsetLeft<=20)
				{
					document.jump_way="up";
					obj_logo.style.zIndex=4;
				}
				else
				{
					document.jump_way="down";
					obj_logo.style.zIndex=2;
				}

				if (document.jump_run!=1)
				{
					document.jump_run=1;
					document.jump_i=0;
					jump_again=window.setInterval("logo_jump()",30);
				}
				else {return;}

			}


			function start_jump()
			{
				var jump,obj_logo;
				jump = window.setInterval("logo_run()", 40000);
			}

			function openTab(skript, target)
			{
   			    if (skript == '') {skript='home.php';}

   			    var xmlhttp = null;
    			// Mozilla
			    if (window.XMLHttpRequest)
			    {
			    	xmlhttp = new XMLHttpRequest();
			    }
    			// IE
			    else if (window.ActiveXObject)
			    {
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
				}

				xmlhttp.open("GET", skript , true);
   			    window.location.hash = skript;
   			    window.recentHash = window.location.hash;
			    xmlhttp.onreadystatechange =function ()
			    							{
										    	if(xmlhttp.readyState != 4)
											    {
													document.getElementById(target).innerHTML = 'Seite wird geladen ...';
													window.loading = 1;
								        		}

        										if(xmlhttp.readyState == 4 && xmlhttp.status == 200)
        										{
													document.getElementById(target).innerHTML = xmlhttp.responseText;
													window.loading = 0;
        										}
			    							}
			    xmlhttp.send(null);

			}

			function initFromURL()
			{
    			if ((window.location.hash == window.recentHash) || (window.loading ==1)) {return;}


				var initialTab = window.location.hash;
				if (initialTab.substr(0,1)=='#') {initialTab = initialTab.substr(1);}
			    window.recentHash = window.location.hash;
     			openTab(initialTab, 'content');
			}

		    window.onload = function()
		    {
			    initFromURL();
     			setInterval(initFromURL, 1000);
   			}

			function get_scroll()
			{
				var nct;

				if (window.location.hash.substr(1,8)!='home.php') {return;}
				else if (window.scrolloff == 1) {return;}

				for (var ct=1; ct<=5; ct++)
				{
					if (document.getElementById('PrevPic'+ct).offsetLeft < 645)
					{
						pic = 'PrevPic'+ct;
						nct = ct + 1;
						if (!document.getElementById('PrevPic'+nct))
						{
							nct = 1;
						}
					}
				}

				npic = "PrevPic" + nct;
				window.pic = pic;
				window.npic = npic;
				pic_pos = 305-(document.getElementById(npic).width/2);
				window.scrl_am = 645-pic_pos;

				scroll_pic();
			}

   			function scroll_pic()
			{
				pic = window.pic;
				npic = window.npic;


				if (document.getElementById(pic) && document.getElementById(npic))
				{


					if (scrlct <= (window.scrl_am/scrl_step))
					{
							new_left = document.getElementById(pic).offsetLeft-scrl_step;
							document.getElementById(pic).style.left=new_left;
							new_left = document.getElementById(npic).offsetLeft-scrl_step;
							document.getElementById(npic).style.left=new_left;
							scrlct++;
							scrl = window.setTimeout("scroll_pic()", 10);
					}

					else
					{

						document.getElementById(npic).style.left=645-window.scrl_am;
						document.getElementById(pic).style.left=645;
						scrlct=1;
						window.clearTimeout(scrl);
						oldinfo = "PrevInfo"+pic.substr(pic.length-1,1);
						document.getElementById(oldinfo).style.visibility = "hidden";
						newinfo = "PrevInfo"+npic.substr(npic.length-1,1);
						document.getElementById(newinfo).style.visibility = "visible";
						return;
					}
				}
			}

			function start_scroll()
			{
				var scroll;
				scroll = window.setInterval("get_scroll()", 15000);
			}



			var mx=0,my=0;
			function getMousePosition(e)
			{
				return e.pageX ? {'mx':e.pageX, 'my':e.pageY} : {'mx':e.clientX + document.documentElement.scrollLeft + document.body.scrollLeft, 'my':e.clientY + document.documentElement.scrollTop + document.body.scrollTop};
			}

			function popPic(Pic,e)
			{
				myObj = document.getElementById("PopUp");
				mp = getMousePosition(e);
				myObj.style.top=mp.my-200;
				myObj.innerHTML = '<img src="./flyer/'+Pic+'.jpg" width="100">';
			}

			function popDPic()
			{
				myObj = document.getElementById("PopUp");
				myObj.innerHTML ="";
			}