var Scriptaculous={Version:"1.8.3",require:function(c){try{document.write('<script type="text/javascript" src="'+c+'"><\/script>')}catch(b){var a=document.createElement("script");a.type="text/javascript";a.src=c;document.getElementsByTagName("head")[0].appendChild(a)}},REQUIRED_PROTOTYPE:"1.6.0.3",load:function(){function c(a){var b=a.replace(/_.*|\./g,""),b=parseInt(b+"0".times(4-b.length));return a.indexOf("_")>-1?b-1:b}if(typeof Prototype=="undefined"||typeof Element=="undefined"||typeof Element.Methods==
"undefined"||c(Prototype.Version)<c(Scriptaculous.REQUIRED_PROTOTYPE))throw"script.aculo.us requires the Prototype JavaScript framework >= "+Scriptaculous.REQUIRED_PROTOTYPE;var b=/scriptaculous\.js(\?.*)?$/;$$("head script[src]").findAll(function(a){return a.src.match(b)}).each(function(a){var c=a.src.replace(b,""),a=a.src.match(/\?.*load=([a-z,]*)/);(a?a[1]:"builder,effects,dragdrop,controls,slider,sound").split(",").each(function(b){Scriptaculous.require(c+b+".js")})})}};Scriptaculous.load();
var sagscroller_constants={navpanel:{height:"16px",downarrow:"down.gif",opacity:0.6,title:"Go to Next Content",background:"black"},loadingimg:{src:"ajaxloading.gif",dimensions:[100,15]}};
function sagscroller(c){this.setting={mode:"manual",inittype:"stunted",pause:3E3,animatespeed:500,ajaxsource:null,rssdata:null,refreshsecs:0,navpanel:{show:!1,cancelauto:!0}};jQuery.extend(this.setting,c);c=null;this.curmsg=0;this.addloadingpanel(jQuery,"preload");this.setting.rssdata&&google.load("feeds","1");var b=this;jQuery(function(a){b.$slider=a("#"+b.setting.id);(b.setting.ajaxsource||b.setting.rssdata)&&b.$slider.empty();b.addloadingpanel(jQuery,"show");b.setting.ajaxsource?b.getajaxul(b.setting.ajaxsource):
b.setting.rssdata?b.fetchfeeds():b.setting.inittype=="onload"?a(window).load(function(){b.init(a)}):b.init(a)})}
sagscroller.prototype={getajaxul:function(c){var b=jQuery,a=this;this.stopscroll();this.$loadingpanel.show();b.ajax({url:c,async:!0,error:function(b){a.$slider.html("Error fetching content.<br />Server Response: "+b.responseText)},success:function(b){a.reloadul(b);a.setting.refreshsecs>0&&setTimeout(function(){a.getajaxul(c)},a.setting.refreshsecs*1E3)}})},addloadingpanel:function(c,b){var a=sagscroller_constants.loadingimg;if(b=="preload"){var d=new Image(a.dimensions[0],a.dimensions[1]);d.src=a.src;
this.$loadingimg=c(d).css({position:"absolute",zIndex:1003})}else{var d=[this.$slider.width(),this.$slider.height()],e=c("<div />").css({position:"absolute",left:0,top:0,background:"black",opacity:0.5,width:d[0],height:d[1],zIndex:1002}).appendTo(this.$slider);this.$loadingimg.css({left:d[0]/2-a.dimensions[0]/2,top:d[1]/2-a.dimensions[1]/2}).appendTo(this.$slider);this.$loadingpanel=e.add(this.$loadingimg)}},addnavpanel:function(){var c=this,b=this.setting,a=$('<div class="sliderdesc"><div class="sliderdescbg"></div><div class="sliderdescfg"><div class="sliderdesctext"></div></div></div>').css({position:"absolute",
width:"100%",left:0,top:-1E3,zIndex:"1001"}).find("div").css({position:"absolute",left:0,top:0,width:"100%"}).eq(0).css({background:sagscroller_constants.navpanel.background,opacity:sagscroller_constants.navpanel.opacity}).end().eq(1).css({color:"white"}).end().eq(2).css({textAlign:"center",cursor:"pointer",paddingTop:"2px"}).html('<img src="'+sagscroller_constants.navpanel.downarrow+'"/>').end().end().appendTo(this.$slider);a.find("div.sliderdesctext").attr("title",sagscroller_constants.navpanel.title).click(function(){c.stopscroll();
c.scrollmsg(b.mode=="auto"&&!b.navpanel.cancelauto?!0:!1)});a.css({top:this.$slider.height()-parseInt(sagscroller_constants.navpanel.height),height:sagscroller_constants.navpanel.height}).find("div").css({height:"100%"})},resetuls:function(){var c=this.$mainul;this.$mainul=this.$secul.css({zIndex:1E3});this.$secul=c.css({zIndex:999});this.$secul.css("top",this.ulheight)},reloadul:function(c){this.$slider.find("ul").remove();this.ulheight=null;this.curmsg=0;this.$slider.append(c);this.init($)},setgetoffset:function(c){var b=
(this.setting.ajaxsource||this.setting.rssdata)&&this.setting.inittype=="onload";return this.curmsg==this.$lis.length?!this.ulheight||b?this.ulheight=this.$mainul.height():this.ulheight:((!c.data("toppos")||b)&&c.data("toppos",c.position().top),c.data("toppos"))},scrollmsg:function(c){var b=this,a=this.setting,d=this.ulheight||this.$mainul.height(),e=-this.setgetoffset(this.$lis.eq(this.curmsg));this.$mainul.animate({top:e},a.animatespeed,function(){b.curmsg=b.curmsg<b.$lis.length+1?b.curmsg+1:0;
if(b.curmsg==b.$lis.length+1)b.resetuls(),b.curmsg=1;if(c)b.scrolltimer=setTimeout(function(){b.scrollmsg(c)},a.pause)});this.$secul.animate({top:e+d},a.animatespeed)},stopscroll:function(){this.$mainul&&(this.$mainul.add(this.$secul).stop(!0,!1),clearTimeout(this.scrolltimer))},init:function(){var c=this.setting;this.$loadingpanel.hide();this.$mainul=this.$slider.find("ul:eq(0)").css({zIndex:1E3});this.$lis=this.$mainul.find("li");c.navpanel.show&&this.addnavpanel();this.$secul=this.$mainul.clone().css({top:this.$mainul.height(),
zIndex:999}).appendTo(this.$slider);this.scrollmsg(c.mode=="auto")},fetchfeeds:function(){var c=this,b=this.setting.rssdata;this.stopscroll();this.$loadingpanel.show();this.entries=[];for(var a=this.feedsfetched=0;a<b.feeds.length;a++){var d=new google.feeds.Feed(b.feeds[a][1]);d.setNumEntries(b.entries);d.load(function(b){return function(a){c.storefeeds(a,b)}}(b.feeds[a][0]))}},storefeeds:function(c,b){var a=!c.error?c.feed.entries:"";a==""&&alert("Google Feed API Error: "+c.error.message);for(var d=
0;d<a.length;d++)c.feed.entries[d].label=b;this.entries=this.entries.concat(a);this.feedsfetched+=1;this.feedsfetched==this.setting.rssdata.feeds.length&&(this.setting.rssdata.groupbylabel?this.entries.sort(function(b,a){var c=b.label.toLowerCase(),d=a.label.toLowerCase();return c<d?-1:c>d?1:0}):this.entries.sort(function(b,a){return new Date(a.publishedDate)-new Date(b.publishedDate)}),this.formatfeeds())},formatfeeds:function(){function c(b,a){var c=new Date(b);return"<span class='datefield'>"+
(a.indexOf("datetime")!=-1?c.toLocaleString():a.indexOf("date")!=-1?c.toLocaleDateString():"")+"</span>"}for(var b="<ul>",a=this,d=this.setting.rssdata,e=this.entries,g=0;g<e.length;g++)b+='<li><a href="'+e[g].link+'" target="'+d.linktarget+'">'+e[g].title+'</a><div class="rsscontent">'+(/description/.test(d.displayoptions)?e[g].content:e[g].contentSnippet)+'</div><div class="rsslabel">'+(/label/.test(d.displayoptions)?"<b>Source("+(g+1)+"):</b> "+e[g].label+" ":"")+(/date/.test(d.displayoptions)?
c(e[g].publishedDate,d.displayoptions):"")+"</div></li>\n\n";b+="</ul>";this.reloadul(b);a.setting.refreshsecs>0&&setTimeout(function(){a.fetchfeeds()},a.setting.refreshsecs*1E3)}};function marqueeInit(c){document.createElement&&(marqueeInit.ar.push(c),marqueeInit.run(c.uniqueid))}
(function(){function c(b){for(;b=b.parentNode;)if(b.tagName&&b.tagName.toLowerCase()==="table")return!0;return!1}function b(b){for(var o=[],a=0,c;(c=b.firstChild)&&c.nodeType==3&&g[0].test(c.nodeValue);)b.removeChild(c);for(;(c=b.lastChild)&&c.nodeType==3&&g[0].test(c.nodeValue);)b.removeChild(c);if((c=b.firstChild)&&c.nodeType==3)c.nodeValue=c.nodeValue.replace(g[1],"");if((c=b.lastChild)&&c.nodeType==3)c.nodeValue=c.nodeValue.replace(g[2],"");for(;c=b.firstChild;)o[a++]=b.removeChild(c);return o}
function a(c,a){var h,d,e,g,f,i,j=this;this.mq=marqueeInit.ar[c];for(h in m)if(this.mq.hasOwnProperty&&!this.mq.hasOwnProperty(h)||!this.mq.hasOwnProperty&&!this.mq[h])this.mq[h]=m[h];this.mq.style.width=!this.mq.style.width||isNaN(parseInt(this.mq.style.width))?"100%":this.mq.style.width;this.mq.style.height=a.getElementsByTagName("img")[0]?!this.mq.style.height||isNaN(parseInt(this.mq.style.height))?"auto":this.mq.style.height:!this.mq.style.height||isNaN(parseInt(this.mq.style.height))?a.offsetHeight+
3+"px":this.mq.style.height;d=this.mq.style.width.split(/\d/);this.cw=this.mq.style.width?[parseInt(this.mq.style.width),d[d.length-1]]:["a"];i=b(a);a.className=a.id="";a.removeAttribute("class",0);a.removeAttribute("id",0);k&&a.removeAttribute("className",0);a.appendChild(a.cloneNode(!1));a.className=["marquee",c].join("");a.style.overflow="hidden";this.c=a.firstChild;this.c.appendChild(this.c.cloneNode(!1));this.c.style.visibility="hidden";d=[[p,this.c.style],[this.mq.style,this.c.style]];for(f=
d.length-1;f>-1;--f)for(h in d[f][0])if(d[f][0].hasOwnProperty&&d[f][0].hasOwnProperty(h)||!d[f][0].hasOwnProperty)d[f][1][h.encamel()]=d[f][0][h];this.m=this.c.firstChild;if(this.mq.mouse=="pause")this.c.onmouseover=function(){j.mq.stopped=!0},this.c.onmouseout=function(){j.mq.stopped=!1};this.m.style.position="absolute";this.m.style.left="-10000000px";this.m.style.whiteSpace="nowrap";if(l)this.c.firstChild.appendChild(this.m=document.createElement("nobr"));this.mq.noAddedSpace||this.m.appendChild(document.createTextNode("\u00a0"));
for(f=0;i[f];++f)this.m.appendChild(i[f]);if(l)this.m=this.c.firstChild;e=this.m.getElementsByTagName("img");if(e.length)for(f=g=0;f<e.length;++f)e[f].style.display="inline",e[f].style.verticalAlign=e[f].style.verticalAlign||"top",typeof e[f].complete=="boolean"&&e[f].complete?g++:e[f].onload=function(){++g==e.length&&j.setup()},g==e.length&&this.setup();else this.setup()}function d(){for(var b,a,c=0;c<marqueeInit.ar.length;++c)if(marqueeInit.ar[c]&&marqueeInit.ar[c].setup){a=marqueeInit.ar[c].setup;
b=a.mq.moveatleast?Math.max(a.mq.moveatleast,a.sinc):a.sinc||a.mq.inc;a.c.style.width=a.mq.style.width;for(a.cw[0]=a.cw.length>1?parseInt(a.mq.style.width):"a";a.c.offsetWidth>a.w-b;)a.c.style.width=isNaN(a.cw[0])?a.w-b+"px":--a.cw[0]+a.cw[1]}}if(document.createElement){marqueeInit.ar=[];document.write('<style type="text/css">.marquee{white-space:nowrap;overflow:hidden;visibility:hidden;}#marq_kill_marg_bord{border:none!important;margin:0!important;}</style>');var e=0,g=[/^\s*$/,/^\s*/,/\s*$/],p=
{position:"relative",overflow:"hidden"},m={style:{margin:"0 auto"},direction:"left",inc:2,mouse:"pause"},n,k=!1,l=!1;if(!l){n=RegExp("-(.)","g");var q=function(a,b){return b.toUpperCase()};String.prototype.encamel=function(){return this.replace(n,q)}}if(k)marqueeInit.table=[],window.attachEvent("onload",function(){marqueeInit.OK=!0;for(var a=0;a<marqueeInit.table.length;++a)marqueeInit.run(marqueeInit.table[a])});marqueeInit.run=function(b){k&&!marqueeInit.OK&&c(document.getElementById(b))?marqueeInit.table.push(b):
document.getElementById(b)?new a(e++,document.getElementById(b)):setTimeout(function(){marqueeInit.run(b)},300)};a.prototype.setup=function(){if(!this.mq.setup){this.mq.setup=this;var a,b=this;if(this.c.style.height==="auto")this.c.style.height=this.m.offsetHeight+4+"px";this.c.appendChild(this.m.cloneNode(!0));this.m=[this.m,this.m.nextSibling];if(this.mq.mouse=="cursor driven")this.r=this.mq.neutral||16,this.sinc=this.mq.inc,this.c.onmousemove=function(a){b.mq.stopped=!1;b.directspeed(a)},this.mq.moveatleast?
(this.mq.inc=this.mq.moveatleast,this.mq.savedirection?this.mq.savedirection=="reverse"?this.c.onmouseout=function(a){if(!b.contains(a))b.mq.inc=b.mq.moveatleast,b.mq.direction=b.mq.direction=="right"?"left":"right"}:(this.mq.savedirection=this.mq.direction,this.c.onmouseout=function(a){if(!b.contains(a))b.mq.inc=b.mq.moveatleast,b.mq.direction=b.mq.savedirection}):this.c.onmouseout=function(a){if(!b.contains(a))b.mq.inc=b.mq.moveatleast}):this.c.onmouseout=function(a){b.contains(a)||b.slowdeath()};
this.w=this.m[0].offsetWidth;this.m[0].style.left=0;this.c.id="marq_kill_marg_bord";this.m[0].style.top=this.m[1].style.top=Math.floor((this.c.offsetHeight-this.m[0].offsetHeight)/2-0)+"px";this.c.id="";this.c.removeAttribute("id",0);this.m[1].style.left=this.w+"px";for(a=this.mq.moveatleast?Math.max(this.mq.moveatleast,this.sinc):this.sinc||this.mq.inc;this.c.offsetWidth>this.w-a;)this.c.style.width=isNaN(this.cw[0])?this.w-a+"px":--this.cw[0]+this.cw[1];this.c.style.visibility="visible";this.runit()}};
a.prototype.slowdeath=function(){var a=this;if(this.mq.inc)this.mq.inc-=1,this.timer=setTimeout(function(){a.slowdeath()},100)};a.prototype.runit=function(){var a=this,b=this.mq.direction=="right"?1:-1;if(this.mq.stopped||this.mq.stopMarquee)setTimeout(function(){a.runit()},300);else{if(this.mq.mouse!="cursor driven")this.mq.inc=Math.max(1,this.mq.inc);if(b*parseInt(this.m[0].style.left)>=this.w)this.m[0].style.left=parseInt(this.m[1].style.left)-b*this.w+"px";if(b*parseInt(this.m[1].style.left)>=
this.w)this.m[1].style.left=parseInt(this.m[0].style.left)-b*this.w+"px";this.m[0].style.left=parseInt(this.m[0].style.left)+b*this.mq.inc+"px";this.m[1].style.left=parseInt(this.m[1].style.left)+b*this.mq.inc+"px";setTimeout(function(){a.runit()},30+(this.mq.addDelay||0))}};a.prototype.directspeed=function(a){a=a||window.event;this.timer&&clearTimeout(this.timer);for(var b=this.c,c=b.offsetWidth,a=(typeof a.pageX=="number"?a.pageX:a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft)-
b.offsetLeft,d=(c-this.r)/2,c=(c+this.r)/2;b=b.offsetParent;)a-=b.offsetLeft;this.mq.direction=a>c?"left":"right";this.mq.inc=Math.round((a>c?a-c:a<d?d-a:0)/d*this.sinc)};a.prototype.contains=function(a){if(a&&a.relatedTarget){a=a.relatedTarget;if(a==this.c)return!0;for(;a=a.parentNode;)if(a==this.c)return!0}return!1};window.addEventListener?window.addEventListener("resize",d,!1):window.attachEvent&&window.attachEvent("onresize",d)}})();
