
<!--

var CIS_TICKER_CONTENT=[
'2010/08/31, Hungary:<br /><a href=\"http://www.technology-market.eu/ircwss2/Profiles/10_HU_50R8_3IES.html\">High tech fire protection system for storage tanks and oil tankers</a>|', 
'2010/08/31, Hungary:<br /><a href=\"http://www.technology-market.eu/ircwss2/Profiles/10_HU_50S2_3IDT.html\">Computerized solution for product and technology identification and qualification systems built into production lines</a>|', 
'2010/08/31, Hungary:<br /><a href=\"http://www.technology-market.eu/ircwss2/Profiles/10_HU_50R8_3IFT.html\">PS-FP7 DIRA-GREEN - New non-destructive inspection tool based on digital radiography technology in powder metallurgy</a>|', 
'2010/08/31, United States:<br /><a href=\"http://www.technology-market.eu/ircwss2/Profiles/10_US_87GA_3IFQ.html\">Atmospheric Cold Plasma Technology to Functionalize Thermoplastic Materials for Improved Adhesion with Dienic Rubbers</a>|', 
'2010/08/31, United States:<br /><a href=\"http://www.technology-market.eu/ircwss2/Profiles/10_US_87GA_3IFP.html\">Compact High Performance Automotive Head-Up Display</a>|', 
'2010/08/31, Germany:<br /><a href=\"http://www.technology-market.eu/ircwss2/Profiles/08_DE_1699_0IPU.html\">Technology for restoration of lakes by nutrient-precipitation</a>|', 
'2010/08/31, Germany:<br /><a href=\"http://www.technology-market.eu/ircwss2/Profiles/09_DE_1699_3CRQ.html\">Technology for Plant Vitality Monitoring</a>|', 
'2010/08/31, Turkey:<br /><a href=\"http://www.technology-market.eu/ircwss2/Profiles/10_TR_99PB_3I24.html\">Template mattress</a>|', 
'2010/08/31, United States:<br /><a href=\"http://www.technology-market.eu/ircwss2/Profiles/10_US_87GA_3IF4.html\">Improved System for Shipping Products at Cold or Freezer Temperatures for Extended Periods</a>|', 
'2010/08/31, United States:<br /><a href=\"http://www.technology-market.eu/ircwss2/Profiles/10_US_87GA_3IF1.html\">Inexpensive Arsenic Removal for Water Sanitization</a>|', 
'2010/08/31, Russian Federation:<br /><a href=\"http://www.technology-market.eu/ircwss2/Profiles/09_RU_86FG_3EV3.html\">Laser pincer for manipulation of micro- and nano-particles</a>|', 
'2010/08/31, United Kingdom:<br /><a href=\"http://www.technology-market.eu/ircwss2/Profiles/10_GB_42O1_3IET.html\">Specialised high performance Zirconia Flow Control Nozzle Manufacturer seeks European partners with technical steel industry expertise.</a>|', 
'2010/08/31, Poland:<br /><a href=\"http://www.technology-market.eu/ircwss2/Profiles/09_PL_63AY_3ES8.html\">Technology of single devices and lines for spirit industry like: sets for producing biofuel, equipment for making vodka</a>|', 
'2010/08/31, Poland:<br /><a href=\"http://www.technology-market.eu/ircwss2/Profiles/10_PL_62AP_3IER.html\">Cooling and transportation station for the production of PVC windows</a>|', 
'2010/08/31, Poland:<br /><a href=\"http://www.technology-market.eu/ircwss2/Profiles/10_PL_63AZ_3IF7.html\">Machines for cutting foamed polystyrene (horizontal/vertical)</a>|'
];

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

	window.CIS_TICKER_CNT=window.CIS_TICKER_CNT?window.CIS_TICKER_CNT:0;
	window.CIS_TICKER_CNT++;
	
	var self=this;
	self.config=config;
	self.timer=false;
	self.message_key=0;
	self.id=window.CIS_TICKER_CNT;
	self.count=0;
	self.container_width=0;
	self.pause = true;
	
	self.setContainer=function() {
		var tag='';
		tag+='<div id="CIS_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('CIS_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('CIS_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('CIS_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('CIS_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('CIS_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="CIS_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('CIS_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('CIS_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];
  	self.message_key++;
		return message;
	}
	self.init();
}
/*
* Ticker STOP
*/
//-->
