
	/*
	Cross browser Marquee script- © Dynamic Drive (www.dynamicdrive.com)
	For full source code, 100's more DHTML scripts, and Terms Of Use, visit http://www.dynamicdrive.com
	Credit MUST stay intact
	*/
	// slightly modified by frank wallace (www.smarthouse.de) to scroll back and forth
	//Specify the marquee's width (in pixels)
	var marqueewidth="564px"
	var marqueewidthNumerisch = 564
	//Specify the marquee's height
	var marqueeheight="72px"
	//Specify the marquee's marquee speed (larger is faster 1-10)
	var marqueespeed=0
	//configure background color:
	var marqueebgcolor=""
	//Pause marquee onMousever (0=no. 1=yes)?
	var pauseit=1
	
	var laufrichtung = "links";
	
	//Specify the marquee's content (don't delete <nobr> tag)
	//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):
	 
	//var arrlink = new Array('http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=237&pkRubrikNr=80','http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=113&pkRubrikNr=80','http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=235&pkRubrikNr=80', 'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=201&pkRubrikNr=80','http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=663&pkRubrikNr=81','http://www.dbxtrackers.de/','http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=22&pkRubrikNr=80','http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=117&pkRubrikNr=80','http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=93&pkRubrikNr=81','http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=559&pkRubrikNr=81','http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=298&pkRubrikNr=81','http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=685&pkRubrikNr=81');
	//var arrimg = new Array("logo_237.jpg","logo_113.jpg","logo_235.jpg","logo_201.jpg","logo_663.jpg","logo_1000.gif","logo_22.jpg","logo_117.jpg","logo_93.jpg","logo_559.jpg","logo_298.jpg","logo_685.jpg");
	var arrlink = new Array(
		'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=664&pkRubrikNr=80', 
		'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=154&pkRubrikNr=81',
		'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=120&pkRubrikNr=80',
		'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=662&pkRubrikNr=80', 
//		'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=108&pkRubrikNr=81',
		'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=221&pkRubrikNr=80', 
		//'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=578&pkRubrikNr=81',
		'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=559&pkRubrikNr=81',
		'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=13&pkRubrikNr=80',
		'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=29&pkRubrikNr=405',
		'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=705&pkRubrikNr=80',
//'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=246&pkRubrikNr=81',
		'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=161&pkRubrikNr=80',
		'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=754&pkRubrikNr=80',
		//'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=192&pkRubrikNr=80',		
//		'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=113&pkRubrikNr=80',
		'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=179&pkRubrikNr=80',
//		'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=298&pkRubrikNr=81',
		'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=237&pkRubrikNr=80',
	//	'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=100&pkRubrikNr=81',
		'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=22&pkRubrikNr=80',
	//'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=532&pkRubrikNr=80',
		'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=648&pkRubrikNr=80',
		//'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=235&pkRubrikNr=80',
		'http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=93&pkRubrikNr=80');

	var arrimg = new Array(
		"logo_664.gif",
		"logo_154.jpg",
		"logo_120.gif",
		"logo_662.jpg",
		//"logo_108.jpg",
		"logo_221.gif",
		//"logo_578.gif",
		"logo_559.jpg",
		"logo_13.jpg",
		"logo_29.jpg",
		"logo_705.jpg",
		//"logo_246.jpg",
		"logo_161.jpg",
		"logo_754.jpg",
	//	"logo_192.gif",		
	//	"logo_113.jpg",
		"logo_179.jpg",
		//"logo_298.jpg",
		"logo_237.jpg",
		//"logo_100.jpg",
		"logo_22.jpg",
		//"logo_532.gif",
		"logo_648.gif",
		"logo_93.jpg");		

	// Anzahl Logos - 5 später mal arrlink.count()-4
	var c = Math.floor(Math.random()*12);
	var kag1 = parseInt(c);
	var kag2 = kag1+1;
	var kag3 = kag2+1;
	var kag4 = kag3+1;
	var kag5 = kag4+1;
	var marqueecontent='<nobr><img src="images/laufband/pixel.gif" width="5" height="72" border="0"><a href="'+arrlink[kag1]+'" target="_blank"><img src="images/laufband/'+arrimg[kag1]+'" width="95" height="72" border="0" alt="Makler"></a><img src="images/laufband/pixel.gif" width="15" height="72" border="0"><a href="'+arrlink[kag2]+'" target="_blank"><img src="images/laufband/'+arrimg[kag2]+'" width="95" height="72" border="0" alt="Maklerverträge"></a><img src="images/laufband/pixel.gif" width="15" height="72" border="0"><a href="'+arrlink[kag3]+'" target="_blank"><img src="images/laufband/'+arrimg[kag3]+'" width="95" height="72" border="0" alt="Investmentfonds"></a><img src="images/laufband/pixel.gif" width="15" height="72" border="0"><a href="'+arrlink[kag4]+'" target="_blank"><img src="images/laufband/'+arrimg[kag4]+'" width="95" height="72" border="0" alt="Versicherung"></a><img src="images/laufband/pixel.gif" width="15" height="72" border="0"><a href="'+arrlink[kag5]+'" target="_blank"><img src="images/laufband/'+arrimg[kag5]+'" width="95" height="72" border="0"></a><img src="images/laufband/pixel.gif" width="15" height="72" border="0"></nobr>';
	

	
	////NO NEED TO EDIT BELOW THIS LINE////////////
	marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1) //slow speed down by 1 for NS
	var copyspeed=marqueespeed
	var pausespeed=(pauseit==0)? copyspeed: 0
	var iedom=document.all||document.getElementById
	if (iedom)
	document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-9000px;left:-1000px;">'+marqueecontent+'</span>')
	var actualwidth=''
	var cross_marquee, ns_marquee
	 
	function populate(){
	if (iedom){
	cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
	cross_marquee.style.left=5+"px"
	cross_marquee.innerHTML=marqueecontent
	actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth
	}
	else if (document.layers){
	ns_marquee=document.ns_marquee.document.ns_marquee2
	ns_marquee.left=+8
	ns_marquee.document.write(marqueecontent)
	ns_marquee.document.close()
	actualwidth=ns_marquee.document.width
	}
	var lefttime=setInterval("scrollmarquee(laufrichtung)",20)
	}
	window.onload=populate
	
	function scrollmarquee(strLaufrichtung){
	
	if (iedom)
	{
		if (strLaufrichtung == "rechts")
		{
			if (parseInt(cross_marquee.style.left)<18)
			{
				//cross_marquee.style.left=parseInt(cross_marquee.style.left)+copyspeed+"px"
				laufrichtung = "rechts";
			}
			else
			{
				//cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px"
				laufrichtung = "links";
			}
		}
		else
		{
			if (parseInt(cross_marquee.style.left)>((actualwidth-(marqueewidthNumerisch-20))*(-1)+8))
			{
				//cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px"
				laufrichtung = "links";
			}
			else
			{
				//cross_marquee.style.left=parseInt(cross_marquee.style.left)+copyspeed+"px"
				laufrichtung = "rechts";
			}
		}
	}
	else if (document.layers)
	{
		if (strLaufrichtung == "rechts")
		{
			if (ns_marquee.left<18)
			{
				ns_marquee.left-=copyspeed*(-1)
				laufrichtung = "rechts";
			}
			else
			{
				ns_marquee.left-=copyspeed
				laufrichtung = "links";
			}
		}
		else
		{
			if (ns_marquee.left>((actualwidth-(marqueewidthNumerisch-20))*(-1)+8))
			{
				ns_marquee.left-=copyspeed
				laufrichtung = "links";
			}
			else
			{
				ns_marquee.left-=copyspeed*(-1)
				ns_marquee.left=parseInt(marqueewidth)+8
				laufrichtung = "rechts";
			}
		}
	}
	}
	 
	if (iedom||document.layers){
	with (document){
	document.write('<table border="0" cellspacing="0" cellpadding="0"><tr><td valign="top">')
	if (iedom){
	write('<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';background-color:'+marqueebgcolor+';overflow:hidden">')
	//write('<div style="position:absolute;width:'+marqueewidth+';height:'+marqueeheight+';background-color:'+marqueebgcolor+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">')
	write('<div id="iemarquee" style="position:relative;left:0px;top:0px"></div>')
	//write('</div>')
	write('</div></div>')
	}
	else if (document.layers){
	write('<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee" bgColor='+marqueebgcolor+'>')
	write('<layer name="ns_marquee2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>')
	write('</ilayer>')
	}
	document.write('</td></tr></table>')
	}
	}
