
function fadeFlashText(element)
{var t=this;t.element=element;t.color=function(r,g,b)
{var ct=this;ct.r=r;ct.g=g;ct.b=b;this.multiply=function(x)
{return new t.color(Math.min(Math.round(ct.r*x),255),Math.min(Math.round(ct.g*x),255),Math.min(Math.round(ct.b*x),255));};this.towards=function(color,factor)
{var rDiff=color.r-ct.r;var gDiff=color.g-ct.g;var bDiff=color.b-ct.b;return new t.color(Math.round(ct.r+factor*rDiff),Math.round(ct.g+factor*gDiff),Math.round(ct.b+factor*bDiff));};this.toProperty=function()
{return"rgb("+ct.r+","+ct.g+","+ct.b+")";};};t.baseColor=new t.color(128,0,0);t.highlightColor=new t.color(255,149,137);t.stage=0;t.midStage=10;t.step=function()
{var lightness=null;if(t.stage<t.midStage){lightness=t.stage/t.midStage;}else{lightness=1-(t.stage-t.midStage)/t.midStage;}
t.element.style.color=t.baseColor.towards(t.highlightColor,lightness).toProperty();t.stage++;if(t.stage>t.midStage*2){t.stage=0;setTimeout(t.step,600);return;}
setTimeout(t.step,80);};}
var fadeImgOrder=[2,3,6,1,4,5];var fadeImgDir=false;var fadeImgIndex=fadeImgOrder.length-1;function fade(e)
{fadingImg=e;fadeImgStage=0;fadeProgress();}
var fadingImg=null;var fadeImgStage=null;function fadeProgress()
{var opacity=fadeImgStage;if(fadeImgDir)opacity=10-opacity;opacity*=10;fadeImg_setOpacity(fadingImg,opacity);if(fadeImgStage==10)
return setTimeout(fadeNext,2000);fadeImgStage++;setTimeout(fadeProgress,60+(opacity/2));}
function fadeNext()
{if(fadeImgIndex==fadeImgOrder.length-1)
{fadeImgIndex=0;fadeImgDir=!fadeImgDir;}
else
fadeImgIndex++;fade(document.getElementById("fadeImg"+fadeImgOrder[fadeImgIndex]+"b"));}
function fadeImg_setOpacity(e,opacityPct)
{e.style.opacity=opacityPct/100;e.style.filter='alpha(opacity='+opacityPct+')';}
if(window.attachEvent)
window.attachEvent("onload",fadeNext);else
window.addEventListener("load",fadeNext,false);$(document).ready(function()
{$("#sideBar_stateSelectButton").click(function()
{cnt=$("#sideBar_stateSelectContainer");if(cnt.is(':visible'))
{cnt.hide();}
else
{$('#sideBar_stateSelectButton').css('background-position',"-40px 0px");cnt.slideDown(220);}});$('#aceStateHeadDDL').hover(function()
{},function()
{$('#sideBar_stateSelectButton').css('background-position',"0px 0px");$("#sideBar_stateSelectContainer").hide();});$("#sideBar_stateSelectButton").hover(function()
{$('#sideBar_stateSelectButton').css('background-position',"-20px 0px");},function()
{$('#sideBar_stateSelectButton').css('background-position',$("#sideBar_stateSelectContainer").is(":visible")?"-40px 0px":"0px 0px");});});$(document).ready(function(){$('#navBar .navBarDDL').each(function(){$(this).parent().hoverIntent(function(){var ddl=$(this).children('.navBarDDL');ddl.width($(this).width()-6)
ddl.slideDown(220);},function(){$(this).children('.navBarDDL').fadeOut(200);});});$('#navBar table.navBarTable td').each(function(){$(this).hover(function(){$(this).addClass('navBarDDL_hover');},function(){$(this).removeClass('navBarDDL_hover');});});});$(document).ready(function(){$('#sideMenu .sideMenu_expBoxHead').each(function(){$(this).click(function(){$(this).siblings('.sideMenu_expBox').slideToggle();});});});function smToggleChildren(jqToggler)
{var ul=jqToggler.siblings('ul');if(ul.is(':hidden'))
{jqToggler.removeClass('smToggler_closed');jqToggler.addClass('smToggler_open');ul.show();}
else
{jqToggler.addClass('smToggler_closed');jqToggler.removeClass('smToggler_open');ul.hide();}}/**
* hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+
* <http://cherne.net/brian/resources/jquery.hoverIntent.html>
* 
* @param  f  onMouseOver function || An object with configuration options
* @param  g  onMouseOut function  || Nothing (use configuration options object)
* @author    Brian Cherne <brian@cherne.net>
*/
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}if(p==this){return false;}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);
