/***********************************************
* DHTML Ticker script- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var tickercontent=new Array()
tickercontent[0]=String.fromCharCode(60)  + 'a href="http://www.pelephone.co.il" 			onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoPelephone.gif" alt="Pelephone" class="RotatingLogos"/' 								+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'CDMA cellular provider'
tickercontent[1]=String.fromCharCode(60)  + 'a href="http://www.htc.com" 					onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoHTC.gif" alt="htc" class="RotatingLogos"/' 										+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'HTC Corporation'
tickercontent[2]=String.fromCharCode(60)  + 'a href="http://www.orange.co.il" 				onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoOrange.gif" alt="Orange" class="RotatingLogos"/' 									+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'Orange'
tickercontent[3]=String.fromCharCode(60)  + 'a href="http://www.hp.com" 					onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoHP.gif" alt="HP" class="RotatingLogos"/' 										+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'Hewlett-Packard'
tickercontent[4]=String.fromCharCode(60)  + 'a href="http://www.cellcom.co.il" 				onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoCellcom.gif" alt="Cellcom" class="RotatingLogos"/' 									+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'GSM cellular provider'
tickercontent[5]=String.fromCharCode(60)  + 'a href="http://www.motorola.com/il" 			onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoMotorola.gif" title="Motorola" alt="Motorola" class="RotatingLogos"/' 						+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'Motorola cellular'
tickercontent[6]=String.fromCharCode(60)  + 'a href="http://www.asus.com" 					onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoASUS.gif" 	title="ASUS" alt="ASUS" class="RotatingLogos"/' 							+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'ASUS International'
tickercontent[7]=String.fromCharCode(60)  + 'a href="http://www.HP.com" 					onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoCompaq.gif" 	title="Compaq" alt="Compaq" class="RotatingLogos"/' 						+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'Compaq'
tickercontent[8]=String.fromCharCode(60)  + 'img src="images/LogoPSC.gif" 					onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 																																				'br/' + String.fromCharCode(62) + 'PSC terminals'
tickercontent[9]=String.fromCharCode(60)  + 'a href="http://www.symbol.com" 				onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoSymbol.gif" 	title="Symbol" alt="Symbol" class="RotatingLogos"/' 						+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'Symbol'
tickercontent[10]=String.fromCharCode(60) + 'a href="http://www.ronlight.com" 				onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoRonlight.gif" title="Ronlight digital" alt="Ronlight Digital" class="RotatingLogos"/' 			+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'Ronlight Digital'
tickercontent[11]=String.fromCharCode(60) + 'a href="http://www.psionteklogix.com" 			onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoPsion.gif" 	title="Psion" alt="Psion" class="RotatingLogos"/' 						+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'Psion Teklogix'
tickercontent[12]=String.fromCharCode(60) + 'a href="http://www.hye.co.il/"			 		onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoHYE.gif" 	title="HYE group" alt="HYE" class="RotatingLogos"/'							+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'H.Y. Group'
tickercontent[13]=String.fromCharCode(60) + 'a href="http://www.dell.com" 					onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoDELL.gif" 	title="DELL" alt="DELL" class="RotatingLogos"/' 							+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'DELL'
tickercontent[14]=String.fromCharCode(60) + 'a href="http://www.ituran.com/en/" 			onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoIturan.gif" 	title="Ituran Group" alt="Ituran" class="RotatingLogos"/' 					+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'Ituran'
tickercontent[15]=String.fromCharCode(60) + 'a href="http://www.caspit.co.il/en_index.asp" 	onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoCaspit.gif" 	title="Caspit" alt="Caspit" class="RotatingLogos"/' 						+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'Caspit'
tickercontent[16]=String.fromCharCode(60) + 'a href="http://www.sonimtech.com/" 			onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoSomin.gif" 	title="Sonim" alt="Caspit" class="RotatingLogos"/' 						+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'Sonim Technologies'
tickercontent[17]=String.fromCharCode(60) + 'a href="http://www.fourier-sys.com/" 			onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoFourier.gif" 	title="Furier" alt="Caspit" class="RotatingLogos"/' 						+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'fourier systems'
tickercontent[18]=String.fromCharCode(60) + 'a href="http://www.taldor.co.il/" 				onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoTaldor.gif" 	title="Taldor" alt="Caspit" class="RotatingLogos"/' 						+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'Taldor'
tickercontent[19]=String.fromCharCode(60) + 'a href="http://www.shekelonline.com/" 			onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoShekel.gif" 	title="Shekel scales" alt="Shekel Scales" class="RotatingLogos"/' 				+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'Shekel Electronic Scales'
tickercontent[20]=String.fromCharCode(60) + 'a href="http://www.pointer4u.co.il/" 			onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoPointer.gif" 	title="Pointer" alt="Pointer" class="RotatingLogos"/' 						+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'Pointer'
tickercontent[21]=String.fromCharCode(60) + 'a href="http://www.tradingacademy.com/" 		onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoOTA.gif" 	title="online trading academy" alt="online trading academy" class="RotatingLogos"/' 		+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'Online Trading Academy'
tickercontent[22]=String.fromCharCode(60) + 'a href="http://www.cms1.co.il/" 				onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoCMS.gif" 	title="CMS Compucenter Ltd" alt="CMS Compucenter Ltd" class="RotatingLogos"/' 			+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'CMS Compucenter'
tickercontent[23]=String.fromCharCode(60) + 'a href="http://www.igomyway.com/" 				onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoIGO.gif" 	title="iGO My way" alt="iGO My way" class="RotatingLogos"/' 						+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'iGO My way'
tickercontent[24]=String.fromCharCode(60) + 'a href="http://www.newpan.co.il" 				onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoNewpanTelecom.gif" 	title="NEWPAN telecom" alt="NEWPAN telecom" class="RotatingLogos"/' 			+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'Pointer'
tickercontent[25]=String.fromCharCode(60) + 'a href="http://www.gil-car.co.il/" 			onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoGilCar.gif" 	title="Gil Car" alt="Gil Car" class="RotatingLogos"/' 						+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'Gil Car'
tickercontent[26]=String.fromCharCode(60) + 'a href="http://www.lxmobile.com/" 				onclick="window.open(this.href); return false;"' + String.fromCharCode(62) + String.fromCharCode(60) + 'img src="images/LogoLXMobile.gif" 	title="LXmobile" alt="LXmobile" class="RotatingLogos"/' 					+ String.fromCharCode(62) + String.fromCharCode(60) + '/a' + String.fromCharCode(62) + String.fromCharCode(60) + 	'br/' + String.fromCharCode(62) + 'LXmobile'

var rand_no = 0;


function domticker(content, divId, divClass, delay, fadeornot){
	this.content=content
	this.tickerid=divId 	//ID of master ticker div. Message is contained inside first child of ticker div
	this.delay=delay 		//Delay between msg change, in miliseconds.
	this.mouseoverBol=0 	//Boolean to indicate whether mouse is currently over ticker (and pause it if it is)
	this.pointer=1			//Starting point 
//	this.opacitystring=(typeof fadeornot!="undefined")? "width: 100%; filter:progid:DXImageTransform.Microsoft.alpha(opacity=100); -moz-opacity: 1" : ""
	if (this.opacitystring!="") this.delay+=500 //add 1/2 sec to account for fade effect, if enabled
	this.opacitysetting=0.2 //Opacity value when reset. Internal use.
	document.write('<div id="'+divId+'" class="'+divClass+'"><div style="'+this.opacitystring+'">'+content[0]+'</div></div>')
	var instanceOfTicker=this
	setTimeout(function(){instanceOfTicker.initialize()}, delay)
}

domticker.prototype.initialize=function(){
	var instanceOfTicker=this
	this.contentdiv=document.getElementById(this.tickerid).firstChild //div of inner content that holds the messages
	document.getElementById(this.tickerid).onmouseover=function(){instanceOfTicker.mouseoverBol=1}
	document.getElementById(this.tickerid).onmouseout=function(){instanceOfTicker.mouseoverBol=0}
	this.rotatemsg()
}

domticker.prototype.rotatemsg=function(){
	var instanceOfTicker=this
	if (this.mouseoverBol==1) //if mouse is currently over ticker, do nothing (pause it)
		setTimeout(function(){instanceOfTicker.rotatemsg()}, 100)
	else{
		this.fadetransition("reset") //FADE EFFECT- RESET OPACITY
		this.contentdiv.innerHTML=this.content[this.pointer]
		this.fadetimer1=setInterval(function(){instanceOfTicker.fadetransition('up', 'fadetimer1')}, 100) //FADE EFFECT- PLAY IT
		
		//this.pointer=(this.pointer<this.content.length-1)? this.pointer+1 : 0 // This was moving the pointer to the next
		this.pointer = Math.ceil(Math.random()*this.content.length)-1
		setTimeout(function(){instanceOfTicker.rotatemsg()}, this.delay) //update container
	}
}

// -------------------------------------------------------------------
// fadetransition()- cross browser fade method for IE5.5+ and Mozilla/Firefox
// -------------------------------------------------------------------

domticker.prototype.fadetransition=function(fadetype, timerid){
	var contentdiv=this.contentdiv
	if (fadetype=="reset"){
		contentdiv.style.opacity = (0.2);
		contentdiv.style.filter  = "alpha(opacity=20)";
	}

	if (fadetype=="up")
		contentdiv.style.opacity = parseFloat(contentdiv.style.opacity) + parseFloat(0.2);
		contentdiv.style.filter  = "alpha(opacity="+contentdiv.style.opacity*100+")";

	if (fadetype=="up" && contentdiv.style.opacity>=1)
		clearInterval(this[timerid])
}
