
		try {
  			if (window.parent.parent.CSSInject) {
				var listLength = window.parent.parent.CSSInject.length;
				for(var i=0; i<listLength; i++){
					var cssInjectUrl = window.parent.parent.CSSInject[i];
					document.writeln("<style type='text/css'>@import url("+cssInjectUrl+");</style>");
				};
  			}
		} catch (ex) {};
	
	function Scrollbox (ref, container, canvas, dx, dy, interval) {
  this.reference = ref;
  this.container = container;
  this.canvas = canvas;
  this.canvasWidth = 0;
  this.canvasHeight = 0;
  this.containerWidth = 0;
  this.containerHeight = 0;
  this.x = 0;
  this.y = 0;
  this.dx = dx;
  this.dy = dy;
	this.interval = interval;
}

Scrollbox.prototype.getContainer = function()
{
  var parentEl = document.getElementById(this.canvas).parentNode;
  while(parentEl != document.body)
  {
    if(parentEl.id === this.container) {
       return parentEl;
    }

    parentEl = parentEl.parentNode;
  }

  return null;
}

Scrollbox.prototype.init = function () {
  var container = this.getContainer();

  if(!container) {
    throw "Missing container element with ID = '" +this.container +"'";
  }
  var canvas = document.getElementById(this.canvas);
	var canvas_hidden = document.getElementById(this.canvas + "_hidden");

  if (document.defaultView && document.defaultView.getComputedStyle) {  // is mozilla
    this.canvasWidth = parseInt(document.defaultView.getComputedStyle(canvas_hidden, null).getPropertyValue("width"));
	this.canvasHeight = parseInt(document.defaultView.getComputedStyle(canvas, null).getPropertyValue("height"));
    this.containerWidth = parseInt(document.defaultView.getComputedStyle(container, null).getPropertyValue("width"));
    this.containerHeight = parseInt(document.defaultView.getComputedStyle(container, null).getPropertyValue("height"));
  } else if (canvas.currentStyle) { // is IE
    // this needs to be set first, so that the real dimensions can be accessed
    canvas.style.canvasWidth = container.style.width;

		// fallback if value is not available
		if (container.style.height == "" ){
			canvas.style.height = "23px";
		} else {
			// use half of the container size as height for the two canvas container
			canvas.style.height = (parseInt(container.style.height.substring(0, container.style.height.indexOf("px"))) / 2) + "px";
		};

		this.canvasWidth = canvas.offsetWidth;
		this.canvasHeight = canvas.offsetHeight;
		this.containerWidth = parseInt(container.currentStyle["width"]);
    this.containerHeight = parseInt(container.currentStyle["height"]);
  }
  this.x = this.containerWidth;
  setInterval(this.reference+".scroll()", this.interval);
}

Scrollbox.prototype.scroll = function () {
  var canvas = document.getElementById(this.canvas);
	if (this.x + this.canvasWidth < 0) {
		this.x = this.containerWidth;
  } else {
    this.x -= this.dx;
  }
	canvas.style.marginLeft = this.x+"px";
}
	try { if (window.parent.parent.CSSInject) { var listLength = window.parent.parent.CSSInject.length; for(var i=0; i<listLength; i++){ var cssInjectUrl = window.parent.parent.CSSInject[i]; document.writeln("<style type='text/css'>@import url("+cssInjectUrl+");</style>"); }; } } catch (ex) {};document.writeln('<div id="tinc_content" style="width:700px;height:21px;overflow:hidden;color:#000000;font-size:11px;text-decoration:none;font-weight:normal;font-style:normal;background-color:#E5E8ED;font-family:Arial, Helvetica, sans-serif"><div style="padding:4px;white-space:nowrap" id="canvas1" class="wfx_content"><img width="11" height="9" src="http://www.atoutransport.com/spicons/tinc/eueconfig/contentmodules/stockticker_arrow.gif"/> DAX : 						6144,06<span style="color:#008000"> (0,43%)</span>  	<img width="11" height="9" src="http://www.atoutransport.com/spicons/tinc/eueconfig/contentmodules/stockticker_arrow.gif"/> Dow : 						10340,69<span style="color:#FF0000"> (-1,03%)</span>  	<img width="11" height="9" src="http://www.atoutransport.com/spicons/tinc/eueconfig/contentmodules/stockticker_arrow.gif"/> ESTOXX : 						2744,34<span style="color:#008000"> (0,63%)</span>  	<img width="11" height="9" src="http://www.atoutransport.com/spicons/tinc/eueconfig/contentmodules/stockticker_arrow.gif"/> FTSE 100 : 						5423,81<span style="color:#008000"> (0,30%)</span>  	<img width="11" height="9" src="http://www.atoutransport.com/spicons/tinc/eueconfig/contentmodules/stockticker_arrow.gif"/> CAC40 : 						3668,74<span style="color:#008000"> (0,68%)</span>  	<img width="11" height="9" src="http://www.atoutransport.com/spicons/tinc/eueconfig/contentmodules/stockticker_arrow.gif"/> Nkk : 						9024,60<span style="color:#FF0000"> (-2,18%)</span>  	</div></div><div style="margin-top:8px;font-size:75%;text-align:right;width:700px">Cours actualisé à 10:30 et mis à disposition par finanzen.net (Smarthouse Media GmbH).</div><div style="top:-200px;left:-20000px;position:absolute;visibility:hidden" id="canvas1_hidden"><img width="11" height="9" src="http://www.atoutransport.com/spicons/tinc/eueconfig/contentmodules/stockticker_arrow.gif"/> DAX : 						6144,06<span style="color:#008000"> (0,43%)</span>  	<img width="11" height="9" src="http://www.atoutransport.com/spicons/tinc/eueconfig/contentmodules/stockticker_arrow.gif"/> Dow : 						10340,69<span style="color:#FF0000"> (-1,03%)</span>  	<img width="11" height="9" src="http://www.atoutransport.com/spicons/tinc/eueconfig/contentmodules/stockticker_arrow.gif"/> ESTOXX : 						2744,34<span style="color:#008000"> (0,63%)</span>  	<img width="11" height="9" src="http://www.atoutransport.com/spicons/tinc/eueconfig/contentmodules/stockticker_arrow.gif"/> FTSE 100 : 						5423,81<span style="color:#008000"> (0,30%)</span>  	<img width="11" height="9" src="http://www.atoutransport.com/spicons/tinc/eueconfig/contentmodules/stockticker_arrow.gif"/> CAC40 : 						3668,74<span style="color:#008000"> (0,68%)</span>  	<img width="11" height="9" src="http://www.atoutransport.com/spicons/tinc/eueconfig/contentmodules/stockticker_arrow.gif"/> Nkk : 						9024,60<span style="color:#FF0000"> (-2,18%)</span>  	</div>');
		__cm_indices = new Scrollbox('__cm_indices', 'tinc_content', 'canvas1', 1, 10, 20);

		function __cm_startTicker () {
			__cm_indices.init();
			
		}
		if (window.attachEvent) {
			window.attachEvent("onload", __cm_startTicker);
		} else if (window.addEventListener) {
			window.addEventListener("load", __cm_startTicker, false);
		}
	
