| Server IP : 10.19.1.101 / Your IP : 216.73.216.158 Web Server : Apache System : Linux web1f13.kinghost.net 5.4.282-1.el8.elrepo.x86_64 #1 SMP Mon Aug 19 18:33:22 EDT 2024 x86_64 User : schererimoveisrs ( 170628) PHP Version : 7.4.33 Disable Function : apache_child_terminate,c99_buff_prepare,c99_sess_put,dl,exec,leak,link,myshellexec,openlog,passthru,pclose,pcntl_exec,php_check_syntax,php_strip_whitespace,popen,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,symlink,system,socket_listen,socket_create_listen,putenv MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/schererimoveisrs/www/pre backup/wp-content/themes/sauron/inc/js/ |
Upload File : |
function wdwt_shorter_body(down){
if(WDWT_PG_page_settings.width == 'phone' || WDWT_PG_page_settings.width == 'tablet'){
jQuery('#footer').css('top', '');
return;
}
/*move footer to the bottom if content height is small*/
if(jQuery('#wpadminbar').length){
wpadmin_h = jQuery('#wpadminbar').height();
}
else{
wpadmin_h = 0;
}
shorter_body = jQuery(window).height() - jQuery('body').height() - wpadmin_h;
if(typeof down != 'undefined'){
shorter_body = down;
}
if(shorter_body > 0){
//jQuery('#footer').css('position', 'fixed');
// jQuery('#footer').css('bottom', 0);
// jQuery('#footer').css('right', 0);
// jQuery('#footer').css('left', 0);
// jQuery('#footer').css('margin', '0 auto');
jQuery('#footer').css('top', shorter_body);
}
}
function showResult(str, theme_url) {
if (str.length==0) {
jQuery("#livesearch").html('');
jQuery("#livesearch").css('border', '0px');
return;
}
var data_send = {};
data_send.action = 'wdwt_live_search';
data_send.s = str;
//document.getElementById("livesearch").innerHTML=xmlhttp.responseText;
jQuery.post(sauron_admin_ajax, data_send, function(data) {
jQuery("#livesearch").html(data);
}).success(function(jqXHR, textStatus, errorThrown) {
});
}
var sauron_active_menu = '';
//wdwt_sticky_timeout = false;
jQuery(document).ready(function(){
jQuery('.gallery-tabs-content').on('click', function(){
//do nothing, hack for info to appear on ios
});
jQuery(document).click(function() {
if(jQuery("#livesearch").children().length)
jQuery("#livesearch").children().fadeOut(300);
});
if(jQuery(window).width()<1040 && jQuery(window).width() > 768){
var margin_top_menu = jQuery("#header").outerHeight() + 16;
}
else{
var margin_top_menu = jQuery("#header").outerHeight();
}
if(jQuery('#header').hasClass('sticky_menu')){
jQuery('.right_container').css('margin-top', margin_top_menu);
jQuery('#header').css('padding-top', 0);
}
jQuery('.prev_page').parent().addClass('prev_link');
jQuery('.next_page').parent().addClass('next_link');
sticky_menu();
jQuery( window ).scroll(function() {
sticky_menu();
var height = jQuery(window).scrollTop();
if(height > 400){
jQuery('#go-to-top').css('display', 'inline');
}
else {
jQuery('#go-to-top').css('display', 'none');
}
});
jQuery('#go-to-top').click(function(){
jQuery("html, body").animate({ scrollTop: 0 }, 600);
return false;
});
function doSetTimeout(element,i,effect,find_element, interval, callback){
setTimeout(function() {
if(find_element!="")
jQuery(element).eq(i).find(find_element).addClass(effect);
else
jQuery(element).eq(i).addClass(effect);
if(typeof callback != 'undefined' ){
callback(i);
}
},interval);
}
function sticky_menu(){
// if(wdwt_sticky_timeout){
// return;
// }
scroll_threshold = 0;
if(jQuery('#wpadminbar').length){
if(jQuery('#wpadminbar').css('position') == 'fixed'){
wpadmin_h = jQuery('#wpadminbar').height();
}
else{ //adminbar has absolute positioning on mobile < 600px width
wpadmin_h = 0;
}
}
else{
wpadmin_h = 0;
}
// no stickymenu if menu is open in phone and scroll triggered
if(jQuery('body').hasClass('phone') && jQuery('#top-nav').hasClass('open')){
return;
}
if(jQuery('body').hasClass('tablet') || jQuery('body').hasClass('phone')){
scroll_threshold = 100 +wpadmin_h;
}
if(jQuery(window).scrollTop()>scroll_threshold && wdwt_fixed_menu=="1"){
var shorter_body = jQuery("body").height() - jQuery(window).height();
var header_old_h = jQuery( "#header").height();
jQuery( "#header .container, #header" ).addClass('sticky_menu');
jQuery('#header.sticky_menu').css({'top': wpadmin_h});
jQuery('.phone .sticky_menu #menu-button-block').css({'top': wpadmin_h});
var shorter_body_2 = jQuery("body").height() - jQuery(window).height();
if( (shorter_body_2 < shorter_body) && shorter_body > -1* header_old_h){
var header_new_h = jQuery( "#header").height();
wdwt_shorter_body(shorter_body - shorter_body_2 /*+ wpadmin_h - header_new_h*/+4);
}
}
else {
jQuery('#header.sticky_menu').css({'top': ''});
jQuery('.phone .sticky_menu #menu-button-block').css({'top': ''});
jQuery( "#header .container, #header" ).removeClass('sticky_menu');
wdwt_shorter_body();
}
// wdwt_sticky_timeout = true;
// setTimeout(function(){ wdwt_sticky_timeout = false; }, 100);
//wdwt_shorter_body();
}
jQuery("#header .phone-menu-block").on("click","#menu-button-block", function(){
if(jQuery("#top-nav").hasClass("open")){
jQuery("#header #top-nav").slideUp("fast");
jQuery("#top-nav").removeClass("open");
}
else{
jQuery("#header #top-nav").slideDown("slow");
if(jQuery('#wpadminbar').length){
var wpadmin_h = jQuery('#wpadminbar').height();
}
jQuery("body.phone #header.sticky_menu").css('top', wpadmin_h);
jQuery("body.phone #header.sticky_menu #menu-button-block").css('top', wpadmin_h);
jQuery("#top-nav").addClass("open");
}
});
jQuery('#top-nav-list,.top-nav-list >ul').lavalamp({
easing: 'easeOutBack',
activeObj: '.current_page_item, .current-menu-item, .current-menu-parent, .current_page_parent',
});
var cat_tab_is_animated = 0;
jQuery('#top-nav li:has(> ul)').addClass('haschild');
jQuery("#top-nav > ul li.haschild,#top-nav > div > ul li.haschild").hover(
function(){
if(jQuery("body").hasClass("phone") || jQuery("body").hasClass("tablet") ){return false;}
loc_this=this;
jQuery(loc_this).css("z-index", "6");
jQuery(loc_this).children("ul").stop().slideDown(300);
},function(){
if(jQuery("body").hasClass("phone") || jQuery("body").hasClass("tablet")){return false;}
loc_this=this;
/*passing over lavalamp*/
jQuery(loc_this).children("ul").stop().slideUp(300);
setTimeout(function(){ jQuery(loc_this).css("z-index", "5"); }, 1000);
}
);
jQuery("#top-nav > ul li.haschild > a,#top-nav > div > ul li.haschild > a").click(function(){
if((jQuery("body").hasClass("phone") || jQuery("body").hasClass("tablet"))){
if(jQuery(this).parent().hasClass("open")){
jQuery(this).parent().parent().find(".haschild ul").slideUp(100);
jQuery(this).parent().removeClass("open");
return false;
}
jQuery(this).parent().parent().find(".haschild ul").slideUp(100);
jQuery(this).parent().parent().find(".haschild").removeClass("open");
jQuery(this).next("ul").slideDown("fast");
jQuery(this).parent().addClass("open");
return false;
}
});
var cat_tab_is_animated = 0;
setTimeout(function(){
//jQuery('.cont_vat_tab .content').css('height',jQuery("#categories-tabs-content-0").height());
}, 500);
jQuery("#image_list_top3 ul.tabs li a").click(function(){
jQuery('#image_list_top3 ul.content > li ul li div.thumbnail-block').removeClass('slide-in-left');
if(jQuery(this).parent().hasClass("active")){return false;}
if(cat_tab_is_animated) return false;
cat_tab_is_animated=1;
jQuery("#image_list_top3 ul.content > li:first-child").css("display", "none");
jQuery("#image_list_top3 ul.tabs li").removeClass("active");
var id=jQuery(this).attr("href").replace("#","");
jQuery('.content').css('height',jQuery("#categories-tabs-content-"+id).height());
var width_of_catigory_tab_li = jQuery("#image_list_top3 ul.content > li.active").eq(0).width();
jQuery(this).parent().addClass("active");
if(jQuery("#image_list_top3 ul.content > li.active").eq(0).index()>jQuery("#categories-tabs-content-"+id).index()){
jQuery("#image_list_top3 ul.content > li.active").animate({'left': width_of_catigory_tab_li+"px"},{duration:500,complete:function() { jQuery(this).removeClass("active");jQuery(this).css("display","none").css("left","0px"); cat_tab_is_animated=0;} });
jQuery("#categories-tabs-content-"+id).attr('style','left:-'+width_of_catigory_tab_li+'px');
jQuery("#categories-tabs-content-"+id).show();
jQuery("#categories-tabs-content-"+id).animate({'left':'0px'},{duration:500,complete:function() { jQuery(this).addClass("active")} });
}
else{
jQuery("#image_list_top3 ul.content > li.active").animate({'left':"-" + width_of_catigory_tab_li+"px"},{duration:500,complete:function() { jQuery(this).removeClass("active");jQuery(this).css("display","none").css("left","0px");cat_tab_is_animated=0; } });
jQuery("#categories-tabs-content-"+id).attr('style','left:'+width_of_catigory_tab_li+'px');
jQuery("#categories-tabs-content-"+id).show();
jQuery("#categories-tabs-content-"+id).animate({'left':'0px'},{duration:500,complete:function() { jQuery(this).addClass("active"); cat_tab_is_animated=0;} });
}
return false;
}).stop();
var call_once0 = 0;
var call_once1 = 0;
var call_once2 = 0;
var call_once3 = 0;
var call_once4 = 0;
var call_once5 = 0;
var call_once6 = 0;
if(wdwt_fixed_menu==1)
var fixed_menu_height = jQuery('header').height();
else var fixed_menu_height = 0;
if(jQuery('body').width()<1024 && jQuery('body').width()>768){
fixed_menu_height = fixed_menu_height + 1000;
}
if(document.location.href.substr(0, document.location.href.indexOf("#"))== sauron_site_url || document.location.href.substr(0, document.location.href.indexOf("#"))== sauron_site_url+'?' || document.location.href == sauron_site_url || document.location.href.indexOf('customize.php') > -1 )
jQuery( window ).scroll(function() {
var height = jQuery(window).scrollTop() + 10;
if(jQuery('#header').hasClass('sticky_menu')){
height += jQuery('#header').height();
}
if(jQuery('#wpadminbar').length){
height += jQuery('#wpadminbar').height();
}
sauron_section_y = [];
if(jQuery('#image_list_top0').length)
sauron_section_y[0] = jQuery('#image_list_top0').offset().top;
else
sauron_section_y[0] = 0;
if(jQuery('#image_list_top1').length)
sauron_section_y[1] = jQuery('#image_list_top1').offset().top;
else
sauron_section_y[2];
if(jQuery('#image_list_top2').length)
sauron_section_y[2] = jQuery('#image_list_top2').offset().top;
else
sauron_section_y[2] = 0;
if(jQuery('#image_list_top3').length)
sauron_section_y[3] = jQuery('#image_list_top3').offset().top;
else
sauron_section_y[3] = 0;
if(jQuery('#image_list_top4').length)
sauron_section_y[4] = jQuery('#image_list_top4').offset().top;
else
sauron_section_y[4] = 0;
if(jQuery('#image_list_top5').length)
sauron_section_y[5] = jQuery('#image_list_top5').offset().top;
else
sauron_section_y[5] = 0;
if(jQuery('#image_list_top7').length)
sauron_section_y[7] = jQuery('#image_list_top7').offset().top;
else
sauron_section_y[7] = 0;
if (jQuery('#image_list_top0').length) var height_canvas0 = jQuery('#image_list_top0').offset().top - 650;
else var height_canvas0 = 0;
if (jQuery('#image_list_top1').length) var height_canvas1 = jQuery('#image_list_top1').offset().top - 650;
else var height_canvas1 = 0;
if (jQuery('#image_list_top2').length) var height_canvas2 = jQuery('#image_list_top2').offset().top - 650;
else var height_canvas2 = 0;
if (jQuery('#image_list_top3').length) var height_canvas3 = jQuery('#image_list_top3').offset().top - 650;
else var height_canvas3 = 0;
if (jQuery('#image_list_top4').length) var height_canvas4 = jQuery('#image_list_top4').offset().top - 650;
else var height_canvas4 = 0;
if (jQuery('#image_list_top5').length) var height_canvas5 = jQuery('#image_list_top5').offset().top - 650;
else var height_canvas5 = 0;
/*bug??? Tigran*/
if (jQuery('#image_list_top7').length) var height_canvas7 = jQuery('#image_list_top7').offset().top - 650;
else var height_canvas7 = 0;
if(height < sauron_section_y[0] ){
jQuery('.menu-item-home').addClass('active_menu');
var active_menu = '.menu-item-home';
if(active_menu != sauron_active_menu){
jQuery( ".lavalamp-object" ).remove();
jQuery('#top-nav-list,.top-nav-list >ul').lavalamp({
easing: 'easeOutBack',
activeObj: active_menu,
});
sauron_active_menu = active_menu;
}
}
if ( height >= sauron_section_y[0] && height < sauron_section_y[0] + jQuery('#image_list_top0').height() ) {
jQuery('a[href$="features_post"]').parent().addClass('active_menu');
var active_menu = jQuery('a[href$="features_post"]').parent().attr('id');
if(active_menu != sauron_active_menu){
jQuery( ".lavalamp-object" ).remove();
jQuery('#top-nav-list,.top-nav-list >ul').lavalamp({
easing: 'easeOutBack',
activeObj: '#'+active_menu,
});
sauron_active_menu = active_menu;
}
}
else{
jQuery('a[href$="features_post"]').parent().removeClass('active_menu')
}
if ( height >= sauron_section_y[1] && height < sauron_section_y[1] + jQuery('#image_list_top1').height() ) {
jQuery('a[href$="categories_posts"]').parent().addClass('active_menu');
var active_menu = jQuery('a[href$="categories_posts"]').parent().attr('id');
if(active_menu != sauron_active_menu){
jQuery( ".lavalamp-object" ).remove();
jQuery('#top-nav-list,.top-nav-list >ul').lavalamp({
easing: 'easeOutBack',
activeObj: '#'+active_menu,
});
sauron_active_menu = active_menu;
}
}
else{
jQuery('a[href$="categories_posts"]').parent().removeClass('active_menu')
}
if ( height >= sauron_section_y[2] && height < sauron_section_y[2] + jQuery('#image_list_top2').height() ) {
jQuery('a[href$="gallery_posts"]').parent().addClass('active_menu');
var active_menu = jQuery('a[href$="gallery_posts"]').parent().attr('id');
if(active_menu != sauron_active_menu){
jQuery( ".lavalamp-object" ).remove();
jQuery('#top-nav-list,.top-nav-list >ul').lavalamp({
easing: 'easeOutBack',
activeObj: '#'+active_menu,
});
sauron_active_menu = active_menu;
}
}
else{
jQuery('a[href$="gallery_posts"]').parent().removeClass('active_menu')
}
if ( height >= sauron_section_y[3] && height < sauron_section_y[3] + jQuery('#image_list_top3').height() ) {
jQuery('a[href$="dynamic_posts"]').parent().addClass('active_menu');
var active_menu = jQuery('a[href$="dynamic_posts"]').parent().attr('id');
if(active_menu != sauron_active_menu){
jQuery( ".lavalamp-object" ).remove();
jQuery('#top-nav-list,.top-nav-list >ul').lavalamp({
easing: 'easeOutBack',
activeObj: '#'+active_menu,
});
sauron_active_menu = active_menu;
}
}
else{
jQuery('a[href$="dynamic_posts"]').parent().removeClass('active_menu')
}
if ( height >= sauron_section_y[4] && height < sauron_section_y[4] + jQuery('#image_list_top4').height() ) {
jQuery('a[href$="diagrams"]').parent().addClass('active_menu');
var active_menu = jQuery('a[href$="diagrams"]').parent().attr('id');
if(active_menu != sauron_active_menu){
jQuery( ".lavalamp-object" ).remove();
jQuery('#top-nav-list,.top-nav-list >ul').lavalamp({
easing: 'easeOutBack',
activeObj: '#'+active_menu,
});
sauron_active_menu = active_menu;
}
}
else{
jQuery('a[href$="diagrams"]').parent().removeClass('active_menu')
}
if ( height >= sauron_section_y[7] && height < sauron_section_y[7] + jQuery('#image_list_top7').height() ) {
jQuery('a[href$="contact_us"]').parent().addClass('active_menu');
var active_menu = jQuery('a[href$="contact_us"]').parent().attr('id');
if(active_menu != sauron_active_menu){
jQuery( ".lavalamp-object" ).remove();
jQuery('#top-nav-list,.top-nav-list >ul').lavalamp({
easing: 'easeOutBack',
activeObj: '#'+active_menu,
});
sauron_active_menu = active_menu;
}
}
else{
jQuery('a[href$="contact_us"]').parent().removeClass('active_menu')
}
if(height > height_canvas0 + 200) {
if (call_once0==0){
call_once0++;
jQuery("#image_list_top0").animate({
opacity: '1',
}, 800, function() {
// Animation complete.
});
}
}
if(height > height_canvas1 + 200) {
if (call_once1==0){
call_once1++;
var x = 100;
for (var i = 0; i < jQuery('#wd-horizontal-tabs .tabs li').length; ++i) {
doSetTimeout('#wd-horizontal-tabs .tabs li',i,'slide-in-right',".radius", x, function(i){ // callback
jQuery('#wd-horizontal-tabs .tabs li').eq(i).find(".post_info, .radius.animate").addClass('opaque');
});
x+=200;
}
setTimeout(function(){
jQuery("#horizontal_tabs h2, #horizontal_tabs .top-desc").animate({
opacity: '1',
}, 800, function() {
// Animation complete.
});
}, 500);
}
}
if(height > height_canvas2 + 200) {
if (call_once2==0){
call_once2++;
var x = 100;
for (var i = 0; i < jQuery(".gallery-tabs-content").length; ++i) {
doSetTimeout(".gallery-tabs-content",i,'bounce-in-up','', x);
x+=300;
}
}
}
if(height > height_canvas3 + 200) {
if (call_once3==0){
call_once3++;
jQuery("#wd-categories-tabs ul.content > li ul li div.thumbnail-block").addClass('animate');
jQuery("#wd-categories-tabs ul.content > li ul li div.thumbnail-block").addClass('slide-in-left');
jQuery( "#wd-categories-tabs" ).animate({
opacity: '1',
}, 100, function() {
// Animation complete.
});
}
}
if(height > height_canvas4 + 400) {
if (call_once4==0){
call_once4++;
jQuery( "#image_list_top5" ).animate({
opacity: '1',
}, 1000, function() {
// Animation complete.
});
}
}
if(height > height_canvas4 + 100) {
if (call_once5==0){
call_once5++;
jQuery(".social").addClass('animate');
var x = 100;
for (var i = 0; i < jQuery(".social").length; ++i) {
doSetTimeout(".social",i,'bounce-in-up','', x);
x+=200;
}
}
}
if(height > height_canvas7 + 300) {
if (call_once6==0){
call_once6++;
jQuery("#contact .textarea_contact").addClass('slide-in-right');
jQuery("#contact .first_lis").addClass('slide-in-left');
jQuery("#contact #contact_us").animate({
opacity: '1',
}, 1000, function() {
// Animation complete.
});
}
}
});
/*---- MENU_SCROLLING -----*/
active_menu_item = '';
array_of_elements={'contact_us':'image_list_top7','gallery_posts':'image_list_top2','features_post':'image_list_top0','categories_posts':'image_list_top1','dynamic_posts':'image_list_top3','diagrams':'image_list_top4', 'pinned_post':'image_list_top5'};
activ_element='';
activ_key='';
/*goto item when url is pasted with hash*/
if(sauron_is_front=='1' && window.location.hash){
var target = '';
for(element in array_of_elements){
if(element == window.location.hash.substring(1)){
target = array_of_elements[element];
}
}
wdwt_go_to(target);
}
if (typeof(localStorage) != 'undefined' ) {
active_scroll_item = localStorage.getItem("activ_scroling_item");
}
if(active_scroll_item){
wdwt_go_to(array_of_elements[active_scroll_item]);
if (typeof(localStorage) != 'undefined' ) {
localStorage.setItem("activ_scroling_item", '');
}
}
jQuery('#top-nav a[href]').each(function(){
if(jQuery(this).attr('href').indexOf("#")!=-1){
jQuery(this).click(function() {
if(jQuery(this).parent().hasClass('menu-item-has-children') &&
(jQuery(this).parents('body').hasClass('tablet') || jQuery(this).parents('body').hasClass('phone'))){
/*opened submenu in mobile view*/
return false;
}
menu_href = jQuery(this).attr('href');
/*front page , no customizer*/
if(typeof wp.customize === 'undefined' && (document.location.href.substr(0, document.location.href.indexOf("#"))== sauron_site_url || document.location.href.substr(0, document.location.href.indexOf("#"))== sauron_site_url+'?' || document.location.href == sauron_site_url )){
loc_this=this;
jQuery.each(array_of_elements,function(index,value){
if(jQuery(loc_this).attr('href').indexOf(index) >= 0){
wdwt_go_to(value);
}
});
return false;
}
/*front page , customizer*/
else if(typeof wp.customize !== 'undefined' && sauron_is_front=='1'){
hash = menu_href.split('#')[1];
var target = array_of_elements[hash];
wdwt_go_to(target);
//jQuery('body').animate({ scrollTop: target.offset().top- target.height()},800);
return false;
}
/*not front page*/
else{
loc_this=this;
jQuery.each(array_of_elements,function(index,value){
if(jQuery(loc_this).attr('href').indexOf(index) >= 0){
activ_key=index;
activ_element=value;
}
});
if (typeof(localStorage) != 'undefined' ) {
localStorage.setItem("activ_scroling_item", activ_key);
}
window.location = sauron_site_url;
}
return false;
});
}
});
var MyArray = ["features_post", "categories_posts", "gallery_posts", "dynamic_posts", "diagrams", "pinned_post", "contact_us"];
for(var i=0; i<MyArray.length; i++)
{
jQuery('a[href$="'+MyArray[i]+'"]').click(function() {
jQuery('a[href$="'+MyArray[i]+'"]').parent().addClass('active_menu');
jQuery('#top-nav').removeClass("open").css("display", "none");
var active_menu = jQuery('a[href$="'+MyArray[i]+'"]').parent().attr('id');
if(active_menu != sauron_active_menu){
jQuery( ".lavalamp-object" ).remove();
jQuery('#top-nav-list,.top-nav-list >ul').lavalamp({
easing: 'easeOutBack',
activeObj: '#'+active_menu,
});
sauron_active_menu = active_menu;
}
});
}
});
function wdwt_front_ajax_pagination(page, action, container, args){
var data_send = {};
if(typeof args != 'undefined'){
for (var prop in args) {
data_send[prop] = args[prop];
}
}
data_send.action = 'wdwt_front_'+action;
data_send.paged = page;
jQuery.post(sauron_admin_ajax, data_send, function(data) {
if(action == "portfolio_posts_section"){
wdwt_go_to('content_front_page');
}
jQuery(container).html(data);
}).success(function(jqXHR, textStatus, errorThrown) {
jQuery(container).addClass("ajaxed");
});
}
/**
* @param value : id of element to scroll to
*/
function wdwt_go_to(value){
element_offset = jQuery('#'+value).offset();
if(typeof element_offset != 'undefined'){
y = element_offset.top;
}
else{
y = 0;
}
y1 = jQuery('#header.sticky_menu').length ? 0 : jQuery('#header').height();
if(jQuery('#wpadminbar').length == 1){
if(jQuery(window).width()<768){
y2 = 0;
}else{
y2 = jQuery('#wpadminbar').height();
}
}
else{
y2 = 0;
}
jQuery(window).scrollTo( '#'+value, 1000,
{'offset':{'top':-y2-y1},
onAfter: function(){
// if(jQuery('.sticky_menu #menu-button-block').length == 1){
// /*phone + sticky menu*/
// y3 = jQuery('.sticky_menu #menu-button-block').height();
// }
// else if(jQuery('#header.sticky_menu').length == 1){
// y3 = jQuery('#header.sticky_menu').height();
// }
// else{
// y3 =0;
// }
// jQuery(window).scrollTo( '#'+value, 100,{'offset':{'top':-y2-y3}});
}
}
);
}