
var sliderwidth = 115; // Breite des Sliders
var sliderheight = 340; // Höhe des Sliders
var sliderwidthIE = 110; // Breite des Sliders IE
var sliderheightIE = 329; // Höhe des Sliders IE
var slidespeed = 1; // Geschwindigkeit des Sliders
var slidebgcolor = "#FFFFFF"; // Hintergrundfarbe
var slidedir = "runter"; // Richtung - "hoch" oder "runter"
var leftrightslide = new Array();
var copyspeed = slidespeed;
var i = 0;

/* HIER DIE LINKS UND BILDER ANPASSEN*/
leftrightslide[i++] = '<div><img src="../img/scrollbar/ps_overview.gif" style="margin-bottom:5px;border:0px;"></div>';

leftrightslide[i++] = '<div><a href="http://www.heytec-leipzig.de" target="_blank" title="Heytec - Daten- und Kassensysteme" alt="Heytec - Daten- und Kassensysteme"><img src="../img/scrollbar/sp_heytec.gif" style="margin-bottom:5px;border:0px;"></a></div>';

leftrightslide[i++] = '<div><a href="http://www.kristensenservice.de/index.php?navigation=5&level=1&stadt_cat=0" target="_blank" title="Kristensen Service GmbH - Imobilienangebote" alt="Kristensen Service GmbH - Imobilienangebote"><img src="../img/scrollbar/sp_kristensen.gif" style="margin-bottom:0px;border:0px;"></a></div>';

leftrightslide[i++] = '<div style="z-index: 1;"><a href="http://www.hotel3linden.de" target="_blank" title="Hotel 3 Linden - Leipzig" alt="Hotel 3 Linden - Leipzig"><img src="../img/scrollbar/sp_linden.gif" style="margin-bottom:0px;border:0px;"></a></div>';

leftrightslide[i++] = '<div><a href="http://www.bahn.de/sachsen" target="_blank" title="Bahn regional/Sachsen" alt="Bahn regional/Sachsen"><img src="../img/scrollbar/sp_bahn.gif" style="margin-bottom:5px;border:0px;"></a></div>';

leftrightslide[i++] = '<div><a href="http://www.bahn.de/regional/view/regionen/sachsen/freizeit/mitten_ueb.shtml" target="_blank" title="Bahn regional/Sachsen - mittenrein reisen - Ausflüge, die sich wirklich lohnen!" alt="Bahn regional/Sachsen - mittenrein reisen - Ausflüge, die sich wirklich lohnen!"><img src="../img/scrollbar/sp_mittenrein.gif" style="margin-bottom:5px;border:0px;"></a></div>';

leftrightslide[i++] = '<div><a href="http://www.gesundheitspraxishorn.de" target="_blank" title="Gesundheitspraxis Horn - Rehasport, Physiotherapie, medizinische Fitness, Wellness" alt="Gesundheitspraxis Horn - Rehasport, Physiotherapie, medizinische Fitness, Wellness"><img src="../img/scrollbar/sp_horn.gif" style="margin-bottom:5px;border:0px;"></a></div>';

leftrightslide[i++] = '<div><a href="http://www.stadtbranchenbuch.com/leipzig/1166912.html" target="_blank" title="Seidel und Fichtner GbR - Sanitärinstallation Leipzig" alt="Seidel und Fichtner GbR - Sanitärinstallation Leipzig"><img src="../img/scrollbar/sp_seidel.gif" style="margin-bottom:5px;border:0px;"></a></div>';

leftrightslide[i++] = '<div><a href="http://www.lwb.de" target="_blank" title="LWB - Leipziger Wohnungs- und Baugesellschaft mbh" alt="LWB - Leipziger Wohnungs- und Baugesellschaft mbh"><img src="../img/scrollbar/sp_lwb.gif" style="margin-bottom:0px;border:0px;"></a></div>';

leftrightslide[i++] = '<div><a href="http://www.lat-frank-griessig.de" target="_blank" title="Irena Frank & Marion Griessig GbR - Fachhandel für Arbeitsschutz / Industriebedarf" alt="Irena Frank & Marion Griessig GbR - Fachhandel für Arbeitsschutz / Industriebedarf"><img src="../img/scrollbar/sp_ifmg.gif" style="margin-bottom:0px;border:0px;"></a></div>';

leftrightslide[i++] = '<div><a href="http://www.evg-leipzig.de" target="_blank" title="Eisenbahn- und Verkehrsgewerkschaft (EVG) - http://www.evg-leipzig.de" alt="Eisenbahn- und Verkehrsgewerkschaft (EVG) - http://www.evg-leipzig.de"><img src="../img/scrollbar/sp_evg.gif" style="margin-bottom:0px;border:0px;"></a></div>';

/* AB HIER NICHTS MEHR ÄNDERN */
//leftrightslide = '<nobr>' + leftrightslide.join("") + '</nobr>';
leftrightslide = leftrightslide.join("");
var iedom = document.all || document.getElementById;
if (iedom)
	document.write('<span id="temp" style="visibility:hidden;position:absolute;left:-100px;top:-3000px;">' + leftrightslide + '</span>');
var actualheight = '';
var cross_slide, ns_slide;

function fillup(){
	if (iedom){
		cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2;
		cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3;
		cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide;
		actualheight=document.all? cross_slide.offsetHeight : document.getElementById("temp").offsetHeight;
		cross_slide2.style.top=actualheight+20+"px";
	}
	else if (document.layers){
		ns_slide=document.ns_slidemenu.document.ns_slidemenu2;
		ns_slide2=document.ns_slidemenu.document.ns_slidemenu3;
		ns_slide.document.write(leftrightslide);
		ns_slide.document.close();
		actualheight=ns_slide.document.height;
		ns_slide2.top=actualheight+20;
		ns_slide2.document.write(leftrightslide);
		ns_slide2.document.close();
	}
	if ( slidedir == "hoch" ) {
		lefttime=setInterval("slidetop()",30);
	} else {
		lefttime=setInterval("slidedown()",30);
	}
}
window.onload=fillup;
function slidetop(){
	if (iedom){
		if (parseInt(cross_slide.style.top)>(actualheight*(-1)+8))
			cross_slide.style.top=parseInt(cross_slide.style.top)-copyspeed+"px";
		else
			cross_slide.style.top=parseInt(cross_slide2.style.top)+actualheight+"px";

		if (parseInt(cross_slide2.style.top)>(actualheight*(-1)+8))
			cross_slide2.style.top=parseInt(cross_slide2.style.top)-copyspeed+"px";
		else
			cross_slide2.style.top=parseInt(cross_slide.style.top)+actualheight+"px";
	}
	else if (document.layers){
		if (ns_slide.top>(actualheight*(-1)+8))
			ns_slide.top-=copyspeed;
		else
			ns_slide.top=ns_slide2.top+actualheight;

		if (ns_slide2.top>(actualheight*(-1)+8))
			ns_slide2.top=copyspeed;
		else
			ns_slide2.top=ns_slide.top+actualheight;
	}
}

function slidedown(){
	if (iedom){
		if (parseInt(cross_slide.style.top)<(actualheight-8))
			cross_slide.style.top=parseInt(cross_slide.style.top)+copyspeed+"px";
		else
			cross_slide.style.top=parseInt(cross_slide2.style.top)-actualheight+"px";

		if (parseInt(cross_slide2.style.top)<(actualheight-8))
			cross_slide2.style.top=parseInt(cross_slide2.style.top)+copyspeed+"px";
		else
			cross_slide2.style.top=parseInt(cross_slide.style.top)-actualheight+"px";
	}
	else if (document.layers){
		if (ns_slide.top>(actualheight*(-1)+8))
			ns_slide.top-=copyspeed;
		else
			ns_slide.top=ns_slide2.top+actualheight;

		if (ns_slide2.top>(actualheight*(-1)+8))
			ns_slide2.top=copyspeed;
		else
			ns_slide2.top=ns_slide.top+actualheight;
	}
}

if (iedom||document.layers){
	with (document){
		document.write('<table border="0" cellspacing="0" cellpadding="0"><td>');
		if (iedom){
			/* Dies wird nur im Internet Explorer ausgeführt! */
			if (/*@cc_on ! @*/ false) {
				document.write('<div style="position:relative;width:' + sliderwidthIE + 'px;height:' + sliderheightIE + 'px;overflow:hidden: margin-left:-55px;">');
				document.write('<div style="position:absolute;width:' + sliderwidthIE + 'px;height:' + sliderheightIE + 'px;background-color:' + slidebgcolor + ';margin-left:-55px;" onmouseover="copyspeed=0" onmouseout="copyspeed=slidespeed">');
			} else {
				document.write('<div style="position:relative;width:' + sliderwidth + 'px;height:' + sliderheight + 'px;overflow:hidden">');
				document.write('<div style="position:absolute;width:' + sliderwidth + 'px;height:' + sliderheight + 'px;background-color:' + slidebgcolor + '" onmouseover="copyspeed=0" onmouseout="copyspeed=slidespeed">');
			}
			document.write('<div id="test2" style="position:absolute;left:0;top:0;"></div>');
			document.write('<div id="test3" style="position:absolute;top:-1000;left:0;"></div>');
			document.write('</div></div>');
			
		}
		else if (document.layers){
			document.write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>');
			document.write('<layer name="ns_slidemenu2" left=0 top=0 onmouseover="copyspeed=0" onmouseout="copyspeed=slidespeed"></layer>');
			document.write('<layer name="ns_slidemenu3" left=0 top=0 onmouseover="copyspeed=0" onmouseout="copyspeed=slidespeed"></layer>');
			document.write('</ilayer>');
		}
		document.write('</td></table>');
	}
}



