/*
* Rich HTML Ticker- by JavaScript Kit (http://www.javascriptkit.com)
* Freeware. Created Sept 13th, 08'
* This credit must stay intact for use
*/
var richhtmlticker={
loadingtext: 'Fetching Ticker Contents. Please wait...', //Loading text if content is being fetched via Ajax
getajaxcontent:function($, config){
config.$ticker.html(this.loadingtext)
$.ajax({
url: config.msgsource,
error:function(ajaxrequest){
config.$ticker.html('Error fetching content.
Server Response: '+ajaxrequest.responseText)
},
success:function(content){
config.$ticker.html(content)
richhtmlticker.setupticker(config)
}
})
},
rotate:function(config){
if (config.$ticker.get(0)._hoverstate=="over"){
setTimeout(function(){richhtmlticker.rotate(config)}, config.rotatespeed)
}
else{
config.$messages.eq(config.currentmsg).fadeOut(config.animateduration, function(){
config.currentmsg=(config.currentmsg