//+++++++++++++++++++++++++++++//
//Scriptlauf
//+++++++++++++++++++++++++++++//
function init()
{
	layer = document.getElementById("content").getElementsByTagName("div");
	layer["lauf"].style.visibility = "visible";
	layer["lauf"].style.top = 0;
}
function halt()
{
	clearTimeout(timer);
}
function scrollen(richtung,speed)
{
	layer = document.getElementById("content").getElementsByTagName("div");
	//Position des Scriptbereiches von oben (0px)
 	var layertop = parseInt(layer["lauf"].style.top);
 	var scrollheight = (document.getElementById("content").offsetHeight - layer["lauf"].offsetHeight);
	if ((richtung == "100") && (layertop - 1 > scrollheight))
	{
		layer["lauf"].style.top = (layertop - speed);
	}
	else if ((richtung == "0") && (layertop < -1))
	{
		layer["lauf"].style.top = (layertop + speed);
	}
	timer = setTimeout("scrollen(" + richtung + ", " + speed + ")", 180);
}
//+++++++++++++++++++++++++++++//
//Branchenindex
//+++++++++++++++++++++++++++++//
function branchenindex()
{
	document.write("<form name='direktesponsorensuche' action='' method='post'><table border='0' class='vollehoehe' align='center'><tr><td align='center'><br><select onChange='sponsorensuche(this.form.branche.options[this.form.branche.options.selectedIndex].value)' name='branche' style='font-family:Tahoma;font-size:8pt;color:#000000;width:160px'><option value='nichts'>Branchenindex</option><option value='nichts' class='nichts'>--- A ---</option><option value='branchenindex=a&branche=arzt'>&Auml;rzte</option><option value='nichts' class='nichts'>--- C ---</option><option value='branchenindex=c&branche=computer'>Computer</option><option value='nichts' class='nichts'>--- D ---</option><option value='branchenindex=d&branche=dekoration'>Dekoration</option><option value='nichts' class='nichts'>--- G ---</option><option value='branchenindex=g&branche=gesundheit'>Gesundheit</option><option value='nichts' class='nichts'>--- K ---</option><option value='branchenindex=k&branche=kampfsport'>Kampfsport</option><option value='branchenindex=k&branche=kommunikation'>Kommunikation</option><option value='branchenindex=k&branche=kunst'>Kunst</option><option value='nichts' class='nichts'>--- L ---</option><option value='branchenindex=l&branche=lebensmittel'>Lebensmittel</option><option value='nichts' class='nichts'>--- M ---</option><option value='branchenindex=m&branche=multimedia'>Multimedia</option><option value='nichts' class='nichts'>--- R ---</option><option value='branchenindex=r&branche=recht'>Rechtsanw&auml;lte</option><option value='branchenindex=r&branche=reise'>Reiseb&uuml;ros</option><option value='branchenindex=r&branche=restaurant'>Restaurants</option><option value='nichts' class='nichts'>--- T ---</option><option value='branchenindex=t&branche=tanz'>Tanzstudio</option><option value='branchenindex=t&branche=taxi'>Taxiunternehmen</option><option value='nichts' class='nichts'>--- U ---</option><option value='branchenindex=u&branche=unterhaltung'>Unterhaltung</option><option value='nichts' class='nichts'>--- V ---</option><option value='branchenindex=v&branche=veranstaltungen'>Veranstaltungen</option><option value='branchenindex=v&branche=vermoegen'>Verm&ouml;gensberatung</option><option value='nichts' class='nichts'>--- W ---</option><option value='branchenindex=w&branche=werbung'>Werbung</option></select><td></tr></table></form>");
}
function sponsorensuche(ziel)
{
	if (ziel=="nichts")
	{
		document.direktesponsorensuche.reset();
		document.direktesponsorensuche.branche.blur();
		return;
	}
	else
	{
		window.document.location.href="http://www.dar-wiesbaden.de/unterstuetzung/index.php?rubrik=sponsoren&"+ziel+"&subrubrik=anzeige1&lang=de";
		document.direktesponsorensuche.reset();
		document.direktesponsorensuche.branche.blur();
	}
}
function laufsteuerung()
{
	document.write("<tr><td height='17'><table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td height='17'>&nbsp;</td><td width='11'><a href='#' onmouseover='scrollen(100,4)' onmouseout='halt()'><img src='../images/scrollen_up_schnell.gif' border='0' width='11' height='11' align='middle' alt=''></a></td><td width='10'>&nbsp;</td><td width='11'><a href='#' onmouseover='scrollen(100,2)' onmouseout='halt()'><img src='../images/scrollen_up.gif' border='0' width='11' height='11' align='middle' alt=''></a></td><td width='10'>&nbsp;</td><td width='11'><a href='#' onmouseover='halt()'><img src='../images/scrollen_stop.gif' border='0' width='11' height='11' align='middle' alt=''></a></td><td width='10'>&nbsp;</td><td width='11'><a href='#' onmouseover='scrollen(0,2)' onmouseout='halt()'><img src='../images/scrollen_down.gif' border='0' width='11' height='11' align='middle' alt=''></a></td><td width='10'>&nbsp;</td><td width='11'><a href='#' onmouseover='scrollen(0,4)' onmouseout='halt()'><img src='../images/scrollen_down_schnell.gif' border='0' width='11' height='11' align='middle' alt=''></a></td><td>&nbsp;</td></tr></table></td></tr>");
}
//++++++++++++++ POP-UP f&uuml;r Wunsch-Bild +++++++++++++//
function bildholen(archiv,thema,ereignis,bildnummer)
{
	var holen=window.open("../archiv/bildholen.php?archiv="+archiv+"&thema="+thema+"&ereignis="+ereignis+"&bildnr="+bildnummer, "Wunschbild", "width=500,height=180,scrollbars=no,resizable=no,menubar=no,dependent=yes");
	holen.focus();
}//++++++++++++++ ENDE POP-UP f&uuml;r Wunsch-Bild +++++++++++++//
function wegbildholen(weg,archiv,thema,ereignis,bildnr)
{
         document.location.href="../archiv/bildholen.php?archiv="+archiv+"&thema="+thema+"&ereignis="+ereignis+"&bildnr="+bildnr+"&weg="+weg;
}
//++++++++++++++ POP-UP f&uuml;r Gutscheine +++++++++++++//
function gutschein(thema,sprache,preis)
{
	var popupgutschein=window.open("https://ssl.webpack.de/dar-wiesbaden.de/aktuell/popup_gutschein/bestellen_"+sprache+".php?thema="+thema+"&gutscheinpreis="+preis, "Gutschein", "width=700,height=515,scrollbars=no,resizable=no,menubar=no,dependent=yes");
	popupgutschein.focus();
}
//++++++++++++++ ENDE POP-UP f&uuml;r Gutscheine +++++++++++++//