function avadaAddRevStyles(){Number(avadaRevVars.avada_rev_styles)&&jQuery(".rev_slider_wrapper").each((function(){var e,r,a=jQuery(this);1<=a.length&&-1===a.attr("class").indexOf("tp-shadow")&&(jQuery('<div class="shadow-left">').appendTo(this),jQuery('<div class="shadow-right">').appendTo(this),a.addClass("avada-skin-rev")),jQuery(this).find(".tp-leftarrow").hasClass("preview1")||jQuery(this).find(".tp-leftarrow").hasClass("preview2")||jQuery(this).find(".tp-leftarrow").hasClass("preview3")||jQuery(this).find(".tp-leftarrow").hasClass("preview4")||(jQuery(this).addClass("avada-skin-rev-nav"),a.find(".tp-leftarrow").height()>a.height()/4&&a.find(".tp-leftarrow").height()<a.height()&&(e=a.attr("id"),r=a.height()/4,a.children(".avada-rev-arrows").length?(a.children(".avada-rev-arrows").empty(),a.children(".avada-rev-arrows").append('<style type="text/css">#'+e+" .tp-leftarrow, #"+e+" .tp-rightarrow{margin-top:-"+r/2+"px !important;width:"+r+"px !important;height:"+r+"px !important;}#"+e+" .tp-leftarrow:before, #"+e+" .tp-rightarrow:before{line-height:"+r+"px;font-size:"+r/2+"px;}</style>")):a.prepend('<div class="avada-rev-arrows"><style type="text/css">#'+e+" .tp-leftarrow, #"+e+" .tp-rightarrow{margin-top:-"+r/2+"px !important;width:"+r+"px !important;height:"+r+"px !important;}#"+e+" .tp-leftarrow:before, #"+e+" .tp-rightarrow:before{line-height:"+r+"px;font-size:"+r/2+"px;}</style></div>")),jQuery(window).on("resize",(function(){a.find(".tp-leftarrow").height()>a.height()/4&&a.find(".tp-leftarrow").height()<a.height()?(e=a.attr("id"),r=a.height()/4,a.children(".avada-rev-arrows").length?(a.children(".avada-rev-arrows").empty(),a.children(".avada-rev-arrows").append('<style type="text/css">#'+e+" .tp-leftarrow, #"+e+" .tp-rightarrow{margin-top:-"+r/2+"px !important;width:"+r+"px !important;height:"+r+"px !important;}#"+e+" .tp-leftarrow:before, #"+e+" .tp-rightarrow:before{line-height:"+r+"px;font-size:"+r/2+"px;}</style>")):a.prepend('<div class="avada-rev-arrows"><style type="text/css">#'+e+" .tp-leftarrow, #"+e+" .tp-rightarrow{margin-top:-"+r/2+"px !important;width:"+r+"px !important;height:"+r+"px !important;}#"+e+" .tp-leftarrow:before, #"+e+" .tp-rightarrow:before{line-height:"+r+"px;font-size:"+r/2+"px;}</style></div>")):a.children(".avada-rev-arrows").remove()})))}))}function avadaRemoveRevStyles(){Number(avadaRevVars.avada_rev_styles)||(jQuery(".shadow-left").remove(),jQuery(".shadow-right").remove(),jQuery(".avada-rev-arrows").remove(),jQuery(".avada-skin-rev").removeClass("avada-skin-rev"),jQuery(".avada-skin-rev-nav").removeClass("avada-skin-rev"))}jQuery(window).on("load",(function(){avadaAddRevStyles(),jQuery(window).on("DestoryRevStyle",avadaRemoveRevStyles),jQuery(window).on("AddRevStyles",avadaAddRevStyles)}));