(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")}};
(function(a){a.fn.textShadow=function(c){if(!a.browser.msie){return}var b=a.browser.version<7;return this.each(function(){var e=a(this);var f=e.textShadowParse(this.currentStyle["text-shadow"]);f=a.extend(f,c);e.textShadowRemove();if(f.x==0&&f.y==0&&f.radius==0){return}if(e.css("position")=="static"){e.css({position:"relative"})}e.css({zIndex:"0"});if(b){e.css({zoom:"1"})}var d=document.createElement("span");a(d).addClass("jQueryTextShadow");a(d).html(e.html());a(d).css({padding:this.currentStyle.padding,width:e.width(),position:"absolute",zIndex:"-1",color:f.color!=null?f.color:e.css("color"),left:(-parseInt(f.radius)+parseInt(f.x))+"px",top:(-parseInt(f.radius)+parseInt(f.y))+"px"});if(f.radius!=0){if(f.opacity!=null){a(d).css("filter","progid:DXImageTransform.Microsoft.Blur(pixelradius="+parseInt(f.radius)+", enabled='true', makeShadow='true', ShadowOpacity="+f.opacity+")")}else{a(d).css("filter","progid:DXImageTransform.Microsoft.Blur(pixelradius="+parseInt(f.radius)+", enabled='true')")}}e.append(d)})};a.fn.textShadowParse=function(c){c=String(c).replace(/^\s+|\s+$/gi,"").replace(/\s*!\s*important/i,"").replace(/\(\s*([^,\)]+)\s*,\s*([^,\)]+)\s*,\s*([^,\)]+)\s*,\s*([^\)]+)\s*\)/g,"($1/$2/$3/$4)").replace(/\(\s*([^,\)]+)\s*,\s*([^,\)]+)\s*,\s*([^\)]+)\s*\)/g,"($1/$2/$3)");var d={x:0,y:0,radius:0,color:null};if(c.length>1||c[0].toLowerCase()!="none"){c=c.replace(/\//g,",");var b;if(c.match(/(\#[0-9a-f]{6}|\#[0-9a-f]{3}|(rgb|hsb)a?\([^\)]*\)|\b[a-z]+\b)/i)&&(b=RegExp.$1)){d.color=b.replace(/^\s+/,"");c=c.replace(d.color,"")}c=c.replace(/^\s+|\s+$/g,"").split(/\s+/).map(function(e){return(e||"").replace(/^0[a-z]*$/,"")?e:0});switch(c.length){case 1:d.x=d.y=c[0];break;case 2:d.x=c[0];d.y=c[1];break;case 3:d.x=c[0];d.y=c[1];d.radius=c[2];break}if((!d.x&&!d.y&&!d.radius)||d.color=="transparent"){d.x=d.y=d.radius=0;d.color=null}}return d};a.fn.textShadowRemove=function(){if(!a.browser.msie){return}return this.each(function(){a(this).children("span.jQueryTextShadow").remove()})}})(jQuery);if(typeof Array.prototype.map=="undefined"){Array.prototype.map=function(d){var b=new Array(this.length);for(var c=0;c<this.length;c++){b[c]=d(this[c])}return b}};
(function(a){a(document).ready(function(){a("#stick-fad").innerfade({animationtype:"fade",speed:700,timeout:7000,type:"random_start",containerheight:"252px"})})})(jQuery);(function(a){a(document).ready(function(){a("h1.block-title, h2.block-title, #nav ul.menu li a").textShadow()})})(jQuery);
;

