/*Example message arrays for the two demo scrollers*/

var tickercontent=new Array()

tickercontent[0]='"The thing that struck me the most was the passion…the effort being put into each and every module ... always well researched & customized to our requirements. Our participants have a lasting impact from the program… always got value from programs over the last 6 years."<br/><br/><i>Yogesh Dani, <br/>Head, Learning & Development at Prudential</i>'

tickercontent[1]='<span style="color: #333333">"The MBTI reports made for our team were so accurate and customized for our Organizations. Coretech&#8217;s strength in customizing is top notch…I have read my report so many times and it is just a replica of who I am…the learning that I have had from the tool is surely going to go a long way in my leadership."<br/><br/><i>Ms. Lekha Sapra <br/>Director, New Business Development, <br/>Population Services International (PSI)</i></span>'

tickercontent[2]='"Coretech exhibits strong competencies in the field of negotiation & influencing skills. We highly recommend to any organization looking for training partners in the art of negotiation and influencing skills. Coretech is one of the best training partners we have worked with in the past 10 years."<br/><br/><i>Bhawna, <br/>HR Head, Amway</i>'

tickercontent[3]='<span style="color: #333333">"I must thank Coretech for designing the workshop in such an apt manner that it conveyed the message beautifully. Though, I have attended many workshops but way Coretech has skillfully connected with the audience was exemplary. The program has certainly left a lasting impression on me."<br/><br/><i>Anil Suri,<br/> Engineering Head, Mohali, Ranbaxy</i></span>'

tickercontent[4]='"A team of exceptional individuals…capable of creating a deep impact."<br/><br/><i>Rahul, <br/>Senior Manager & Participant, Ericson</i>'

tickercontent[5]='<span style="color: #333333">"Coretech workshops are very enlightening & enriching. The trainers are very energetic and great communicators who ensure active interaction and discussion. Their tailor made programs help associates to be more effective professionally by developing the required skills"<br/><br/><i>Smriti, <br/>HR Partners, Amway</i></span>'

tickercontent[6]='"Coretech&#8217;s Coaching Curriculum not only highlighted my need to improve on my leadership style due to which I was facing a lot of stress for the past few months also resurrected my love for my hobbies bringing into light the importance of having a work-life balance."<br/><br/><i>Sachin, <br/>Team Manager, Capita</i>'

tickercontent[7]='<span style="color: #333333">"The best part about this training was that we went through it together! There&#8217;s so much bonding going on - it&#8217;s amazing. We really experienced the workshop together not just learnt it together and  that has created a completely different language in the organization."<br/><br/><i>Anuj, <br/>Manager, Airtel </i></span>'

tickercontent[8]='"The workshop we went through with Coretech has really transformed the way our customer care executives respond to the customers. The customer complaints have come down significantly and the executives are much less stressed than they were earlier. What&#8217;s more, the call handling time too has come down. Now we are able to handle many more customers in the same amount of time than we used to before we went through the workshop. Cheers to Coretech!"<br/><br/><i>Meenakshi, <br/>Participant from Bharti Telesonic </i>'


/***********************************************
* 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.
***********************************************/

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
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
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")
this.opacitysetting=0.2
if (contentdiv.filters && contentdiv.filters[0]){
if (typeof contentdiv.filters[0].opacity=="number") //IE6+
contentdiv.filters[0].opacity=this.opacitysetting*100
else //IE 5.5
contentdiv.style.filter="alpha(opacity="+this.opacitysetting*100+")"
}
else if (typeof contentdiv.style.MozOpacity!="undefined" && this.opacitystring!=""){
contentdiv.style.MozOpacity=this.opacitysetting
}
else
this.opacitysetting=1
if (fadetype=="up")
this.opacitysetting+=0.2
if (fadetype=="up" && this.opacitysetting>=1)
clearInterval(this[timerid])
}
