//<![CDATA[
tImgPath 			= "/includes/templates/Standard/_js/images/";
tItems				= new Array();

// --- Die News Elemente
tItems.push('<a href="http://www.sew-eurodrive.de/" style="text-decoration:none"><img src="' + tImgPath +  'sew.gif" alt="" style="border:0" /></a>');
tItems.push('<a href="http://www.bosch.de/" style="text-decoration:none"><img src="' + tImgPath +  'bosch.gif" alt="" style="border:0" /></a>');
tItems.push('<a href="http://www.milwaukee.de/" style="text-decoration:none"><img src="' + tImgPath +  'milwaukee.gif" alt="" style="border:0" /></a>');
tItems.push('<a href="http://www.vem-group.com//" style="text-decoration:none"><img src="' + tImgPath +  'vem2.gif" alt="" style="border:0" /></a>');
tItems.push('<a href="http://www.aeg-pt.de/" style="text-decoration:none"><img src="' + tImgPath +  'aeg.gif" alt="" style="border:0" /></a>');
tItems.push('<a href="http://www.makita.de/" style="text-decoration:none"><img src="' + tImgPath +  'makita.gif" alt="" style="border:0" /></a>');
tItems.push('<a href="http://www.metabo.de/" style="text-decoration:none"><img src="' + tImgPath +  'metabo.gif" alt="" style="border:0" /></a>');
tItems.push('<a href="http://www.projahn.de/" style="text-decoration:none"><img src="' + tImgPath +  'projahn.gif" alt="" style="border:0" /></a>');
tItems.push('<a href="http://www.oddesse.de/" style="text-decoration:none"><img src="' + tImgPath +  'oddesse.gif" alt="" style="border:0" /></a>');
tItems.push('<a href="http://www.rems.de/" style="text-decoration:none"><img src="' + tImgPath +  'rems.gif" alt="" style="border:0" /></a>');
tItems.push('<a href="http://www.flex-tools.com/" style="text-decoration:none"><img src="' + tImgPath +  'flex.gif" alt="" style="border:0" /></a>');
tItems.push('<a href="http://www.rothenberger.com/" style="text-decoration:none"><img src="' + tImgPath +  'rothenberger.gif" alt="" style="border:0" /></a>');


// --- Delimiter zwischen den einzelnen News
tDelimiter  =' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ';

// --- Interval in ms
tInterval   		= 20;

// --- Stop bei mouseover?true:false
tStop       		= true;

// --- Falls Leeraum zwischen Items...hier Wert erhoehen...minimum:1
tRepeat     		= 2;

// --- Rahmen
tBorder     		= '0';

// --- Breite
tWidth      		= 940;

// --- Höhe
tHeight     		= 35;

//--- Abstand des Inhalts(#ticker) zum Rahmen(#marquee), ist absolut posinioniert. 
tXY    				= 'left:0;top:5px;';

//--- Hintergrundfarbe
tBackgroundColor	= '#FFFFFF';

// --- Linkziele des Tickers im neuen Fenster öffnen?
tLinkNewWin			= true;

function tSetTarget( obj ) {
	obj.setAttribute( 'target', '_blank' );
}

function tBlurMe() { this.blur(); }

/*
 * DER TICKER
 *
 */
IE  = document.all&&!window.opera;
DOM = document.getElementById&&!IE;

if( DOM || IE ) {
    var tGo,
	tPos  = 0,
	tStop = tStop?'onmouseover="clearInterval(tGo)"'+ 'onmouseout="tGo=setInterval(\'tTicken()\','+tInterval+')"':'',
	tTxt  = tDelimiter+tItems.join(tDelimiter),
	tItems = tTxt;
	
	for( i = 1; i < tRepeat; ++i ) {
		tItems+=tTxt;
	}
	  
	document.write( '<div id="marquee" style="position:relative;overflow:hidden;border:' + tBorder +
					';width:' + tWidth + 'px;height:' + tHeight + 'px;' + 'background:' + tBackgroundColor + ';">' +
					'<div style="position:absolute;' + tXY + 'width:' + tWidth + 'px;height:' + tHeight + 'px;'+
					'overflow:hidden;clip:rect(0px '+tWidth+'px '+tHeight+'px 0px)">'+
					'<span id="ticker" style="color:#fff; white-space:nowrap;position:relative;"' + tStop + '>' + tItems + 
					'</span></div></div>' );
	
	tObj = IE ? document.all.ticker : document.getElementById( 'ticker' );
    
	if ( tLinkNewWin ) {
		if ( ticker = document.getElementById( "ticker" ) ) {
			aTicker = ticker.getElementsByTagName( "a" );
			for( i=0; i < aTicker.length; i++ )	{
				aTicker[i].onfocus = tBlurMe;
				tSetTarget( aTicker[i] );
			}	
		}
	}

	function tTicken() {
        tOffset = tObj.offsetWidth/tRepeat;
        if( Math.abs( tPos ) > tOffset ) {
            tPos = 0;
        }
        tObj.style.left = tPos + 'px';
        tPos = parseInt( tPos ) - 1;
    }
		
}
//]]