<!--

var TICKER_CONTENT=[];
/* content start */
TICKER_CONTENT[0]='<img src="/ticker/icon.gif" alt="icon" align="left" width="35" height="27" \/><a href="http://www.amazon.de/Jenseits-vom-Mittelma%C3%9F-Unternehmenserfolg-Verdr%C3%A4ngungswettbewerb/dp/389749910X" target="_blank">Go-Caddy in \&quot;Jenseits vom Mittelmass\&quot; von Hermann Scherer<\/a>';
TICKER_CONTENT[1]='<img src="/ticker/icon.gif" alt="icon" align="left" width="35" height="27" \/><a href="http://www.pittimmagine.com/en/homef.php" target="_blank">Florence: 16.06. - 18.06. PITTI<\/a>';
TICKER_CONTENT[2]='<img src="/ticker/icon.gif" alt="icon" align="left" width="35" height="27" \/><a href="http://www.cosmofarma.com/index.asp" target="_blank">Rom: 07.05. - 09.05. COSMOFARMA<\/a>';
TICKER_CONTENT[3]='<img src="/ticker/icon.gif" alt="icon" align="left" width="35" height="27" \/><span>NEW/NEU: Go-Caddy ECO-SPEED: Lieferzeit/Delivery below 4 weeks !</span>';
TICKER_CONTENT[4]='<img src="/ticker/icon.gif" alt="icon" align="left" width="35" height="27" \/><a href="http://www.gds-online.com/" target="_blank">Duesseldorf: 10.09. - 12.09. GDS<\/a>';
TICKER_CONTENT[5]='<img src="/ticker/icon.gif" alt="icon" align="left" width="35" height="27" \/><a href="http://www.micamonline.com/" target="_blank">Milan: 19.09. - 22.09. MICAM<\/a>';
TICKER_CONTENT[6]='<img src="/ticker/icon.gif" alt="icon" align="left" width="35" height="27" \/><a href="http://www.fachpack.de/de/default.ashx" target="_blank">N&uuml;rnberg: 28.09. - 30.09. FACHPACK<\/a>';
TICKER_CONTENT[7]='<img src="/ticker/icon.gif" alt="icon" align="left" width="35" height="27" \/><a href="http://www.gastmesse.at/presse/pressetext.html?id=494" target="_blank">Salzburg: 06.11. - 10.11. GAST<\/a>';
TICKER_CONTENT[8]='<img src="/ticker/icon.gif" alt="icon" align="left" width="35" height="27" \/><a href="http://www.eurotier.de/" target="_blank">Hannover: 16.11. - 19.11. Eurotier<\/a>';
/* content stop */

/*
* Ticker START
* author: Stefan Lingler, sl@pixelwings.com 2007/03/14
*/
function TICKER(config) {

	window.TICKER_CNT=window.TICKER_CNT?window.TICKER_CNT:0;
	window.TICKER_CNT++;
	
	var self=this;
	self.config=config;
	self.timer=false;
	self.message_key=0;
	self.id=window.TICKER_CNT;
	self.count=0;
	self.container_width=0;
	self.pause = true;
	
	self.setContainer=function() {
		var tag='';
		tag+='<div id="TICKER_'+self.id+'_CONT" style="position:relative;top:'+self.config.top+'px;left:'+self.config.left+'px;width:'+self.config.target_width+'px;height:'+self.config.target_height+'px;visibility:visible;overflow:hidden;"><\/div>';
		return tag;
	}
	self.init=function() {
		document.getElementById(self.config.target).innerHTML=this.setContainer();
		self.container=document.getElementById('TICKER_'+self.id+'_CONT');
		
		if (self.config.content.length>0) {
			switch (self.config.prop) {
			case 'left':
				var w = 0;
  			do {
  				self.addContainer();
  				var div=document.getElementById('TICKER_'+self.id+'_CONT_'+self.count);
  				w += div.offsetWidth+self.config.space;
  			} while ( w < self.config.target_width );
  			break;
			case 'top':
				var h = 0;
  			do {
  				self.addContainer();
  				var div=document.getElementById('TICKER_'+self.id+'_CONT_'+self.count);
  				h += div.offsetHeight+self.config.space;
  			} while ( h < self.config.target_height );
				break;
			}
						
			self.speed=(100-self.config.speed)?(100-self.config.speed):1;
			self.startScroll();
			
			
		}
	}
	self.startScroll=function() {
		if (self.pause) clearInterval(self.pause);
  	if (self.timer) clearInterval(self.timer);
		if (self.config.content.length>1 || self.message_key==0) self.timer=setInterval(self.scroll,self.speed);
	}
	self.stopScroll=function() {
  	clearInterval(self.timer);
		clearInterval(self.pause);
	}
	self.addContainer=function() {
		
		self.count++;
		var left=0;
		var top=0;
		if ( self.count > 1 ) 
		switch (self.config.prop) {
			case 'left':
				var div=document.getElementById('TICKER_'+self.id+'_CONT_'+(self.count-1) );
				left = div.offsetWidth+div.offsetLeft+self.config.space; 
				/*var left=self.config.width;
				if (self.count>1) {
    			left+=self.config.space;
  			}*/
  			break;
			case 'top':
				var div=document.getElementById('TICKER_'+self.id+'_CONT_'+(self.count-1) );
				top = div.offsetHeight+div.offsetTop+self.config.space; 
    		/*var top=self.config.height;
    		if (self.count>1) {
    			top+=self.config.space;
  			}*/
  			break;
		}
		var wrap=self.config.wrap?'normal':'nowrap';
		self.container.innerHTML+='<div onMouseOver="'+self.config.obj+'.stopScroll();" onMouseOut="'+self.config.obj+'.startScroll();" id="TICKER_'+self.id+'_CONT_'+self.count+'" style="position:absolute;border:0px solid;top:'+top+'px;left:'+left+'px;white-space:'+wrap+';width:'+self.config.wrap_at+'px;">'+self.getMessage()+'<\/div>';
	}
	self.remContainer=function() {
		self.container.removeChild(self.container.firstChild);
	}
	self.scroll=function() {
		var div=document.getElementById('TICKER_'+self.id+'_CONT_'+self.count);
		var div_width,div_left,div_height,div_top=0;
		switch (self.config.prop) {
			case 'left':
      		div_width=div.offsetWidth;
					div_left=div.offsetLeft;
  			break;
			case 'top':
      		div_height=div.offsetHeight;
					div_top=div.offsetTop;
  			break;
		}
		if (self.config.content.length>1) {
      		if (div_width+div_left==self.config.target_width-1) {
      			self.addContainer();
      		}
      		if (div_height+div_top+self.config.space==self.config.target_height-1) {
      			self.addContainer();
      		}
		}
		
		for (var i=self.count;i>0;i--) {
			var div=document.getElementById('TICKER_'+self.id+'_CONT_'+i);
  		if (div) {
  			switch (self.config.prop) {
    			case 'left':
						var position=div.offsetWidth+div.offsetLeft;
						if (position>0) {
  						if (div.offsetLeft==0) {
								self.stopScroll();
								div.style.left=div.offsetLeft-1+'px';
								self.pause = setInterval(self.startScroll,(self.config.pause*1000));
  						}
							else div.style.left=div.offsetLeft-1+'px';
						}
						else self.remContainer();
      			break;
    			case 'top':
						var position=div.offsetHeight+div.offsetTop;
						
        		if (position>0) {
							//alert(div.id+' : '+div.offsetTop)
  						if (div.offsetTop==0) {
								self.stopScroll();
								div.style.top=div.offsetTop-1+'px';
								self.pause = setInterval(self.startScroll,(self.config.pause*1000));
  						}
							else div.style.top=div.offsetTop-1+'px';
						}
						else self.remContainer();
      			break;
    		}
			}
		}
	}
	self.getMessage=function() {
		if (self.config.content[self.message_key]==undefined) self.message_key=0;
		/*
		var content=self.config.content[self.message_key].split('|');
		var message=content[0];
		*/
		var message=self.config.content[self.message_key];
  	self.message_key++;
		return message;
	}
	self.init();
}
/*
* Ticker STOP
*/

//-->