// source --> https://www.centromedicobuenosaires36.it/wp-content/plugins/megamenu/js/maxmegamenu.js /*jslint browser: true, white: true, this: true, long: true */ /*global console,jQuery,megamenu,window,navigator*/ /*! Max Mega Menu jQuery Plugin */ (function ( $ ) { "use strict"; $.maxmegamenu = function(menu, options) { var plugin = this; var $menu = $(menu); var $toggle_bar = $menu.siblings(".mega-menu-toggle"); var defaults = { event: $menu.attr("data-event"), effect: $menu.attr("data-effect"), effect_speed: parseInt($menu.attr("data-effect-speed")), effect_mobile: $menu.attr("data-effect-mobile"), effect_speed_mobile: parseInt($menu.attr("data-effect-speed-mobile")), panel_width: $menu.attr("data-panel-width"), panel_inner_width: $menu.attr("data-panel-inner-width"), mobile_force_width: $menu.attr("data-mobile-force-width"), second_click: $menu.attr("data-second-click"), vertical_behaviour: $menu.attr("data-vertical-behaviour"), document_click: $menu.attr("data-document-click"), breakpoint: $menu.attr("data-breakpoint"), unbind_events: $menu.attr("data-unbind") }; plugin.settings = {}; var items_with_submenus = $("li.mega-menu-megamenu.mega-menu-item-has-children," + "li.mega-menu-flyout.mega-menu-item-has-children," + "li.mega-menu-tabbed > ul.mega-sub-menu > li.mega-menu-item-has-children," + "li.mega-menu-flyout li.mega-menu-item-has-children", menu); plugin.hidePanel = function(anchor, immediate) { anchor.parent().triggerHandler("before_close_panel"); anchor.attr("aria-expanded", "false"); if ( (!immediate && plugin.settings.effect === "slide") || (plugin.isMobileView() && plugin.settings.effect_mobile === "slide") ) { var speed = plugin.isMobileView() ? plugin.settings.effect_speed_mobile : plugin.settings.effect_speed; anchor.siblings(".mega-sub-menu").animate({"height":"hide", "paddingTop":"hide", "paddingBottom":"hide", "minHeight":"hide"}, speed, function() { anchor.siblings(".mega-sub-menu").css("display", ""); anchor.parent().removeClass("mega-toggle-on").triggerHandler("close_panel"); }); return; } if (immediate) { anchor.siblings(".mega-sub-menu").css("display", "none").delay(plugin.settings.effect_speed).queue(function(){ $(this).css("display", "").dequeue(); }); } // pause video widget videos anchor.siblings(".mega-sub-menu").find(".widget_media_video video").each(function() { this.player.pause(); }); anchor.parent().removeClass("mega-toggle-on").triggerHandler("close_panel"); plugin.addAnimatingClass(anchor.parent()); }; plugin.addAnimatingClass = function(element) { if (plugin.settings.effect === "disabled") { return; } $(".mega-animating").removeClass("mega-animating"); var timeout = plugin.settings.effect_speed + parseInt(megamenu.timeout, 10); element.addClass("mega-animating"); setTimeout(function() { element.removeClass("mega-animating"); }, timeout ); }; plugin.hideAllPanels = function() { $(".mega-toggle-on > a.mega-menu-link", $menu).each(function() { plugin.hidePanel($(this), false); }); }; plugin.hideSiblingPanels = function(anchor, immediate) { anchor.parent().parent().find(".mega-toggle-on").children("a.mega-menu-link").each(function() { // all open children of open siblings plugin.hidePanel($(this), immediate); }); }; plugin.isDesktopView = function() { return Math.max(window.outerWidth, $(window).width()) > plugin.settings.breakpoint; // account for scrollbars }; plugin.isMobileView = function() { return !plugin.isDesktopView(); }; plugin.showPanel = function(anchor) { anchor.parent().triggerHandler("before_open_panel"); anchor.attr("aria-expanded", "true"); $(".mega-animating").removeClass("mega-animating"); if (plugin.isMobileView() && anchor.parent().hasClass("mega-hide-sub-menu-on-mobile")) { return; } if (plugin.isDesktopView() && ($menu.hasClass("mega-menu-horizontal") || $menu.hasClass("mega-menu-vertical"))) { plugin.hideSiblingPanels(anchor, true); } if ((plugin.isMobileView() && $menu.hasClass("mega-keyboard-navigation")) || plugin.settings.vertical_behaviour === "accordion") { plugin.hideSiblingPanels(anchor, false); } plugin.calculateDynamicSubmenuWidths(anchor); // apply jQuery transition (only if the effect is set to "slide", other transitions are CSS based) if ( plugin.settings.effect === "slide" || (plugin.isMobileView() && plugin.settings.effect_mobile === "slide")) { var speed = plugin.isMobileView() ? plugin.settings.effect_speed_mobile : plugin.settings.effect_speed; anchor.siblings(".mega-sub-menu").css("display", "none").animate({"height":"show", "paddingTop":"show", "paddingBottom":"show", "minHeight":"show"}, speed, function() { $(this).css("display", ""); }); } anchor.parent().addClass("mega-toggle-on").triggerHandler("open_panel"); }; plugin.calculateDynamicSubmenuWidths = function(anchor) { // apply dynamic width and sub menu position (only to top level mega menus) if (anchor.parent().hasClass("mega-menu-megamenu") && anchor.parent().parent().hasClass("max-mega-menu") && plugin.settings.panel_width && $(plugin.settings.panel_width).length > 0) { if (plugin.isDesktopView()) { var submenu_offset = $menu.offset(); var target_offset = $(plugin.settings.panel_width).offset(); anchor.siblings(".mega-sub-menu").css({ width: $(plugin.settings.panel_width).outerWidth(), left: (target_offset.left - submenu_offset.left) + "px" }); } else { anchor.siblings(".mega-sub-menu").css({ width: "", left: "" }); } } // apply inner width to sub menu by adding padding to the left and right of the mega menu if (anchor.parent().hasClass("mega-menu-megamenu") && anchor.parent().parent().hasClass("max-mega-menu") && plugin.settings.panel_inner_width && $(plugin.settings.panel_inner_width).length > 0) { var target_width = 0; if ($(plugin.settings.panel_inner_width).length) { // jQuery selector target_width = parseInt($(plugin.settings.panel_inner_width).width(), 10); } else { // we"re using a pixel width target_width = parseInt(plugin.settings.panel_inner_width, 10); } var submenu_width = parseInt(anchor.siblings(".mega-sub-menu").innerWidth(), 10); if (plugin.isDesktopView() && target_width > 0 && target_width < submenu_width) { anchor.siblings(".mega-sub-menu").css({ "paddingLeft": (submenu_width - target_width) / 2 + "px", "paddingRight": (submenu_width - target_width) / 2 + "px" }); } else { anchor.siblings(".mega-sub-menu").css({ "paddingLeft": "", "paddingRight": "" }); } } }; var bindClickEvents = function() { var dragging = false; $(document).on({ "touchmove": function(e) { dragging = true; }, "touchstart": function(e) { dragging = false; } }); $(document).on("click touchend", function(e) { // hide menu when clicked away from if (!dragging && plugin.settings.document_click === "collapse" && ! $(e.target).closest(".max-mega-menu li").length && ! $(e.target).closest(".mega-menu-toggle").length ) { plugin.hideAllPanels(); plugin.hideMobileMenu(); } dragging = false; }); $("> a.mega-menu-link", items_with_submenus).on("touchend.megamenu", function(e) { plugin.unbindHoverEvents(); plugin.unbindHoverIntentEvents(); }); $("> a.mega-menu-link", items_with_submenus).on("click.megamenu", function(e) { if (plugin.isDesktopView() && $(this).parent().hasClass("mega-toggle-on") && $(this).parent().parent().parent().hasClass("mega-menu-tabbed") ) { if (plugin.settings.second_click === "go") { return; } else { e.preventDefault(); return; } } if (dragging) { return; } if (plugin.isMobileView() && $(this).parent().hasClass("mega-hide-sub-menu-on-mobile")) { return; // allow all clicks on parent items when sub menu is hidden on mobile } if ((plugin.settings.second_click === "go" || $(this).parent().hasClass("mega-click-click-go")) && $(this).attr("href") !== undefined) { // check for second click if (!$(this).parent().hasClass("mega-toggle-on")) { e.preventDefault(); plugin.showPanel($(this)); } } else { e.preventDefault(); if ($(this).parent().hasClass("mega-toggle-on")) { plugin.hidePanel($(this), false); } else { plugin.showPanel($(this)); } } }); }; var bindHoverEvents = function() { items_with_submenus.on({ "mouseenter.megamenu" : function() { plugin.unbindClickEvents(); if (! $(this).hasClass("mega-toggle-on")) { plugin.showPanel($(this).children("a.mega-menu-link")); } }, "mouseleave.megamenu" : function() { if ($(this).hasClass("mega-toggle-on") && ! $(this).hasClass("mega-disable-collapse") && ! $(this).parent().parent().hasClass("mega-menu-tabbed")) { plugin.hidePanel($(this).children("a.mega-menu-link"), false); } } }); }; var bindHoverIntentEvents = function() { items_with_submenus.hoverIntent({ over: function () { plugin.unbindClickEvents(); if (! $(this).hasClass("mega-toggle-on")) { plugin.showPanel($(this).children("a.mega-menu-link")); } }, out: function () { if ($(this).hasClass("mega-toggle-on") && ! $(this).hasClass("mega-disable-collapse") && ! $(this).parent().parent().hasClass("mega-menu-tabbed")) { plugin.hidePanel($(this).children("a.mega-menu-link"), false); } }, timeout: megamenu.timeout, interval: megamenu.interval }); }; var bindKeyboardEvents = function() { var tab_key = 9; var escape_key = 27; var enter_key = 13; var left_arrow_key = 37; var right_arrow_key = 39; var space_key = 32; $menu.parent().on("keyup.megamenu", function(e) { var keyCode = e.keyCode || e.which; if (keyCode === tab_key) { $menu.parent().addClass("mega-keyboard-navigation"); } }); $menu.parent().on("keydown.megamenu", function(e) { var keyCode = e.keyCode || e.which; var active_link = $(e.target); if (keyCode === space_key && $menu.parent().hasClass("mega-keyboard-navigation") ) { e.preventDefault(); // pressing space on a parent item will always toggle the sub menu if ( active_link.parent().is(items_with_submenus) ) { if ( active_link.parent().hasClass("mega-toggle-on") && ! active_link.parent().parent().parent().hasClass("mega-menu-tabbed") ) { plugin.hidePanel(active_link); } else { plugin.showPanel(active_link); } } } }); $menu.parent().on("keyup.megamenu", function(e) { var keyCode = e.keyCode || e.which; var active_link = $(e.target); if ( keyCode === tab_key && $menu.parent().hasClass("mega-keyboard-navigation") ) { if ( active_link.parent().is(items_with_submenus) && active_link.is("[href]") !== false ) { plugin.showPanel(active_link); } else { if ( ! active_link.parent().parent().parent().hasClass("mega-menu-tabbed") ) { plugin.hideSiblingPanels(active_link); } } } if ( keyCode === escape_key && $menu.parent().hasClass("mega-keyboard-navigation") ) { var submenu_open = $("> .mega-toggle-on", $menu).length !== 0; $("> .mega-toggle-on > a.mega-menu-link", $menu).focus(); plugin.hideAllPanels(); if ( plugin.isMobileView() && ! submenu_open ) { plugin.hideMobileMenu(); $(".mega-menu-toggle-block, button.mega-toggle-animated", $toggle_bar).first().focus(); } } if ( keyCode === enter_key && $menu.parent().hasClass("mega-keyboard-navigation") ) { if ( active_link.hasClass("mega-menu-toggle-block") ) { if ( $toggle_bar.hasClass("mega-menu-open") ) { plugin.hideMobileMenu(); } else { plugin.showMobileMenu(); } } // pressing enter on a parent item without a link will toggle the sub menu if ( active_link.parent().is(items_with_submenus) && active_link.is("[href]") === false ) { if ( active_link.parent().hasClass("mega-toggle-on") && ! active_link.parent().parent().parent().hasClass("mega-menu-tabbed") ) { plugin.hidePanel(active_link); } else { plugin.showPanel(active_link); } } } if ( keyCode === right_arrow_key && plugin.isDesktopView() && $menu.parent().hasClass("mega-keyboard-navigation") && $menu.hasClass("mega-menu-horizontal") ) { var next_top_level_item = $("> .mega-toggle-on", $menu).nextAll("li.mega-menu-item:visible").find("> a.mega-menu-link, .mega-search input[type=text]").first(); if (next_top_level_item.length === 0) { next_top_level_item = $(":focus", $menu).parent().nextAll("li.mega-menu-item:visible").find("> a.mega-menu-link, .mega-search input[type=text]").first(); } next_top_level_item.focus(); if ( next_top_level_item.parent().is(items_with_submenus) && next_top_level_item.is("[href]") !== false ) { plugin.showPanel(next_top_level_item); } else { plugin.hideSiblingPanels(next_top_level_item); } } if ( keyCode === left_arrow_key && plugin.isDesktopView() && $menu.parent().hasClass("mega-keyboard-navigation") && $menu.hasClass("mega-menu-horizontal") ) { var prev_top_level_item = $("> .mega-toggle-on", $menu).prevAll("li.mega-menu-item:visible").find("> a.mega-menu-link, .mega-search input[type=text]").last(); if (prev_top_level_item.length === 0) { prev_top_level_item = $(":focus", $menu).parent().prevAll("li.mega-menu-item:visible").find("> a.mega-menu-link, .mega-search input[type=text]").last(); } prev_top_level_item.focus(); if ( prev_top_level_item.parent().is(items_with_submenus) && prev_top_level_item.is("[href]") !== false ) { plugin.showPanel(prev_top_level_item); } else { plugin.hideSiblingPanels(prev_top_level_item); } } }); $menu.parent().on("focusout.megamenu", function(e) { if ( $menu.parent().hasClass("mega-keyboard-navigation") ) { setTimeout(function() { var menu_has_focus = $menu.parent().find(":focus").length > 0; if (! menu_has_focus) { $menu.parent().removeClass("mega-keyboard-navigation"); plugin.hideAllPanels(); plugin.hideMobileMenu(); } }, 10); } }); }; plugin.unbindAllEvents = function() { $("ul.mega-sub-menu, li.mega-menu-item, li.mega-menu-row, li.mega-menu-column, a.mega-menu-link, span.mega-indicator", menu).off().unbind(); }; plugin.unbindClickEvents = function() { $("> a.mega-menu-link", items_with_submenus).off("click.megamenu touchend.megamenu"); }; plugin.unbindHoverEvents = function() { items_with_submenus.unbind("mouseenter.megamenu mouseleave.megamenu"); }; plugin.unbindHoverIntentEvents = function() { items_with_submenus.unbind("mouseenter mouseleave").removeProp("hoverIntent_t").removeProp("hoverIntent_s"); // hoverintent does not allow namespaced events }; plugin.unbindKeyboardEvents = function() { $menu.parent().off("keyup.megamenu keydown.megamenu focusout.megamenu"); }; plugin.unbindMegaMenuEvents = function() { if (plugin.settings.event === "hover_intent") { plugin.unbindHoverIntentEvents(); } if (plugin.settings.event === "hover") { plugin.unbindHoverEvents(); } plugin.unbindClickEvents(); plugin.unbindKeyboardEvents(); }; plugin.bindMegaMenuEvents = function() { if (plugin.isDesktopView() && plugin.settings.event === "hover_intent") { bindHoverIntentEvents(); } if (plugin.isDesktopView() && plugin.settings.event === "hover") { bindHoverEvents(); } bindClickEvents(); // always bind click events for touch screen devices bindKeyboardEvents(); }; plugin.monitorView = function() { if (plugin.isDesktopView()) { $menu.data("view", "desktop"); } else { $menu.data("view", "mobile"); plugin.switchToMobile(); } plugin.checkWidth(); $(window).resize(function() { plugin.checkWidth(); }); }; plugin.checkWidth = function() { if ( plugin.isMobileView() && $menu.data("view") === "desktop" ) { $menu.data("view", "mobile"); plugin.switchToMobile(); } if ( plugin.isDesktopView() && $menu.data("view") === "mobile" ) { $menu.data("view", "desktop"); plugin.switchToDesktop(); } plugin.calculateDynamicSubmenuWidths($("> li.mega-menu-megamenu > a.mega-menu-link", $menu)); }; plugin.reverseRightAlignedItems = function() { if ( ! $("body").hasClass("rtl") ) { $menu.append($menu.children("li.mega-item-align-right").get().reverse()); } }; plugin.addClearClassesToMobileItems = function() { $(".mega-menu-row", $menu).each(function() { $("> .mega-sub-menu > .mega-menu-column:not(.mega-hide-on-mobile)", $(this)).filter(":even").addClass("mega-menu-clear"); // :even is 0 based }); }; plugin.switchToMobile = function() { plugin.unbindMegaMenuEvents(); plugin.bindMegaMenuEvents(); plugin.reverseRightAlignedItems(); plugin.addClearClassesToMobileItems(); plugin.hideAllPanels(); }; plugin.switchToDesktop = function() { plugin.unbindMegaMenuEvents(); plugin.bindMegaMenuEvents(); plugin.reverseRightAlignedItems(); plugin.hideAllPanels(); $menu.css({ width: "", left: "", display: "" }); $toggle_bar.removeClass("mega-menu-open"); }; plugin.initToggleBar = function() { // mobile menu $toggle_bar.on("click", function(e) { if ( $(e.target).is(".mega-menu-toggle, .mega-menu-toggle-block, .mega-menu-toggle-animated-block, .mega-menu-toggle-animated-block *, .mega-toggle-blocks-left, .mega-toggle-blocks-center, .mega-toggle-blocks-right, .mega-toggle-label, .mega-toggle-label span") ) { if ($(this).hasClass("mega-menu-open")) { plugin.hideMobileMenu(); } else { plugin.showMobileMenu(); } } }); }; plugin.hideMobileMenu = function() { if ( ! $toggle_bar.is(":visible")) { return; } $("body").removeClass($menu.attr("id") + "-mobile-open"); $(".mega-toggle-label, .mega-toggle-animated", $toggle_bar).attr("aria-expanded", "false"); if (plugin.settings.effect_mobile === "slide") { $menu.animate({"height":"hide"}, plugin.settings.effect_speed_mobile, function() { $menu.css({ width: "", left: "", display: "" }); }); } $toggle_bar.removeClass("mega-menu-open"); }; plugin.showMobileMenu = function() { if ( ! $toggle_bar.is(":visible")) { return; } $("body").addClass($menu.attr("id") + "-mobile-open"); $(".mega-toggle-label, .mega-toggle-animated", $toggle_bar).attr("aria-expanded", "true"); plugin.toggleBarForceWidth(); if (plugin.settings.effect_mobile === "slide") { $menu.animate({"height":"show"}, plugin.settings.effect_speed_mobile); } $toggle_bar.addClass("mega-menu-open"); }; plugin.toggleBarForceWidth = function() { if ($(plugin.settings.mobile_force_width).length) { var submenu_offset = $toggle_bar.offset(); var target_offset = $(plugin.settings.mobile_force_width).offset(); $menu.css({ width: $(plugin.settings.mobile_force_width).outerWidth(), left: (target_offset.left - submenu_offset.left) + "px" }); } }; plugin.init = function() { $menu.triggerHandler("before_mega_menu_init"); plugin.settings = $.extend({}, defaults, options); $menu.removeClass("mega-no-js"); plugin.initToggleBar(); if (plugin.settings.unbind_events === "true") { plugin.unbindAllEvents(); } $("span.mega-indicator", $menu).on("click", function(e) { e.preventDefault(); e.stopPropagation(); if ( $(this).parent().parent().hasClass("mega-toggle-on") ) { plugin.hidePanel($(this).parent(), false); } else { plugin.showPanel($(this).parent(), false); } }); $(window).on("load", function() { plugin.calculateDynamicSubmenuWidths($("> li.mega-menu-megamenu > a.mega-menu-link", $menu)); }); plugin.bindMegaMenuEvents(); plugin.monitorView(); $menu.triggerHandler("after_mega_menu_init"); }; plugin.init(); }; $.fn.maxmegamenu = function(options) { return this.each(function() { if (undefined === $(this).data("maxmegamenu")) { var plugin = new $.maxmegamenu(this, options); $(this).data("maxmegamenu", plugin); } }); }; $(function() { $(".max-mega-menu").maxmegamenu(); }); }( jQuery )); // source --> https://www.centromedicobuenosaires36.it/wp-includes/js/mediaelement/wp-mediaelement.min.js !function(e,n){e.wp=e.wp||{},e.wp.mediaelement=new function(){var e={};return{initialize:function(){(e="undefined"!=typeof _wpmejsSettings?n.extend(!0,{},_wpmejsSettings):e).classPrefix="mejs-",e.success=e.success||function(e){var n,t;e.rendererName&&-1!==e.rendererName.indexOf("flash")&&(n=e.attributes.autoplay&&"false"!==e.attributes.autoplay,t=e.attributes.loop&&"false"!==e.attributes.loop,n&&e.addEventListener("canplay",function(){e.play()},!1),t&&e.addEventListener("ended",function(){e.play()},!1))},e.customError=function(e,n){if(-1!==e.rendererName.indexOf("flash")||-1!==e.rendererName.indexOf("flv"))return''+mejsL10n.strings["mejs.download-video"]+""},n(".wp-audio-shortcode, .wp-video-shortcode").not(".mejs-container").filter(function(){return!n(this).parent().hasClass("mejs-mediaelement")}).mediaelementplayer(e)}}},n(e.wp.mediaelement.initialize)}(window,jQuery); // source --> https://www.centromedicobuenosaires36.it/wp-includes/js/mediaelement/renderers/vimeo.min.js /*! * MediaElement.js * http://www.mediaelementjs.com/ * * Wrapper that mimics native HTML5 MediaElement (audio and video) * using a variety of technologies (pure JavaScript, Flash, iframe) * * Copyright 2010-2017, John Dyer (http://j.hn/) * License: MIT * */ !function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var c="function"==typeof require&&require;if(!s&&c)return c(o,!0);if(a)return a(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return i(n||e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var a="function"==typeof require&&require,o=0;o0&&(l=p*t,e.originalNode.autoplay)){o=!1,d=!1;var n=mejs.Utils.createEvent("play",a);e.dispatchEvent(n)}}).catch(function(e){v(e,a)})}),m.on("progress",function(){m.getDuration().then(function(t){if((p=t)>0&&(l=p*t,e.originalNode.autoplay)){var n=mejs.Utils.createEvent("play",a);e.dispatchEvent(n);var r=mejs.Utils.createEvent("playing",a);e.dispatchEvent(r)}var i=mejs.Utils.createEvent("progress",a);e.dispatchEvent(i)}).catch(function(e){v(e,a)})}),m.on("timeupdate",function(){m.getCurrentTime().then(function(t){u=t;var n=mejs.Utils.createEvent("timeupdate",a);e.dispatchEvent(n)}).catch(function(e){v(e,a)})}),m.on("play",function(){o=!1,d=!1;var t=mejs.Utils.createEvent("play",a);e.dispatchEvent(t);var n=mejs.Utils.createEvent("playing",a);e.dispatchEvent(n)}),m.on("pause",function(){o=!0,d=!1;var t=mejs.Utils.createEvent("pause",a);e.dispatchEvent(t)}),m.on("ended",function(){o=!1,d=!0;var t=mejs.Utils.createEvent("ended",a);e.dispatchEvent(t)});for(var j=0,b=(g=["rendererready","loadedmetadata","loadeddata","canplay"]).length;j https://www.centromedicobuenosaires36.it/wp-includes/js/wp-embed.min.js !function(d,l){"use strict";var e=!1,n=!1;if(l.querySelector)if(d.addEventListener)e=!0;if(d.wp=d.wp||{},!d.wp.receiveEmbedMessage)if(d.wp.receiveEmbedMessage=function(e){var t=e.data;if(t)if(t.secret||t.message||t.value)if(!/[^a-zA-Z0-9]/.test(t.secret)){for(var r,i,a,s=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),n=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),o=new RegExp("^https?:$","i"),c=0;c https://www.centromedicobuenosaires36.it/wp-content/plugins/akismet/_inc/form.js var ak_js = document.getElementById( "ak_js" ); if ( ! ak_js ) { ak_js = document.createElement( 'input' ); ak_js.setAttribute( 'id', 'ak_js' ); ak_js.setAttribute( 'name', 'ak_js' ); ak_js.setAttribute( 'type', 'hidden' ); } else { ak_js.parentNode.removeChild( ak_js ); } ak_js.setAttribute( 'value', ( new Date() ).getTime() ); var commentForm = document.getElementById( 'commentform' ); if ( commentForm ) { commentForm.appendChild( ak_js ); } else { var replyRowContainer = document.getElementById( 'replyrow' ); if ( replyRowContainer ) { var children = replyRowContainer.getElementsByTagName( 'td' ); if ( children.length > 0 ) { children[0].appendChild( ak_js ); } } };