$(document).ready(function(){ // EXPANDERS $('a.expander_trigger').click(function() { $(this).toggleClass('active'); $(this).siblings('.expander_content').slideToggle(); return false; }); // BIO READ MORE $('a.read_more.expand').click(function() { $(this).toggleClass('active'); if ($(this).hasClass('active')) { $(this).html("^ Read Less"); } else { $(this).html("> Read More"); } $(this).siblings('p').children('.cutoff').fadeToggle(); return false; }); // ENABLE COLORBOX POPUP LINKS $('a.gallery').colorbox({ rel:'gal', onComplete:function(){ $("#cboxTitle").hide(); $("#cboxLoadedContent").append($("#cboxTitle").html()).css({color: $("#cboxTitle").css("color")}); $.fn.colorbox.resize(); } }) // HOMEPAGE SLIDESHOW $('#slider').nivoSlider({ effect: 'fade', // Specify sets like: 'fold,fade,sliceDown' slices: 15, // For slice animations boxCols: 8, // For box animations boxRows: 4, // For box animations animSpeed: 500, // Slide transition speed pauseTime: 6000, // How long each slide will show startSlide: 0, // Set starting Slide (0 index) directionNav: true, // Next & Prev navigation controlNav: true, // 1,2,3... navigation controlNavThumbs: false, // Use thumbnails for Control Nav pauseOnHover: true, // Stop animation while hovering manualAdvance: false, // Force manual transitions prevText: 'Prev', // Prev directionNav text nextText: 'Next', // Next directionNav text randomStart: false, // Start on a random slide beforeChange: function(){}, // Triggers before a slide transition afterChange: function(){}, // Triggers after a slide transition slideshowEnd: function(){}, // Triggers after all slides have been shown lastSlide: function(){}, // Triggers when last slide is shown afterLoad: function(){} // Triggers when slider has loaded }); if(window.location.hash) { var hash = window.location.hash.substring(1); if (hash == 'atlanta') { region_office_change('atlanta'); $('html, body').scrollTo('#region_map'); } if (hash == 'austin') { region_office_change('austin'); $('html, body').scrollTo('#region_map'); } if (hash == 'chicago') { region_office_change('chicago'); $('html, body').scrollTo('#region_map'); } if (hash == 'denver') { region_office_change('denver'); $('html, body').scrollTo('#region_map'); } if (hash == 'philadelphia') { region_office_change('philadelphia'); $('html, body').scrollTo('#region_map'); } if (hash == 'seattle') { region_office_change('seattle'); $('html, body').scrollTo('#region_map'); } } // CONTACT PAGE REGION NAVIGATION $('.region_nav a').mouseover(function() { var thisRegion = $(this).attr("class"); $('#region_map').removeClass(); $('#region_map').addClass(thisRegion); }); $('.region_nav a').mouseleave(function() { $('#region_map').removeClass(); $('#region_map').addClass(currentRegion); }); // MAP $('.region_nav a').click(function() { // update current region variable var nextRegion = $(this).attr("class"); region_office_change(nextRegion); return false; }); $('#region_map a.atlanta, #region_map a.atlanta2').click(function() { region_office_change('atlanta'); return false; }).mouseover(function() { $('#region_map').removeClass(); $('#region_map').addClass('atlanta'); }).mouseleave(function() { $('#region_map').removeClass(); $('#region_map').addClass(currentRegion); }); $('#region_map a.austin').click(function() { region_office_change('austin'); return false; }).mouseover(function() { $('#region_map').removeClass(); $('#region_map').addClass('austin'); }).mouseleave(function() { $('#region_map').removeClass(); $('#region_map').addClass(currentRegion); }); $('#region_map a.chicago').click(function() { region_office_change('chicago'); return false; }).mouseover(function() { $('#region_map').removeClass(); $('#region_map').addClass('chicago'); }).mouseleave(function() { $('#region_map').removeClass(); $('#region_map').addClass(currentRegion); }); $('#region_map a.denver, #region_map a.denver2').click(function() { region_office_change('denver'); return false; }).mouseover(function() { $('#region_map').removeClass(); $('#region_map').addClass('denver'); }).mouseleave(function() { $('#region_map').removeClass(); $('#region_map').addClass(currentRegion); }); $('#region_map a.philadelphia').click(function() { region_office_change('philadelphia'); return false; }).mouseover(function() { $('#region_map').removeClass(); $('#region_map').addClass('philadelphia'); }).mouseleave(function() { $('#region_map').removeClass(); $('#region_map').addClass(currentRegion); }); $('#region_map a.seattle, #region_map a.seattle2, #region_map a.seattle3, #region_map a.seattle4').click(function() { region_office_change('seattle'); return false; }).mouseover(function() { $('#region_map').removeClass(); $('#region_map').addClass('seattle'); }).mouseleave(function() { $('#region_map').removeClass(); $('#region_map').addClass(currentRegion); }); }); var currentRegion = "atlanta"; function region_office_change(nextReg) { // hide current region content $('.region_content.' + currentRegion).fadeToggle(function() { // expose new current region content $('.region_content.' + nextReg).fadeToggle(); }); currentRegion = nextReg; // update map $('#region_map').removeClass(); $('#region_map').addClass(currentRegion); // update region navigation $('.region_nav a').removeClass('active'); $('.region_nav a.' + currentRegion).addClass('active'); //alert("currentReg: " + currentReg + ", nextReg: " + nextReg); } // LEAVE NOTICE FOR EXTERNAL SITES $(function(){ //$('a[href^=http].[rel!=local]').leaveNotice({ //$('a[href^=http].ext').leaveNotice({ $('a[href^=http]').leaveNotice({ siteName:"Economic Development Administration", exitMessage:"

You are about to exit the {SITENAME} website.

Thank you for visiting our site. We hope your visit was informative and enjoyable.

When attempting to access external websites, you may wish to review each privacy notice since their information collection practices may differ from ours. In addition, our linking to these sites does not constitute an endorsement of any products or services.

", preLinkMessage:"

Click the link to access (the page will open in a new window):
{URL}


", timeOut:0, messageBoxHolder:"custom-messageHolder", newWindow:true, overlayAlpha:0.6 }); }); // search.usa.gov files if(usagov_sayt_url===undefined){var usagov_sayt_url=""}$(document).ready(function(){if(usagov_sayt_url==""){return}$(".usagov-search-autocomplete").autocomplete(usagov_sayt_url,{dataType:"jsonp",parse:function(data){var rows=new Array();for(var i=0;i"+term+"")},scroll:false,delay:50,minChars:2,matchSubset:false,cacheLength:50,max:15,selectFirst:false}).result(function(event,data,formatted){$(this).closest("form").submit()})});