/* jQuery text reflection plugin
 *
 * creates a reflection for every text element with a class "textreflection"
 * created by jarón barends http://jaron.nl
 *
 * Read the accompanying blogpost:
 * http://jaron.nl/blog/2011/text-reflections-with-css-and-javascript-jquery-text-reflection-plugin
*/
(function(a){a.fn.textreflection=function(b){var f={};b&&a.extend(f,b);var d=document.createElement("modernizr").style,e=" -webkit- -moz- -o- -ms- -khtml- ".split(" ");return this.each(function(){var c=a(this).wrap('<div class="textreflectionWrapper"></div>').clone().removeClass("textreflection").addClass("textreflectionClone"),b=a(this).parent();a('<div class="textreflectionEffectWrapper"></div>').appendTo(b).append('<div class="textreflectionMask"></div>').append(c);c=("background-image:"+e.join("gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:")+ e.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0,-17);d.cssText=c;(""+d.backgroundImage).indexOf("gradient")!==-1||a(".textreflectionMask").addClass("noGradients")})}})(jQuery);jQuery(document).ready(function(a){a(".textreflection").textreflection()});

