/**
 * Equal Heights Plugin
 * Equalize the heights of elements. Great for columns or any elements
 * that need to be the same size (floats, etc).
 * 
 * Version 1.0
 * Updated 12/10/2008
 *
 * Copyright (c) 2008 Rob Glazebrook (cssnewbie.com) 
 *
 * Usage: $(object).equalHeights([minHeight], [maxHeight]);
 * 
 * Example 1: $(".cols").equalHeights(); Sets all columns to the same height.
 * Example 2: $(".cols").equalHeights(400); Sets all cols to at least 400px tall.
 * Example 3: $(".cols").equalHeights(100,300); Cols are at least 100 but no more
 * than 300 pixels tall. Elements with too much content will gain a scrollbar.
 * 
 */(function(a){a.fn.equalHeights=function(b,c){tallest=b?b:0;this.each(function(){a(this).height()>tallest&&(tallest=a(this).height())});c&&tallest>c&&(tallest=c);return this.each(function(){a(this).height(tallest).css("overflow","auto")})}})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(b==0)return c;if((b/=e)==1)return c+d;g||(g=e*.3);if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g))+c},easeOutElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(b==0)return c;if((b/=e)==1)return c+d;g||(g=e*.3);if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*b)*Math.sin((b*e-f)*2*Math.PI/g)+d+c},easeInOutElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(b==0)return c;if((b/=e/2)==2)return c+d;g||(g=e*.3*1.5);if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return b<1?-0.5*h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)+c:h*Math.pow(2,-10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)*.5+d+c},easeInBack:function(a,b,c,d,e,f){f==undefined&&(f=1.70158);return d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){f==undefined&&(f=1.70158);return d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){f==undefined&&(f=1.70158);return(b/=e/2)<1?d/2*b*b*(((f*=1.525)+1)*b-f)+c:d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(a,b,c,d,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c},easeOutBounce:function(a,b,c,d,e){return(b/=e)<1/2.75?d*7.5625*b*b+c:b<2/2.75?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:b<2.5/2.75?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(a,b,c,d,e){return b<e/2?jQuery.easing.easeInBounce(a,b*2,0,d,e)*.5+c:jQuery.easing.easeOutBounce(a,b*2-e,0,d,e)*.5+d*.5+c}});(function(a){function b(a){var b=["transform","WebkitTransform","msTransform","MozTransform","OTransform"],c;while(c=b.shift())if(typeof a.style[c]!="undefined")return c;return"transform"}var c=null,d=a.fn.css;a.fn.css=function(e,f){c===null&&(typeof a.cssProps!="undefined"?c=a.cssProps:typeof a.props!="undefined"?c=a.props:c={});typeof c["transform"]=="undefined"&&(e=="transform"||typeof e=="object"&&typeof e["transform"]!="undefined")&&(c.transform=b(this.get(0)));if(c["transform"]!="transform")if(e=="transform"){e=c.transform;if(typeof f=="undefined"&&jQuery.style)return jQuery.style(this.get(0),e)}else if(typeof e=="object"&&typeof e["transform"]!="undefined"){e[c.transform]=e.transform;delete e.transform}return d.apply(this,arguments)}})(jQuery);(function(a){var b="deg";a.fn.rotate=function(c){var d=a(this).css("transform")||"none";if(typeof c=="undefined"){if(d){var e=d.match(/rotate\(([^)]+)\)/);if(e&&e[1])return e[1]}return 0}var e=c.toString().match(/^(-?\d+(\.\d+)?)(.+)?$/);if(e){e[3]&&(b=e[3]);a(this).css("transform",d.replace(/none|rotate\([^)]*\)/,"")+"rotate("+e[1]+b+")")}return this};a.fn.scale=function(b,c,d){var e=a(this).css("transform");if(typeof b=="undefined"){if(e){var f=e.match(/scale\(([^)]+)\)/);if(f&&f[1])return f[1]}return 1}a(this).css("transform",e.replace(/none|scale\([^)]*\)/,"")+"scale("+b+")");return this};var c=a.fx.prototype.cur;a.fx.prototype.cur=function(){return this.prop=="rotate"?parseFloat(a(this.elem).rotate()):this.prop=="scale"?parseFloat(a(this.elem).scale()):c.apply(this,arguments)};a.fx.step.rotate=function(c){a(c.elem).rotate(c.now+b)};a.fx.step.scale=function(b){a(b.elem).scale(b.now)};var d=a.fn.animate;a.fn.animate=function(a){if(typeof a["rotate"]!="undefined"){var c=a.rotate.toString().match(/^(([+-]=)?(-?\d+(\.\d+)?))(.+)?$/);c&&c[5]&&(b=c[5]);a.rotate=c[1]}return d.apply(this,arguments)}})(jQuery);(function(a){a.fn.quicksand=function(b,c){var e={duration:750,easing:"swing",attribute:"data-id",adjustHeight:"auto",useScaling:!0,enhancement:function(a){},selector:"> *",dx:0,dy:0};a.extend(e,c);if(a.browser.msie||typeof a.fn.scale=="undefined")e.useScaling=!1;var f;if(typeof arguments[1]=="function")var f=arguments[1];else if(typeof (arguments[2]=="function"))var f=arguments[2];return this.each(function(c){var g,h=[],i=a(b).clone(),j=a(this),k=a(this).css("height"),l,m=!1,n=a(j).offset(),o=[],p=a(this).find(e.selector);if(a.browser.msie&&a.browser.version.substr(0,1)<7){j.html("").append(i);return}var q=0,r=function(){if(!q){q=1;$toDelete=j.find("> *");j.prepend(w.find("> *"));$toDelete.remove();m&&j.css("height",l);e.enhancement(j);typeof f=="function"&&f.call(this)}},s=j.offsetParent(),t=s.offset();if(s.css("position")=="relative"){if(s.get(0).nodeName.toLowerCase()!="body"){t.top+=parseFloat(s.css("border-top-width"))||0;t.left+=parseFloat(s.css("border-left-width"))||0}}else{t.top-=parseFloat(s.css("border-top-width"))||0;t.left-=parseFloat(s.css("border-left-width"))||0;t.top-=parseFloat(s.css("margin-top"))||0;t.left-=parseFloat(s.css("margin-left"))||0}isNaN(t.left)&&(t.left=0);isNaN(t.top)&&(t.top=0);t.left-=e.dx;t.top-=e.dy;j.css("height",a(this).height());p.each(function(b){o[b]=a(this).offset()});a(this).stop();var u=0,v=0;p.each(function(b){a(this).stop();var c=a(this).get(0);if(c.style.position=="absolute"){u=-e.dx;v=-e.dy}else{u=e.dx;v=e.dy}c.style.position="absolute";c.style.margin="0";c.style.top=o[b].top-parseFloat(c.style.marginTop)-t.top+v+"px";c.style.left=o[b].left-parseFloat(c.style.marginLeft)-t.left+u+"px"});var w=a(j).clone(),x=w.get(0);x.innerHTML="";x.setAttribute("id","");x.style.height="auto";x.style.width=j.width()+"px";w.append(i);w.insertBefore(j);w.css("opacity",0);x.style.zIndex=-1;x.style.margin="0";x.style.position="absolute";x.style.top=n.top-t.top+"px";x.style.left=n.left-t.left+"px";if(e.adjustHeight==="dynamic")j.animate({height:w.height()},e.duration,e.easing);else if(e.adjustHeight==="auto"){l=w.height();parseFloat(k)<parseFloat(l)?j.css("height",l):m=!0}p.each(function(b){var c=[];if(typeof e.attribute=="function"){g=e.attribute(a(this));i.each(function(){if(e.attribute(this)==g){c=a(this);return!1}})}else c=i.filter("["+e.attribute+"="+a(this).attr(e.attribute)+"]");c.length?e.useScaling?h.push({element:a(this),animation:{top:c.offset().top-t.top,left:c.offset().left-t.left,opacity:1,scale:"1.0"}}):h.push({element:a(this),animation:{top:c.offset().top-t.top,left:c.offset().left-t.left,opacity:1}}):e.useScaling?h.push({element:a(this),animation:{opacity:"0.0",scale:"0.0"}}):h.push({element:a(this),animation:{opacity:"0.0"}})});i.each(function(b){var c=[],f=[];if(typeof e.attribute=="function"){g=e.attribute(a(this));p.each(function(){if(e.attribute(this)==g){c=a(this);return!1}});i.each(function(){if(e.attribute(this)==g){f=a(this);return!1}})}else{c=p.filter("["+e.attribute+"="+a(this).attr(e.attribute)+"]");f=i.filter("["+e.attribute+"="+a(this).attr(e.attribute)+"]")}var k;if(c.length===0){e.useScaling?k={opacity:"1.0",scale:"1.0"}:k={opacity:"1.0"};d=f.clone();var l=d.get(0);l.style.position="absolute";l.style.margin="0";l.style.top=f.offset().top-t.top+"px";l.style.left=f.offset().left-t.left+"px";d.css("opacity",0);e.useScaling&&d.css("transform","scale(0.0)");d.appendTo(j);h.push({element:a(d),animation:k})}});w.remove();e.enhancement(j);for(c=0;c<h.length;c++)h[c].element.animate(h[c].animation,e.duration,e.easing,r)})}})(jQuery);(function(a){a.Placeholder={settings:{color:"rgb(169,169,169)",dataName:"original-font-color"},init:function(b){b&&a.extend(a.Placeholder.settings,b);var c=function(b){return a(b).val()},d=function(b,c){a(b).val(c)},e=function(b){return a(b).attr("placeholder")},f=function(a){var b=c(a);return b.length===0||b==e(a)},g=function(b){a(b).data(a.Placeholder.settings.dataName,a(b).css("color"));a(b).css("color",a.Placeholder.settings.color)},h=function(b){a(b).css("color",a(b).data(a.Placeholder.settings.dataName));a(b).removeData(a.Placeholder.settings.dataName)},i=function(a){d(a,e(a));g(a)},j=function(b){if(a(b).data(a.Placeholder.settings.dataName)){d(b,"");h(b)}},k=function(){f(this)&&j(this)},l=function(){f(this)&&i(this)},m=function(){f(this)&&j(this)};a("textarea, input[type='text']").each(function(b,c){if(a(c).attr("placeholder")){a(c).focus(k);a(c).blur(l);a(c).bind("parentformsubmitted",m);a(c).trigger("blur");a(c).parents("form").submit(function(){a(c).trigger("parentformsubmitted")})}});return this}}})(jQuery);(function(a){a(document).ready(function(){function c(){b=a(window).width();a("ul#banner_new li").css("background-size",b+"px 830px")}a.Placeholder.init({color:"rgb(0, 0, 0)"});a(".one_half").equalHeights();a("ul#banner_new li").each(function(b){a(this).find(".banner-transition").css("background","url("+a(this).find("img").attr("src")+") 100% 15px no-repeat");a(this).find("img").attr("src","./wp-content/themes/mrare/images/trans.png").css("width","1px")});var b=a(window).width();c();a(window).resize(function(){c()});var d=1;a("ul#banner_new").anythingSlider({toggleControls:!1,theme:"metallic",expand:!0,autoPlay:!0,buildNavigation:!1,buildStartStop:!1,buildArrows:!1,resizeContents:!0,infiniteSlides:!1,pauseOnHover:!0,delay:4e3,animationTime:600,easing:"easeInOutExpo",onInitialized:function(b,c){c.$controls.prepend('<ul><li><a class="arrow_left"></a></li></ul>').append('<ul><li><a class="arrow_right"></a></li></ul>').find(".prev, .next").click(function(){a(this).is(".prev")?c.goBack():c.goForward()});var d=a("li.activePage"),e=d.find(".banner-transition");e.css("margin-left","1080px").animate({marginLeft:"250px"},1e3,"easeInOutExpo")},onSlideBegin:function(b,c){if(d){var e=a("li.activePage").next();if(a("li.activePage").length===0||e.length===0)e=a("#banner_new li:first");var f=e.find(".banner-transition");f.css("margin-left","1080px").animate({marginLeft:"250px"},1e3,"easeInOutExpo")}},onSlideComplete:function(b){var c=a("li.activePage").next();if(a("li.activePage").length===0||c.length===0)c=a("#banner_new li:first")}});a(" .arrow_right").click(function(){a("ul#banner_new").data("AnythingSlider").goForward()});a(".arrow_left").click(function(){d=0;a("ul#banner_new").data("AnythingSlider").goBack();d=1});var e=a(".showcase-content").clone(!0);a(".showcase").outerHeight(!0)!==null&&a(".showcase").height(a(".showcase").outerHeight(!0)+"px");a("#btn_all").click(function(){a(".showcase_buttons a").removeClass("active");a(this).toggleClass("active");a(".showcase-content").quicksand(e.find("li"),{duration:750,attribute:"id",easing:"swing"})});a("#btn_mobile").click(function(){a(".showcase_buttons a").removeClass("active");a(this).toggleClass("active");a(".showcase-content").quicksand(e.find("li.mobile"),{duration:500,attribute:"id",easing:"swing"})});a("#btn_desktop").click(function(){a(".showcase_buttons a").removeClass("active");a(this).toggleClass("active");a(".showcase-content").quicksand(e.find("li.desktop"),{duration:500,attribute:"id",easing:"swing"})});a("#btn_tablet").click(function(){a(".showcase_buttons a").removeClass("active");a(this).toggleClass("active");a(".showcase-content").quicksand(e.find("li.tablet"),{duration:500,attribute:"id",easing:"swing"})})})})(jQuery);
