
	/*
	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/PartnerCenter/axa-investment-managers/Portrait.html', 
		'http://www.fundresearch.de/PartnerCenter/barings/index.html',
		'http://www.fundresearch.de/PartnerCenter/carmignac-gestion/Portrait.html',
		'http://www.fundresearch.de/PartnerCenter/erste-sparinvest/index.html', 
		'http://www.fundresearch.de/PartnerCenter/bnp-paribas-ip/index.html', 
		'http://www.fundresearch.de/PartnerCenter/frankfurt-trust/index.html',
		'http://www.fundresearch.de/PartnerCenter/hansainvest/Willkommen.html',
		'http://www.fundresearch.de/PartnerCenter/ing-investment-management/index.html',
		'http://www.fundresearch.de/PartnerCenter/invesco/index.html',
		'http://www.fundresearch.de/PartnerCenter/legg-mason/index.html',
		'http://www.fundresearch.de/PartnerCenter/Metzler-Asset-Management/Portrait.html',
		'http://www.fundresearch.de/PartnerCenter/pictet/index.html',
		'http://www.fundresearch.de/PartnerCenter/robeco/index.html',
		'http://www.fundresearch.de/PartnerCenter/seb-asset-management/index.html',
		'http://www.fundresearch.de/PartnerCenter/vontobel/index.html',
		'http://fundanalyzer.de/PartnerCenter/bny-mellon-am/Portrait.html',
		'http://www.fundresearch.de/PartnerCenter/bank-gutmann/Portrait.html',
		'http://www.fundresearch.de/PartnerCenter/bellevue-asset-management/anlagekompetenz.html');

	var arrimg = new Array(
		"axainvestmentmanagers.gif",
		"barings.gif",
		"carmignacgestion.gif",
		"erstesparinvest.gif",
		"bnpparibas.gif",
		"frankfurttrust.gif",
		"hansainvest.gif",
		"inginvestmentmanagement.gif",
		"invesco.gif",
		"leggmason.gif",
		"Metzler.gif",
		"pictetfunds.gif",
		"robeco.gif",
		"seb.gif",
		"vontobel.gif",
		"bnymellon.gif",
		"bank_gutmann.gif",
		"BBBellevue.jpg");		

	// Anzahl Logos - 5 später mal arrlink.count()-4
	var c = Math.floor(Math.random()*15);
	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="122" 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="122" 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="122" 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="122" 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="122" height="72" border="0"></a><img src="images/laufband/pixel.gif" width="15" height="72" border="0"></nobr>';
	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="122" 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="122" 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="122" 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="122" height="72" border="0" alt="Versicherung"></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>')
	}
	}

