var show_time = new Array();var out_time = new Array();var in_time = new Array();var fade_timer = new Array();function jTickerFading(id){$('#ticker_content_'+id+' div:first').fadeOut(out_time[id],function(){$(this).remove().appendTo('#ticker_content_'+id);$('#ticker_content_'+id+' div:first').fadeIn(in_time[id]);});}function jTickerStartFader(id){fade_timer[id]=window.setInterval('jTickerFading('+id+')',show_time[id]);}function jTickerEndFader(id){window.clearInterval(fade_timer[id]);} function jTickerRoller(id){$('#ticker_content_'+id+' div:first').slideUp(out_time[id],function(){$('#ticker_content_'+id+' div:first').remove().appendTo('#ticker_content_'+id);$('#ticker_content_'+id+' div:first').slideDown(in_time[id]);});}function jTickerStartRoller(id){fade_timer[id]=window.setInterval('jTickerRoller('+id+')',show_time[id]);}function jTickerEndRoller(id){window.clearInterval(fade_timer[id]);} function jTickerVScrollerTB(id){ var ticker_height = $('#ticker_content_'+id).height(); var scroll_height = ticker_height + parseInt($('#ticker_content_'+id).css('paddingBottom'))+5+'px'; var top_start_pos = (ticker_height + 5 + parseInt($('#ticker_content_'+id).css('paddingBottom')))*(-1)+'px'; $('#ticker_content_'+id+' div:first').css({'height':ticker_height}); $('#ticker_content_'+id+' div:first').css({'position': 'relative'}); $('#ticker_content_'+id+' div:first').animate({top: '+='+scroll_height}, out_time[id],function(){ $(this).css({'display':'none'}); $(this).remove().appendTo('#ticker_content_'+id); $('#ticker_content_'+id+' div:first').css({'position': 'relative','height':ticker_height,'top':top_start_pos,'display':'block'}); $('#ticker_content_'+id+' div:first').animate({top: '+='+scroll_height}, in_time[id]); });}function jTickerVScrollerBT(id){ var ticker_height = $('#ticker_content_'+id).height(); var scroll_height = ticker_height + parseInt($('#ticker_content_'+id).css('paddingBottom'))+5+'px'; var top_start_pos = (ticker_height + 5 + parseInt($('#ticker_content_'+id).css('paddingBottom')))+'px'; $('#ticker_content_'+id+' div:first').css({'height':ticker_height}); $('#ticker_content_'+id+' div:first').css({'position': 'relative'}); $('#ticker_content_'+id+' div:first').animate({top: '-='+scroll_height}, out_time[id],function(){ $(this).css({'display':'none'}); $(this).remove().appendTo('#ticker_content_'+id); $('#ticker_content_'+id+' div:first').css({'position': 'relative','height':ticker_height,'top':top_start_pos,'display':'block'}); $('#ticker_content_'+id+' div:first').animate({top: '-='+scroll_height}, in_time[id]); });}function jTickerStartVScroller(id) { if(show_time[id]<0) { show_time[id] = show_time[id]*(-1); fade_timer[id] = window.setInterval('jTickerVScrollerBT('+id+')', show_time[id] ); } else fade_timer[id] = window.setInterval('jTickerVScrollerTB('+id+')', show_time[id] );}function jTickerEndVScroller(id) { window.clearInterval(fade_timer[id]);}