
/*
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="125px"
var marqueewidthNumerisch = 125
//Specify the marquee's height
var marqueeheight="125px"
//Specify the marquee's marquee speed (larger is faster 1-10)
var marqueespeed=2
//configure background color:
var marqueebgcolor="#777777"
//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):

// http://www.fundresearch.de/js/laufband.js

// Alle KAGs
var kags = new Array();
// Stand 13.10.2010:
kags[0] = "<a href=\"http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=13&pkRubrikNr=81\" target=\"_blank\"><img src=\"http://www.fundresearch.de/pc/partner/frtrust/grafik/logo_13.jpg\" width=\"95\" height=\"72\" class=\"boxmitte\"></a>";
kags[1] = "<a href=\"http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=22&pkRubrikNr=81\" target=\"_blank\"><img src=\"http://www.fundresearch.de/pc/partner/seb/grafik/logo_22.jpg\" width=\"95\" height=\"72\" class=\"boxmitte\"></a>";
kags[2] = "<a href=\"http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=29&pkRubrikNr=405\" target=\"_blank\"><img src=\"http://www.fundresearch.de/pc/partner/hansainvest/grafik/logo_29.jpg\" width=\"95\" height=\"72\" class=\"boxmitte\"></a>";
kags[3] = "<a href=\"http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=93&pkRubrikNr=81\" target=\"_blank\"><img src=\"http://www.fundresearch.de/pc/partner/vontobel/grafik/logo_93.jpg\" width=\"95\" height=\"72\" class=\"boxmitte\"></a>";
kags[4] = "<a href=\"http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=120&pkRubrikNr=81\" target=\"_blank\"><img src=\"http://www.fundresearch.de/pc/partner/barings/grafik/logo_120.gif\" width=\"95\" height=\"72\" class=\"boxmitte\"></a>";
kags[5] = "<a href=\"http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=154&pkRubrikNr=81\" target=\"_blank\"><img src=\"http://www.fundresearch.de/pc/partner/axa/grafik/logo_154.jpg\" width=\"95\" height=\"72\" class=\"boxmitte\"></a>";
kags[6] = "<a href=\"http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=161&pkRubrikNr=80\" target=\"_blank\"><img src=\"http://www.fundresearch.de/pc/partner/invesco/grafik/logo_161.jpg\" width=\"95\" height=\"72\" class=\"boxmitte\"></a>";
kags[7] = "<a href=\"http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=179&pkRubrikNr=80\" target=\"_blank\"><img src=\"http://www.fundresearch.de/pc/partner/pictet/grafik/logo_179.jpg\" width=\"95\" height=\"72\" class=\"boxmitte\"></a>";
kags[8] = "<a href=\"http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=221&pkRubrikNr=81\" target=\"_blank\"><img src=\"http://www.fundresearch.de/pc/partner/espa/grafik/logo_221.gif\" width=\"95\" height=\"72\" class=\"boxmitte\"></a>";
kags[9] = "<a href=\"http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=237&pkRubrikNr=80\" target=\"_blank\"><img src=\"http://www.fundresearch.de/pc/partner/robeco/grafik/logo_237.jpg\" width=\"95\" height=\"72\" class=\"boxmitte\"></a>";
kags[10] = "<a href=\"http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=559&pkRubrikNr=81\" target=\"_blank\"><img src=\"http://www.fundresearch.de/pc/partner/fortis/grafik/logo_559.jpg\" width=\"95\" height=\"72\" class=\"boxmitte\"></a>";
kags[11] = "<a href=\"http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=648&pkRubrikNr=80\" target=\"_blank\"><img src=\"http://www.fundresearch.de/pc/partner/legg_mason/grafik/logo_648.gif\" width=\"95\" height=\"72\" class=\"boxmitte\"></a>";
kags[12] = "<a href=\"http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=662&pkRubrikNr=81\" target=\"_blank\"><img src=\"http://www.fundresearch.de/pc/partner/carmignac/grafik/logo_662.jpg\" width=\"95\" height=\"72\" class=\"boxmitte\"></a>";
kags[13] = "<a href=\"http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=664&pkRubrikNr=81\" target=\"_blank\"><img src=\"http://www.fundresearch.de/pc/partner/wmam/grafik/logo_664.gif\" width=\"95\" height=\"72\" class=\"boxmitte\"></a>";
kags[14] = "<a href=\"http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=705&pkRubrikNr=81\" target=\"_blank\"><img src=\"http://www.fundresearch.de/pc/partner/ing_im/grafik/logo_705.jpg\" width=\"95\" height=\"72\" class=\"boxmitte\"></a>";
kags[15] = "<a href=\"http://www.fundresearch.de/index6.asp?intPageID=20&pkKAGNr=754&pkRubrikNr=81\" target=\"_blank\"><img src=\"http://www.fundresearch.de/pc/partner/ipg/grafik/logo_754.gif\" width=\"95\" height=\"72\" class=\"boxmitte\"></a>";


function zufall()
{
	return (Math.random() - Math.random());
}
kags.sort(zufall);
var marqueecontent = '<nobr>'+ kags.join("") +'</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:-100px;left:-9000px">'+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=18+"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
}
lefttime=setInterval("scrollmarquee(laufrichtung)",16)
}
function pc_hg()
{
	setTimeout(populate,2600);
}

//window.onload=populate
window.onload=pc_hg

function scrollmarquee(strLaufrichtung){

if (iedom)
{
	//alert(laufrichtung)
	if (strLaufrichtung == "rechts")
	{
		//alert(cross_marquee.style.left);
		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))
		if (parseInt(cross_marquee.style.left)>((actualwidth-(-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";
			//cross_marquee.style.left=parseInt(marqueewidth)+8+"px"
			//alert(parseInt(cross_marquee.style.left));
			//alert(actualwidth);
		}
	}
}
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))
		if (ns_marquee.left>((actualwidth-(-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>')
if (iedom){
write('<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';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:absolute;left:0px"><img src="/gfx/t.gif" width="125" height="125" alt=""></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"><img src="/gfx/t.gif" width="125" height="125" alt="" border="0"></layer>')
write('</ilayer>')
}
document.write('</td></tr></table>')
}
}


