var WCML_Pointer=WCML_Pointer||{};!function(a){WCML_Pointer.openPointer=function(b){var c=a("#"+b.data("wcml-open-pointer"));a(".wcml-information-active-pointer").pointer("close"),b.length&&(b.addClass("wcml-information-active-pointer"),b.pointer({pointerClass:"wcml-information-pointer",content:c.html(),position:{edge:"bottom",align:"right"},buttons:function(b,c){var d=a('');return d.bind("click.pointer",function(a){a.preventDefault(),c.element.pointer("close")}),d},show:function(a,b){b.pointer.css("marginLeft","115px"),b.pointer.css("z-index","99999")},close:function(a,b){b.pointer.css("marginLeft","0")}}).pointer("open"))},a("body").on("click","[data-wcml-open-pointer]",function(){WCML_Pointer.openPointer(a(this))}),a("body").on("click","a",function(){a(this).hasClass("wcml-pointer-link")||a(".wcml-information-active-pointer").pointer("close")})}(jQuery),jQuery(document).ready(function(a){a(".wcml-pointer-block").each(function(){var b=a(this).data("selector");if(b){switch(a(this).data("insert-method")){case"prepend":a(this).prependTo(a("#"+b)).show();break;case"append":a(this).appendTo(a("#"+b)).show();break;default:a(this).insertAfter(a("#"+b)).show()}}else a(this).show()})});