//dinamods.js
function dinamods(a){this.tabinterfaceid=a;this.tabs=document.getElementById(a).getElementsByTagName("a");this.enabletabpersistence=true;this.hottabspositions=[];this.currentTabIndex=0;this.subcontentids=[];this.revcontentids=[];this.selectedClassTarget="link"}dinamods.getCookie=function(a){var b=new RegExp(a+"=[^;]+","i");if(document.cookie.match(b)){return document.cookie.match(b)[0].split("=")[1]}return""};dinamods.setCookie=function(a,b){document.cookie=a+"="+b+";path=/"};dinamods.prototype={cycleit:function(b,a){if(b=="next"){var c=(this.currentTabIndex<this.hottabspositions.length-1)?this.currentTabIndex+1:0}else{if(b=="prev"){var c=(this.currentTabIndex>0)?this.currentTabIndex-1:this.hottabspositions.length-1}}if(typeof a=="undefined"){this.cancelautorun()}this.expandtab(this.tabs[this.hottabspositions[c]])},setpersist:function(a){this.enabletabpersistence=a},setselectedClassTarget:function(a){this.selectedClassTarget=a||"link"},getselectedClassTarget:function(a){return(this.selectedClassTarget==("linkparent".toLowerCase()))?a.parentNode:a},expandtab:function(b){var c=b.getAttribute("rel");var d=(b.getAttribute("rev"))?","+b.getAttribute("rev").replace(/\s+/,"")+",":"";this.expandsubcontent(c);this.expandrevcontent(d);for(var a=0;a<this.tabs.length;a++){this.getselectedClassTarget(this.tabs[a]).className=(this.tabs[a].getAttribute("rel")==c)?"dm_selected":""}if(this.enabletabpersistence){dinamods.setCookie(this.tabinterfaceid,b.tabposition)}this.setcurrenttabindex(b.tabposition);if(typeof this.autoruntimer!="undefined"&&this.autoruntimer==false&&typeof(pageTracker)!="undefined"&&typeof(pageTracker._trackPageview)!="undefined"){pageTracker._trackPageview(b.getAttribute("href"))}},expandsubcontent:function(c){for(var b=0;b<this.subcontentids.length;b++){var a=document.getElementById(this.subcontentids[b]);a.style.display=(a.id==c)?"block":"none"}},expandrevcontent:function(c){var a=this.revcontentids;for(var b=0;b<a.length;b++){document.getElementById(a[b]).style.display=(c.indexOf(","+a[b]+",")!=-1)?"block":"none"}},setcurrenttabindex:function(a){for(var b=0;b<this.hottabspositions.length;b++){if(a==this.hottabspositions[b]){this.currentTabIndex=b;break}}},autorun:function(){this.cycleit("next",true)},cancelautorun:function(){if(typeof this.autoruntimer!="undefined"){clearInterval(this.autoruntimer);this.autoruntimer=false}},init:function(a,f){var e=dinamods.getCookie(this.tabinterfaceid);var d=true;this.automodeperiod=a||0;for(var c=0;c<this.tabs.length;c++){this.tabs[c].tabposition=c;if(this.tabs[c].getAttribute("rel")){var b=this;this.hottabspositions[this.hottabspositions.length]=c;this.subcontentids[this.subcontentids.length]=this.tabs[c].getAttribute("rel");this.tabs[c].onclick=function(){b.expandtab(this);b.cancelautorun();return false};if(f==1){this.tabs[c].onmouseover=this.tabs[c].onclick}if(this.tabs[c].getAttribute("rev")){this.revcontentids=this.revcontentids.concat(this.tabs[c].getAttribute("rev").split(/\s*,\s*/))}if(this.enabletabpersistence&&parseInt(e)==c||!this.enabletabpersistence&&this.getselectedClassTarget(this.tabs[c]).className=="dm_selected"){this.expandtab(this.tabs[c]);d=false}}}if(d){this.expandtab(this.tabs[this.hottabspositions[0]])}if(parseInt(this.automodeperiod)>500&&this.hottabspositions.length>1){this.autoruntimer=setInterval(function(){b.autorun()},this.automodeperiod)}}};
//simplemooticker.js
var mooquee=new Class({initialize:function(b,a){this.setOptions({marHeight:20,marWidth:550,steps:1,speed:50,direction:"left",pauseOnOver:true},a);this.timer=null;this.textElement=null;this.mooqueeElement=b;this.constructMooquee()},constructMooquee:function(){var a=this.mooqueeElement;a.setStyles({width:this.options.marWidth,height:this.options.marHeight});this.textElement=new Element("div",{"class":"mooquee-text",id:"mooquee-text"}).setHTML(a.innerHTML);a.setHTML("");this.textElement.injectInside(a);this.textElement=$("mooquee-text");(this.options.direction=="left")?this.textElement.setStyle("left",(-1*this.textElement.getCoordinates().width.toInt())):this.textElement.setStyle("left",a.getCoordinates().width.toInt());if(this.options.pauseOnOver){this.addMouseEvents()}this.timer=this.startMooquee.delay(this.options.speed,this)},addMouseEvents:function(){this.textElement.addEvents({mouseenter:function(a){this.clearTimer()}.bind(this),mouseleave:function(a){this.timer=this.startMooquee.delay(this.options.speed,this)}.bind(this)})},startMooquee:function(){var a=this.textElement.getStyle("left").toInt();this.textElement.setStyle("left",(a+((this.options.direction=="left")?-1*(this.options.steps):this.options.steps))+"px");this.checkEnd(a);this.timer=this.startMooquee.delay(this.options.speed,this)},resumeMooquee:function(){this.stopMooquee();if(this.options.pauseOnOver){this.addMouseEvents()}this.timer=this.startMooquee.delay(this.options.speed,this)},stopMooquee:function(){this.clearTimer();this.textElement.removeEvents()},clearTimer:function(){$clear(this.timer)},checkEnd:function(a){if(this.options.direction=="left"){if(a<-1*(this.textElement.getCoordinates().width.toInt())){this.textElement.setStyle("left",this.mooqueeElement.getCoordinates().width)}}else{if(a>this.mooqueeElement.getCoordinates().width.toInt()){this.textElement.setStyle("left",-1*(this.textElement.getCoordinates().width.toInt()))}}},setDirection:function(a){this.options.direction=a}});mooquee.implement(new Options);
//jquery.event.hover.js
(function(c){jQuery.fn._hover=jQuery.fn.hover;jQuery.fn.hover=function(f,e,d){if(d){this.bind("hoverstart",f)}if(e){this.bind("hoverend",d?d:e)}return !f?this.trigger("hover"):this.bind("hover",d?e:f)};var b=jQuery.event.special.hover={delay:100,speed:100,setup:function(d){d=jQuery.extend({speed:b.speed,delay:b.delay,hovered:0},d||{});jQuery.event.add(this,"mouseenter mouseleave",a,d)},teardown:function(){jQuery.event.remove(this,"mouseenter mouseleave",a)}};function a(d){var f=d.data||d;switch(d.type){case"mouseenter":f.dist2=0;f.event=d;d.type="hoverstart";if(jQuery.event.handle.call(this,d)!==false){f.elem=this;jQuery.event.add(this,"mousemove",a,f);f.timer=setTimeout(e,f.delay)}break;case"mousemove":f.dist2+=Math.pow(d.pageX-f.event.pageX,2)+Math.pow(d.pageY-f.event.pageY,2);f.event=d;break;case"mouseleave":clearTimeout(f.timer);if(f.hovered){d.type="hoverend";jQuery.event.handle.call(this,d);f.hovered--}else{jQuery.event.remove(f.elem,"mousemove",a)}break;default:if(f.dist2<=Math.pow(f.speed*(f.delay/1000),2)){jQuery.event.remove(f.elem,"mousemove",a);f.hovered++;f.event.type="hover";if(jQuery.event.handle.call(f.elem,f.event)===false){f.hovered--}}else{f.timer=setTimeout(e,f.delay)}f.dist2=0;break}function e(){a(f)}}})(jQuery);
//superfish.js
(function(b){initialized=false;b.fn.superfish=function(k){if(initialized){return}initialized=true;var g=b.fn.superfish,j=g.c,f=b(['<span class="',j.arrowClass,'"> &#187;</span>'].join("")),i=function(){var c=b(this),l=d(c);clearTimeout(l.sfTimer);c.showSuperfishUl().siblings().hideSuperfishUl()},e=function(){var c=b(this),m=d(c),l=g.op;clearTimeout(m.sfTimer);m.sfTimer=setTimeout(function(){l.retainPath=(b.inArray(c[0],l.$path)>-1);c.hideSuperfishUl();if(l.$path.length&&c.parents(["li.",l.hoverClass].join("")).length<1){i.call(l.$path)}},l.delay)},d=function(c){var l=c.parents(["ul.",j.menuClass,":first"].join(""))[0];g.op=g.o[l.serial];return l},h=function(c){c.addClass(j.anchorClass).append(f.clone())};return this.each(function(){var c=this.serial=g.o.length;var m=b.extend({},g.defaults,k);m.$path=b("li."+m.pathClass,this).slice(0,m.pathLevels).each(function(){b(this).addClass([m.hoverClass,j.bcClass].join(" ")).filter("li:has(ul)").removeClass(m.pathClass)});g.o[c]=g.op=m;b("li:has(ul)",this)[(b.fn.hoverIntent&&!m.disableHI)?"hoverIntent":"hover"](i,e).each(function(){if(m.autoArrows){h(b(">a:first-child",this))}}).not("."+j.bcClass).hideSuperfishUl();var l=b("a",this);l.each(function(n){var o=l.eq(n).parents("li");l.eq(n).focus(function(){i.call(o)}).blur(function(){e.call(o)})});m.onInit.call(this)}).each(function(){var c=[j.menuClass];if(g.op.dropShadows&&!(b.browser.msie&&b.browser.version<7)){c.push(j.shadowClass)}b(this).addClass(c.join(" "))})};var a=b.fn.superfish;a.o=[];a.op={};a.IE7fix=function(){var c=a.op;if(b.browser.msie&&b.browser.version>6&&c.dropShadows&&c.animation.opacity!=undefined){this.toggleClass(a.c.shadowClass+"-off")}};a.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};a.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},speed:"normal",autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};b.fn.extend({hideSuperfishUl:function(){var e=a.op,d=(e.retainPath===true)?e.$path:"";e.retainPath=false;var c=b(["li.",e.hoverClass].join(""),this).add(this).not(d).removeClass(e.hoverClass).find(">ul").hide().css("visibility","hidden");e.onHide.call(c);return this},showSuperfishUl:function(){var e=a.op,d=a.c.shadowClass+"-off",c=this.addClass(e.hoverClass).find(">ul:hidden").css({visibility:"visible"});c=this.addClass(e.hoverClass).find(">ul:hidden").css({"z-index":"1000"});a.IE7fix.call(c);e.onBeforeShow.call(c);c.animate(e.animation,e.speed,function(){a.IE7fix.call(c);e.onShow.call(c)});return this}})})(jQuery);
