function seitenwechsel()
	{
	window.location.href("/baked-webdesign");
	F = window.open("/baked-webdesign", "Baked Webdesign", ""), target="_blank";
	}

function zaehler(myid)
	{
	if (myid == "zeig")
		{
		var sichtbar = "versteck";
		var was = "visible";
		}
	if (myid == "versteck")
		{
		var sichtbar = "zeig";
		var was = "hidden";
		}
	document.getElementById(myid).style.visibility = "hidden";
	document.getElementById(sichtbar).style.visibility = "visible";
	document.getElementById("zaehlen").style.visibility = was;
	}

function button(which)
	{
	$lastbutton = document.getElementById("button-controller").className;
	if ($lastbutton == "none")
	{
	document.getElementById("button-controller").className=which;
	document.getElementById(which).style.visibility = "visible";
	}
	if ($lastbutton != "none")
	{
	document.getElementById($lastbutton).style.visibility = "hidden";
	document.getElementById("button-controller").className=which;
	document.getElementById(which).style.visibility = "visible";
	}
	}

function sichtbar(text, bild)
	{
	var textlink = "/includes/text-includer.php?mode=" + text;
	var bildlink = "/includes/bild-includer.php?mode=" + bild;
	if (text != "none")
	{F = window.open(textlink, target="textframe");}
	if (bild != "none")
	{B = window.open(bildlink, target="bildframe");}
	}
	
function cedeshop(adresse)
	{
	F = window.open(adresse, "Bestellen");
	}
	
function rbshop(adresse)
	{
	var breite = screen.width;
	var hoehe = screen.height;
	var scrX = breite / 2 - 260;
	var scrY = hoehe / 2 - 250;
	var mywindow = "'dependent=yes, height=500, width=520, location=no, menubar=no, resizable=no, scrollbars=no, status=no, toolbar=no, left=" + scrX + ", top=" + scrY + "'";
	F = window.open(adresse, "Bestellen", mywindow), target="_top";
	}
	
function press(adresse, myheight)
	{
	var mywidth = 520;
	var halfheight = myheight / 2;
	var halfwidth = mywidth / 2;
	var breite = screen.width;
	var hoehe = screen.height;
	var scrX = breite / 2 - halfwidth;
	var scrY = hoehe / 2 - halfheight;
	var mywindow = "'dependent=yes, height=" + myheight + ", width=" + mywidth + ", location=no, menubar=no, resizable=no, scrollbars=no, status=no, toolbar=no, left=" + scrX + ", top=" + scrY + "'";
	F = window.open(adresse, "Presse", mywindow), target="_top";
	}
	
function galleries()
	{
	var breite = screen.width;
	var hoehe = screen.height;
	var scrX = breite / 2 - 350;
	var scrY = hoehe / 2 - 350;
	var adresse = "gallery.inc.php";
	var mywindow = "'dependent=yes, height=700, width=700, location=no, menubar=no, resizable=no, scrollbars=no, status=no, toolbar=no, left=" + scrX + ", top=" + scrY + "'";
	F = window.open(adresse, "Gallery", mywindow), target="_top";
	}

function guest()
	{
	var myheight = 700;
	var mywidth = 640;
	var halfheight = myheight / 2;
	var halfwidth = mywidth / 2;
	var breite = screen.width;
	var hoehe = screen.height;
	var scrX = breite / 2 - halfwidth;
	var scrY = hoehe / 2 - halfheight;
	var adresse = "guests/gues.php";
	var mywindow = "'dependent=yes, height=" + myheight + ", width=" + mywidth + ", location=no, menubar=no, resizable=no, scrollbars=yes, status=no, toolbar=no, left=" + scrX + ", top=" + scrY + "'";
	F = window.open(adresse, "Guestbook", mywindow), target="_blank";
	}

function changepic(gig, bildnummer)
	{
	var oldbild = parseInt(bildnummer);
	bildnummer = parseInt(bildnummer) + 1;
	if(gig == "burnout" && bildnummer == 18)
		{
		bildnummer = 1;
		bildnummer = parseInt(bildnummer);
		}
	if(gig == "lindi" && bildnummer == 19)
		{
		bildnummer = 1;
		bildnummer = parseInt(bildnummer);
		}
	var pfad = "slideshow.inc.php?mode=" + gig + "&bild=" + bildnummer;
	document.location.href=(pfad);
	window.getElementById(oldbild).className = bildnummer;
	}