<!--
var CIS_TICKER_CONTENT=[
'2012-02-22 17:58:57, France:<br /><a href=\"viewProfile.asp?type=OFFER&ref=11+FR+38n0+3NGL\" target=\"_blank\">Expertise in biometrics equipment used in hard environments</a>|', 
'2012-02-22 17:56:07, France:<br /><a href=\"viewProfile.asp?type=OFFER&ref=12+FR+38n0+3O4L\" target=\"_blank\">New Encapsulation technology for the intelligent textiles industry</a>|', 
'2012-02-22 17:54:53, France:<br /><a href=\"viewProfile.asp?type=OFFER&ref=12+FR+38n0+3O4C\" target=\"_blank\">New encapsulation technology of both hydrophilic and lipophilic actives for the cosmetic and pharmaceuticals sectors</a>|', 
'2012-02-22 17:47:46, Sweden:<br /><a href=\"viewProfile.asp?type=REQUEST&ref=12+SE+672F+3O7Q\" target=\"_blank\">Swing door operator manufacturer</a>|', 
'2012-02-22 17:45:42, Spain:<br /><a href=\"viewProfile.asp?type=OFFER&ref=12+ES+24D8+3O7V\" target=\"_blank\">Utility for Isothermal Titration Calorimetry Analysis & Stoichiometric Examination</a>|', 
'2012-02-22 17:41:45, Spain:<br /><a href=\"viewProfile.asp?type=OFFER&ref=12+ES+24D8+3O5B\" target=\"_blank\">New method for large volume fabrication of non simetric metallic nanomaterials</a>|', 
'2012-02-22 17:38:46, Spain:<br /><a href=\"viewProfile.asp?type=OFFER&ref=12+ES+28G2+3O7R\" target=\"_blank\">Geologic storage of soluble gases: A sustainable and capture-free solution.</a>|', 
'2012-02-22 17:35:21, Spain:<br /><a href=\"viewProfile.asp?type=OFFER&ref=12+ES+28G2+3O6S\" target=\"_blank\">Khaki derivatives that allow its consumption along the year</a>|', 
'2012-02-22 17:24:53, Spain:<br /><a href=\"viewProfile.asp?type=OFFER&ref=12+ES+28G2+3O2A\" target=\"_blank\">Method for the treatment and prevention of the Alzheimer disease and of other pathologies associated with somatic polyploidy</a>|', 
'2012-02-22 17:21:13, Austria:<br /><a href=\"viewProfile.asp?type=OFFER&ref=12+AT+0105+3O7F\" target=\"_blank\">Novel process for utilizing residues from biogas plants considerably reducing costs</a>|', 
'2012-02-22 17:18:01, Austria:<br /><a href=\"viewProfile.asp?type=OFFER&ref=12+AT+0105+3O7J\" target=\"_blank\">Cost-efficient thermal and catalytic incineration plants for exhaust air cleaning</a>|', 
'2012-02-22 16:41:09, Italy:<br /><a href=\"viewProfile.asp?type=REQUEST&ref=12+IT+532V+3O50\" target=\"_blank\">High performance Computer Numerical Controlled (CNC) machines</a>|', 
'2012-02-22 16:39:30, Italy:<br /><a href=\"viewProfile.asp?type=REQUEST&ref=12+IT+532V+3O51\" target=\"_blank\">Extension of the shelf life of fresh vegetables</a>|', 
'2012-02-22 16:36:25, Italy:<br /><a href=\"viewProfile.asp?type=REQUEST&ref=12+IT+532V+3O52\" target=\"_blank\">Innovative technologies for agro-food and biopharmaceutical production</a>|', 
'2012-02-22 16:35:17, Italy:<br /><a href=\"viewProfile.asp?type=REQUEST&ref=12+IT+532V+3O53\" target=\"_blank\">Quick and certified techniques and tools for pathogens detection in foodstuffs</a>|', 
'2012-02-22, Belgium:<br /><a href=\"viewProfile.asp?type=BCP&ref=20120222018\" target=\"_blank\">Belgian language agency specializing in top-level text production for B2B and B2C purposes (copy-writing, translations/creative adaptations, text rewriting/upgrading, and journalism in French, Dutch, English and German) willing to extend the service range of a corporate communication and/or advertising agency is looking for reciprocal production or subcontracting activities or outsourcing.</a>|', 
'2012-02-21, France:<br /><a href=\"viewProfile.asp?type=BCP&ref=20120221053\" target=\"_blank\">French company specialised in distribution of carpets in France is looking for new carpet suppliers in Belgium and will offer them trade intermediary services as a distributor</a>|', 
'2012-02-21, France:<br /><a href=\"viewProfile.asp?type=BCP&ref=20120221039\" target=\"_blank\">French company manufacturing lighting devices in ceramic and brass is looking for a commercial agent in the UK and Ireland.</a>|', 
'2012-02-20, Israel:<br /><a href=\"viewProfile.asp?type=BCP&ref=20120220041\" target=\"_blank\">Israeli company specializing in developing, manufacturing and marketing a complete smart grid solution for electricity, water and gas utilities is seeking trade intermediary services and partners for joint ventures.</a>|', 
'2012-02-17, Romania:<br /><a href=\"viewProfile.asp?type=BCP&ref=20120217024\" target=\"_blank\">Romanian company specialized in potato production and wheat is looking for trade intermediary services in EU countries for their products.</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
*/
//-->

