$(document).ready(function(){$('a[rel="external"],#select-your-state-dropdown a').click(function(){this.target="_blank";});$('#nav ul ul').hide();$('#nav ul > li').hover(function(){$('ul:first',this).show();$('a:first',this).addClass('hover');},function(){$('ul:first',this).hide();$('a:first',this).removeClass('hover');});if($('#nav ul ul ul,#nav-top ul ul ul').length>0){$('#nav ul ul ul',this).prev().parent().addClass('flyout');}
setInterval("slideSwitch()",5000);$('#select-your-state-dropdown').jScrollPane({showArrows:true,arrowSize:16,scrollbarWidth:15});$('#select-your-state .jScrollPaneContainer').hide().addClass('active');$('.site').prepend('<div id="select-your-state-bg"></div>').prepend($('#select-your-state .jScrollPaneContainer'));$('#select-your-state-bg').hide();$('#select-your-state .handle').click(function(){var $dropdown=$('.jScrollPaneContainer');var $dropdown_bg=$('#select-your-state-bg');$dropdown.show();$dropdown_bg.show();$dropdown_bg.click(function(){$(this).hide();$('.jScrollPaneContainer').hide();});});});function slideSwitch(){var $active=$('#slideshow p.active');if($active.length==0)$active=$('#slideshow p:last');var $next=$active.next('p').length?$active.next():$('#slideshow p:first');$active.addClass('last-active');$next.css({opacity:0.0}).addClass('active').animate({opacity:1.0},500,function(){$active.removeClass('active last-active');});}