/* 
	Minified utility jQuery files by Valued Standards 
	View orgiginal file by removing the .min. from the filename :)
*/

// jquery.inputempty.js
if(typeof jQuery!="undefined"){(function(a){jQuery.fn.emptyonfocus=function(b){var c={validInputsSelector:":visible:enabled:text, :visible:enabled:password, textarea:visible:enabled",getAllInputsIfEmpty:true,focusClassName:"focused"},b=a.extend(c,b);return this.each(function(){var e=a(this);if(e.is(b.validInputsSelector)){var d=a(elements)}else{if(e.is("form")){var d=e.find(b.validInputsSelector)}else{if(b.getAllInputsIfEmpty){var d=a(b.validInputsSelector)}}}if(d){d.focus(function(){if(a(this).val()===this.defaultValue){a(this).val("")}a(this).addClass(b.focusClassName)}).blur(function(){if(!a(this).val()){a(this).val(this.defaultValue)}a(this).removeClass(b.focusClassName)})}})}})(jQuery)};
// jquery.replacemail.js
if(typeof jQuery!="undefined"){(function(a){jQuery.fn.replacemail=function(b){var c={atSymbol:" [AT] ",domain:window.location.domain,domainString:"this domain",className:"email"},b=a.extend(c,b);return this.each(function(){var k=a(this);var i=k.text().toLowerCase();var d=b.atSymbol.toLowerCase();if(i.indexOf(d)>0){var j=i.substring(0,i.indexOf(d)).replace(/^\s+|\s+$/g,"");var f=i.substring(i.length,(i.indexOf(d)+d.length)).replace(/^\s+|\s+$/g,"");var h=b.domain;if(f!==window.location.domain&&f!==b.domainString){h=f}var e=j+"&#64;"+h;var g="<a href='mailto:"+e+"' class='"+b.className+"'>"+e+"</a>";k.replaceWith(g)}})}})(jQuery)};
// jquery.smooth-scrolling-anchors.js
if(typeof jQuery!="undefined"){(function(a){jQuery.fn.scrollanchors=function(b){var c={speed:900,focusClass:false,easing:false},b=a.extend(c,b);return this.each(function(){var d=a(this).find("a[href*=#]");d.click(function(g){g.preventDefault();if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var e=a(this.hash);e=e.length&&e||a("[id="+this.hash.slice(1)+"]");if(e.length){var f=e.offset().top;a("html,body").animate({scrollTop:f},b.speed,b.easing);if(b.focusClass){e.addClass(b.focusClass)}}}})})}})(jQuery)};
// jquery.innerfade.js
if(typeof jQuery!="undefined"){(function(a){a.fn.innerfade=function(b){return this.each(function(){a.innerfade(this,b)})};a.innerfade=function(b,c){var e={animationtype:"fade",speed:"normal",type:"sequence",timeout:2000,containerheight:"auto",runningclass:"innerfade",children:null};if(c){a.extend(e,c)}if(e.children===null){var g=a(b).children()}else{var g=a(b).children(e.children)}if(g.length>1){a(b).css("position","relative").css("height",e.containerheight).addClass(e.runningclass);for(var d=0;d<g.length;d++){a(g[d]).css("z-index",String(g.length-d)).css("position","absolute").hide()}if(e.type=="sequence"){setTimeout(function(){a.innerfade.next(g,e,1,0)},e.timeout);a(g[0]).show()}else{if(e.type=="random"){var f=Math.floor(Math.random()*(g.length));setTimeout(function(){do{h=Math.floor(Math.random()*(g.length))}while(f==h);a.innerfade.next(g,e,h,f)},e.timeout);a(g[f]).show()}else{if(e.type=="random_start"){e.type="sequence";var h=Math.floor(Math.random()*(g.length));setTimeout(function(){a.innerfade.next(g,e,(h+1)%g.length,h)},e.timeout);a(g[h]).show()}else{alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'")}}}}};a.innerfade.next=function(d,b,e,c){if(b.animationtype=="slide"){a(d[c]).slideUp(b.speed);a(d[e]).slideDown(b.speed)}else{if(b.animationtype=="fade"){a(d[c]).fadeOut(b.speed);a(d[e]).fadeIn(b.speed,function(){removeFilter(a(this)[0])})}else{alert("Innerfade-animationtype must either be 'slide' or 'fade'")}}if(b.type=="sequence"){if((e+1)<d.length){e=e+1;c=e-1}else{e=0;c=d.length-1}}else{if(b.type=="random"){c=e;while(e==c){e=Math.floor(Math.random()*d.length)}}else{alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'")}}setTimeout((function(){a.innerfade.next(d,b,e,c)}),b.timeout)}})(jQuery)};function removeFilter(a){if(a.style.removeAttribute){a.style.removeAttribute("filter")}};

// global.js
function initSlides(){var a=$("#slideshow .slides");a.find("h2, h3, p:not(p.photo-credits)").hide();a.innerfade({speed:2000,timeout:8000,containerheight:"372px",runningclass:"active"})}function init(){$("body").addClass("js-on");initSlides();$("#subscribeform label").hide();$("#contactform label").hide();$("#subscribeform").emptyonfocus();$("#contactform").emptyonfocus();$("#wrapper").scrollanchors();$(".email").replacemail({domain:"girlalert.org"})}$(document).ready(init);