function getFaq(){var e=$.getUrlVar("route"),t=$.getUrlVar("token");$.ajax({url:"index.php?route=extension/openbay/faqGet&token="+t+"&qry_route="+e,type:"GET",dataType:"json",success:function(e){if(e.faq_id){var t="";t+='<div id="faqPopupContainer">',t+='<span id="faqClose" onclick="hideFaq();">X</span>',t+="<h4>"+e.title+"</h4>",t+="<p>"+e.message+"</p>",t+='<p class="buttons">',t+='<a class="button" style="float:right;" href="'+e.link+'" target="_BLANK"><span>'+e.faqbtn+"</span></a>",t+="</p>",t+="</div>",$("#content").prepend(t),$("#faqPopupContainer").fadeIn()}}})}function hideFaq(){var e=$.getUrlVar("route"),t=$.getUrlVar("token");return $("#faqPopupContainer").fadeOut(),$.ajax({url:"index.php?route=extension/openbay/faqDismiss&token="+t+"&qry_route="+e,type:"GET",dataType:"json",success:function(e){}}),!1}$.extend({getUrlVars:function(){for(var e,t=[],n=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),a=0;a<n.length;a++)e=n[a].split("="),t.push(e[0]),t[e[0]]=e[1];return t},getUrlVar:function(e){return $.getUrlVars()[e]}}),$(document).ready(function(){getFaq()});