var pafData = {}; var paf_id = 'new***700'; pafData.documentData = '<html><head><style>body{margin:0px !important;}.paf_container{width:700px; display: inline-block; font-family: sans-serif;}.paf_container a{text-decoration:none !important;} .paf_container a span:nth-child(2){color:#000 !important;} .paf_container .tab{ /*overflow: hidden;*/ } .paf_container .tab button { background-color: inherit; float: left; border: none; outline: none; cursor: pointer; padding: 14px 16px; transition: 0.3s; } .paf_container .tab button:hover { background-color: #ddd; } .paf_container .tab button.active { background: #ccc !important; }.paf_container .tabcontent { display: none; background: #ececec; border-top: none; height: 334px; width: 698px;} .paf_container .paf_widget_menu_item{display: inline-block;} .paf_container .tablinks:hover span, .paf_container .tablinks.active span{ text-align: center; display: table; margin-top: 20px; color: #fff; padding: 8px;} .paf_container .tablinks{text-align:center;} .paf_container .tablinks span{text-align: center;display: table;margin-top: 20px;color: #fff;padding: 8px;}.paf_container #paf_widget_menu_item_1{background:linear-gradient(rgba(96, 96, 96, 0.7),rgba(96, 96, 96, 0.7)), url('https://migraineadmin.patientadvocate.org/wp-content/themes/widget/assets/images/widget/menu_1.jpg') no-repeat center; background-size: cover; margin-right: -3px;}.paf_container #paf_widget_menu_item_2{background:linear-gradient(rgba(96, 96, 96, 0.7),rgba(96, 96, 96, 0.7)), url('https://migraineadmin.patientadvocate.org/wp-content/themes/widget/assets/images/widget/menu_2.jpg') no-repeat center; background-size: cover; margin-right: -3px;}.paf_container #paf_widget_menu_item_4{background:linear-gradient(rgba(96, 96, 96, 0.7),rgba(96, 96, 96, 0.7)), url('https://migraineadmin.patientadvocate.org/wp-content/themes/widget/assets/images/widget/menu_4.jpg') no-repeat center; background-size: cover; margin-right: -3px;}.paf_container #paf_widget_menu_item_5{background:linear-gradient(rgba(96, 96, 96, 0.7),rgba(96, 96, 96, 0.7)), url('https://migraineadmin.patientadvocate.org/wp-content/themes/widget/assets/images/widget/menu_5.jpg') no-repeat center; background-size: cover; margin-right: -3px;}.paf_container #paf_widget_menu_item_6{background:linear-gradient(rgba(96, 96, 96, 0.7),rgba(96, 96, 96, 0.7)), url('https://migraineadmin.patientadvocate.org/wp-content/themes/widget/assets/images/widget/menu_6.jpg') no-repeat center; background-size: cover; margin-right: -3px;}.paf_container #paf_widget_menu_item_7{background:linear-gradient(rgba(96, 96, 96, 0.7),rgba(96, 96, 96, 0.7)), url('https://migraineadmin.patientadvocate.org/wp-content/themes/widget/assets/images/widget/menu_7.jpg') no-repeat center; background-size: cover; margin-right: -3px;}.paf_container #paf_widget_menu_item_8{background:linear-gradient(rgba(96, 96, 96, 0.7),rgba(96, 96, 96, 0.7)), url('https://migraineadmin.patientadvocate.org/wp-content/themes/widget/assets/images/widget/menu_8.jpg') no-repeat center; background-size: cover; margin-right: -3px;}.paf_container #paf_widget_menu_item_3{background:linear-gradient(rgba(96, 96, 96, 0.7),rgba(96, 96, 96, 0.7)), url('https://migraineadmin.patientadvocate.org/wp-content/themes/widget/assets/images/widget/menu_3.jpg') no-repeat center; background-size: cover; margin-right: -3px;}.paf_container #paf_widget_menu_item_9{background:linear-gradient(rgba(96, 96, 96, 0.7),rgba(96, 96, 96, 0.7)), url('https://migraineadmin.patientadvocate.org/wp-content/themes/widget/assets/images/widget/menu_9.jpg') no-repeat center; background-size: cover; margin-right: -3px;}.paf_container #paf_widget_menu_item_10{background:linear-gradient(rgba(96, 96, 96, 0.7),rgba(96, 96, 96, 0.7)), url('https://migraineadmin.patientadvocate.org/wp-content/themes/widget/assets/images/widget/menu_10.jpg') no-repeat center; background-size: cover; margin-right: -3px;}.paf_container #paf_widget_menu_item_11{background:linear-gradient(rgba(96, 96, 96, 0.7),rgba(96, 96, 96, 0.7)), url('https://migraineadmin.patientadvocate.org/wp-content/themes/widget/assets/images/widget/menu_11.jpg') no-repeat center; background-size: cover; margin-right: -3px;}.paf_container #paf_widget_menu_item_12{background:linear-gradient(rgba(96, 96, 96, 0.7),rgba(96, 96, 96, 0.7)), url('https://migraineadmin.patientadvocate.org/wp-content/themes/widget/assets/images/widget/menu_12.jpg') no-repeat center; background-size: cover; margin-right: -3px;}iframe{border:none !important;}.paf_widget_menu_item:hover, .paf_container .paf_widget_menu_item.active { background: #606060 !important; } .paf_container .tabcontent { background: #ffffff;}#paf_widget_menu_item_1, #paf_widget_menu_item_2, #paf_widget_menu_item_3,#paf_widget_menu_item_4, #paf_widget_menu_item_5, #paf_widget_menu_item_6, #paf_widget_menu_item_7, #paf_widget_menu_item_8{background: #606060;}.paf_container .col_1{width: 27%; height: auto; margin: 0; float: left;} .paf_container .col_2{width: 46%; height: auto; margin: 0; float: left;} .paf_container .col_3{width: 27%; height: auto; margin: 0; float: left; background: #d6d6d6;} .paf_container .col_1_heading{ font-size: 13px; background: #006767; color: #ffffff; padding: 5px; font-weight: 600; /*text-align: center;*/ } .paf_container .col_2_heading{ /*text-align: center;*/ font-size: 13px; background: #1f1f1f; color: #ffffff; padding: 5px; font-weight: 600; } .paf_container .col_3_heading{ /*text-align: center;*/ font-size: 13px; background: #662d91; color: #ffffff; padding: 5px; font-weight: 600; } .paf_container .small_section{padding: 3px 6px;} .paf_container .botton_section{margin-top: 0px;height: 15px; text-align:bottom; position: relative;} .paf_container .btn_subscribe{ background: #006767; border: none; padding: 3px 10px; border-radius: 50px; color: #fff; margin-left: 8px; cursor: pointer; position: absolute; bottom: 0px; left: 0;} .paf_container .btn_more{background: #662d91; color: #fff; border: none; padding: 5px 15px; border-radius: 50px; margin: 0 auto;display: block;cursor: pointer;overflow: hidden;} .paf_container .video_section{height: 187px; overflow: hidden; } .paf_container .medium_section{height: 121px;} .paf_container .smaller_section{height: 121px; width: 50%; overflow: hidden; float: left;} .paf_container .smaller_section img{width: 100%; height:100%;} .paf_container .big_section{ background: #fff; height: 308px; width: 185px; overflow: hidden; position:absolute;} .paf_container .big_section img{position:absolute; top: 0px; bottom: 0px; margin: auto;} .paf_container .section_small_heading{ display:inline-block; font-size: 12px; font-weight: 600; color: #272727;} .paf_container .section_small_content{display:inline-block; font-size: 10px; margin-top: 3px; min-height: 50px; max-height: 56px;} .paf_container .promo_img_cls{ width: auto; max-height: 334px; width: 100%;} #paf_widget_content_promo{background: #fff !important;} .paf_container .pointer{cursor: pointer;}.paf_container { width: 98% !important; } .paf_container .tabcontent {width: 100%;}@media only screen and (min-width : 551px) {.paf_container .dropdown #myDropdown .tablinks{width: 20%; height: 108px; cursor: pointer; border: solid 1px #636363;}.dropbtn{display:none;}} @media only screen and (max-width : 550px) {.paf_container .tablinks {text-align: center;width: 100%;background: #606060 !important;}.paf_container .tab .tablinks {width: 100%;}.main_div{width: 100%;margin: 20px 0;}.paf_widget_menu_item:hover, .paf_container .paf_widget_menu_item.active { background: #606060 !important; }.paf_container .medium_section {height: 121px;margin-top:20px;}.paf_container .btn_subscribe{width: 99%; left:0;margin-left:0;border-radius:0;font-size: 18px;position: relative;margin-bottom: -1px;}.paf_container .btn_more{width: 99%;font-size: 18px;left:0;margin-right:0;border-radius:0;position:relative;margin-top: 0px;}.paf_container .section_small_heading{font-size:14px;} .paf_container .section_small_content{font-size:12px;}.paf_container .col_1{margin-top: 0px !important;margin-left: -1px;}.paf_widget_menu_item:hover, .paf_widget_menu_item.active {background: #662d91;}.col_3{display:none;}.btn_subscribe, .btn_more{padding: 5px !important;}.paf_container { width: 100% !important; min-width: auto !important; } .paf_container .tabcontent { background: #ffffff;}.paf_container .tab .tablinks {width: 100%;height: 50px; background-image: none !important;}#paf_widget_menu_item_1, #paf_widget_menu_item_2, #paf_widget_menu_item_3,#paf_widget_menu_item_4, #paf_widget_menu_item_5, #paf_widget_menu_item_6, #paf_widget_menu_item_7, #paf_widget_menu_item_8{background: #606060 !important; width:100% !important;height:auto !important;}.paf_container .tablinks span, .paf_container .tablinks.active span {text-align: center;display: table; margin-top: 6px !important; color: #fff !important; padding: 8px;}.paf_widget_menu_item.active{background: #662d91 !important;}.paf_container .col_1, .paf_container .col_2, .paf_container .col_3{width: 100%;margin-top: 20px;} .paf_container .big_section{margin-top: 20px;width: 85%; margin: 0 auto; display:block;}.paf_container .smaller_section img {height: auto; width: 90%; margin: 0 auto; display:block;}tablinks:hover span, .paf_container .tablinks.active span{margin-top:6px;}.paf_container .smaller_section {width: 100%; height: auto;} .space img{margin-top:20px !important;}.paf_container #paf_widget_menu_item_1{margin-left: 0px;}.dropbtn {background-color: #606060; width: 100%; color: white; padding: 16px;font-size: 16px;border: none; cursor: pointer;}.dropbtn:hover, .dropbtn:focus {background-color:#662d91;}.dropdown {width: 100%; position: relative;display: inline-block;margin-bottom: 15px;}.dropdown-content {display: none;position: absolute;background-color: #f1f1f1;min-width: 160px;box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);z-index: 1;}.dropdown-content a {color: black; padding: 12px 16px; text-decoration: none;display: block;}.dropdown a:hover {background-color: #ddd;}.show {display: block;}} </style> <script> doAfterWorkLoadingWidget(); function doAfterWorkLoadingWidget(){var more = 'https://migraineadmin.patientadvocate.org/wp-content/themes/widget/widget_template/more.php'; var ip = '216.73.216.144'; var check_id = 'b21842279e58d44a17e5fbe622b0cdd7'; var id = 'new***700'; var referrer = 'patientadvocate.org'; var paf_id = 'new'; if(paf_id=='new' || paf_id==''){ var new_cookie = "9a5bf8442ccbe053794be0fb0226bcd0"; var expiration_date = new Date(); expiration_date.setFullYear(expiration_date.getFullYear() + 1); document.cookie = "paf_widget_id="+new_cookie+"; path=/; expires=" + expiration_date.toUTCString(); } if(typeof cat!='undefined' && cat != ''){ var cat_id = document.getElementById(cat); var i, tabcontent, tablinks; var tabName='paf_widget_content_'+cat.substr(21); tabcontent = document.getElementsByClassName("tabcontent"); for (i = 0; i < tabcontent.length; i++) { tabcontent[i].style.display = "none"; } tablinks = document.getElementsByClassName("tablinks"); for (i = 0; i < tablinks.length; i++) { tablinks[i].className = tablinks[i].className.replace(" active", ""); } document.getElementById(tabName).style.display = "block"; var act_id = document.getElementById("paf_widget_menu_item_"+cat.substr(21)); act_id.className += " active";}} url = "http://www.patientadvocate.org"; var more = 'https://migraineadmin.patientadvocate.org/wp-content/themes/widget/widget_template/more.php'; var ip = '216.73.216.144'; var check_id = 'b21842279e58d44a17e5fbe622b0cdd7'; var id = 'new***700'; var referrer = 'patientadvocate.org'; var paf_id = 'new'; if(paf_id=='new' || paf_id==''){ var new_cookie = "9a5bf8442ccbe053794be0fb0226bcd0"; var expiration_date = new Date(); expiration_date.setFullYear(expiration_date.getFullYear() + 1); document.cookie = "paf_widget_id="+new_cookie+"; path=/; expires=" + expiration_date.toUTCString(); } if(typeof cat!='undefined' && cat != ''){ var cat_id = document.getElementById(cat); cat_id.click(); } function loadwidget(category_id){ var removescript; removescript = document.querySelector('#paf_widget_content_'+category_id); console.log(removescript); document.getElementById('is_content_available_'+category_id).value = '1'; var http = new XMLHttpRequest(); var url = more; var params = 'ip='+ip+'&check_id='+check_id+'&id='+id+'&referrer='+referrer+'&cat_id='+category_id; http.open('POST', url, true); http.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); http.withCredentials = false; http.onreadystatechange = function() { if(http.readyState == 4 && http.status == 200) { removescript.innerHTML = (http.responseText); doAfterWorkLoadingWidget(); } }; http.send(params); } function removewidget(cat_id, is_clicking){c=document.cookie.split(';');for(var i=0; i < c.length; i++){n=c[i].split('=')[0];v=c[i].split('=')[1];if(n=='paf_widget_id'){paf_id=v;}} var category_id = cat_id.substr(21); if(is_clicking == 'loadmore'){recordtype = 'loadmore';}else{recordtype = 'heading';} tracker = 'https://migraineadmin.patientadvocate.org/record?domain_id=28&token='+paf_id+'&post_id=1&cat_id='+category_id+'&recordtype='+recordtype; (new Image).src = tracker; tabcontent = document.getElementsByClassName("tabcontent"); for (i = 0; i < tabcontent.length; i++) { tabcontent[i].style.display = "none"; } document.getElementById('paf_widget_content_loading').style.display = "block"; console.log(cat_id); console.log(cat_id.substr(13)); loadwidget(cat_id.substr(21)); cat = cat_id; } function clicking(url,post_id,cat_id,is_head){ if(typeof url == undefined){ url = "http://www.patientadvocate.org"; } c=document.cookie.split(';');for(var i=0; i < c.length; i++){n=c[i].split('=')[0];v=c[i].split('=')[1]; if(n=='paf_widget_id'){paf_id=v;}} recordtype = 'heading'; tracker = 'https://migraineadmin.patientadvocate.org/record?domain_id=28&token='+paf_id+'&post_id='+post_id+'&cat_id='+cat_id+'&recordtype='+recordtype; (new Image).src = tracker; if(is_head == 'post'){ window.open(url, '_blank');}else{return false;}} function openCategory(evt, catNum) { var i, tabcontent, tablinks; var tabName='paf_widget_content_'+catNum; tabcontent = document.getElementsByClassName("tabcontent"); for (i = 0; i < tabcontent.length; i++) { tabcontent[i].style.display = "none"; } tablinks = document.getElementsByClassName("tablinks"); for (i = 0; i < tablinks.length; i++) { tablinks[i].className = tablinks[i].className.replace(" active", ""); } document.getElementById(tabName).style.display = "block"; evt.currentTarget.className += " active"; var is_content = document.getElementById("is_content_available_"+catNum).value; if(is_content == 0){removewidget("paf_widget_menu_item_"+catNum, 'clicking');}/* else{var category_id = catNum; tracker = 'https://migraineadmin.patientadvocate.org/record?domain_id=28&token='+paf_id+'&post_id=1&cat_id='+category_id+'&recordtype=heading'; (new Image).src = tracker; } */} function openCategorySingleHeader(evt, tabName, headerName) { var i, tabcontent, tablinks; tabcontent = document.getElementsByClassName("tabcontent"); for (i = 0; i < tabcontent.length; i++) {tabcontent[i].style.display = "none"; } tablinks = document.getElementsByClassName("paf_widget_menu_item"); for (i = 0; i < tablinks.length; i++) { tablinks[i].style.display = "none"; } document.getElementById(headerName).style.display = "block"; document.getElementById(tabName).style.display = "block"; } function clicking_new_window(url,post_id,cat_id){ if(typeof url == undefined){ url = "http://www.patientadvocate.org"; } c=document.cookie.split(';');for(var i=0; i < c.length; i++){n=c[i].split('=')[0];v=c[i].split('=')[1]; if(n=='paf_widget_id'){paf_id=v;}} tracker = 'https://migraineadmin.patientadvocate.org/record?domain_id=28&token='+paf_id+'&post_id='+post_id+'&cat_id='+cat_id; (new Image).src = tracker; windowCenter(url,'PAF Chatbot','800','480'); } function windowCenter(url, title, w, h) {var dualScreenLeft = window.screenLeft != undefined ? window.screenLeft : window.screenX;var dualScreenTop = window.screenTop != undefined ? window.screenTop : window.screenY; var width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width; var height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height; var left = ((width / 2) - (w / 2)) + dualScreenLeft; var top = ((height / 2) - (h / 2)) + dualScreenTop; var newWindow = window.open(url, title, 'scrollbars=no, resizable=0, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left); if (window.focus) { newWindow.focus(); } }function myFunction() {document.getElementById('myDropdown').classList.toggle('show');}window.onclick = function(event) {if (!event.target.matches('.dropbtn')) {var dropdowns = document.getElementsByClassName('dropdown-content');var i;for (i = 0; i < dropdowns.length; i++) {var openDropdown = dropdowns[i];if (openDropdown.classList.contains('show')) {openDropdown.classList.remove('show'); }}}} </script><script src='http://code.jquery.com/jquery-1.8.2.min.js'></script><script> $(function(){ $('.dropdown-content div span').click(function(){ $('.dropbtn:first-child').text( $(this).text()); $('.dropbtn:first-child').val( $(this).text());});});</script></head><body><div class='paf_container tablinks'><div class='dropdown'><button onclick='myFunction()' class='dropbtn'>Select Category</button><div id='myDropdown' class='dropdown-content'><div class='paf_widget_menu_item tablinks' id='paf_widget_menu_item_2' onclick='openCategory(event,2)'><input type='hidden' value='0' id='is_content_available_2'><center><span id='menu_heading_2'>Accessing Treatment</span></center></div><div class='paf_widget_menu_item tablinks' id='paf_widget_menu_item_4' onclick='openCategory(event,4)'><input type='hidden' value='0' id='is_content_available_4'><center><span id='menu_heading_4'>Understanding Insurance Coverage</span></center></div><div class='paf_widget_menu_item tablinks' id='paf_widget_menu_item_5' onclick='openCategory(event,5)'><input type='hidden' value='0' id='is_content_available_5'><center><span id='menu_heading_5'>Migraine & the Workplace</span></center></div><div class='paf_widget_menu_item tablinks' id='paf_widget_menu_item_6' onclick='openCategory(event,6)'><input type='hidden' value='0' id='is_content_available_6'><center><span id='menu_heading_6'>Caring for a Migraine Patient</span></center></div><div class='paf_widget_menu_item tablinks' id='paf_widget_menu_item_8' onclick='openCategory(event,8)'><input type='hidden' value='0' id='is_content_available_8'><center><span id='menu_heading_8'>For Providers & Medical Professionals</span></center></div></div></div><div id='paf_widget_content_promo' class='tabcontent' style='display: block;'> <img src='https://migraineadmin.patientadvocate.org/wp-content/uploads/2021/02/Migraine-Home-Page_Update-5.23.png' class='promo_img_cls'> </div><div id='paf_widget_content_loading' class='tabcontent' style='display: none; text-align:center;'><img src='https://migraineadmin.patientadvocate.org/wp-content/themes/widget/assets/images/widget/loader.gif' style='width:80px; margin-top:125px;'></div><div id='paf_widget_content_8' class='tabcontent'></div><div id="paf_widget_content_2" class="tabcontent" style="display: none;"></div><div id="paf_widget_content_4" class="tabcontent" style="display: none;"></div><div id="paf_widget_content_5" class="tabcontent" style="display: none;"></div><div id="paf_widget_content_6" class="tabcontent" style="display: none;"></div><div id="paf_widget_content_8" class="tabcontent" style="display: none;"></div></div></body></html>'; if(typeof getContent=='undefined'){ function getContent(win, fn) { var done = false, top = true, doc = win.document, root = doc.documentElement, app = doc.addEventListener ? 'addEventListener' : 'attachEvent', mod = doc.addEventListener ? 'removeEventListener' : 'detachEvent', bef = doc.addEventListener ? '' : 'on', init = function(e) { if (e.type == 'readystatechange' && doc.readyState != 'complete') return; (e.type == 'load' ? win : doc)[mod](bef + e.type, init, false); if (!done && (done = true)) fn.call(win, e.type || e); }, pro = function() { try { root.doScroll('left'); } catch(e) { setTimeout(pro, 60); return; } init('pro'); }; if (doc.readyState == 'complete') fn.call(win, 'lazy'); else { if (doc.createEventObject && root.doScroll) { try { top = !win.frameElement; } catch(e) { } if (top) pro(); } doc[app](bef + 'DOMContentLoaded', init, false); doc[app](bef + 'readystatechange', init, false); win[app](bef + 'load', init, false); } } } if(typeof html_entities_decode=='undefined'){ var html_entities_decode = (function() { var element = document.createElement('div'); function decode_html_entity (str) { if(str && typeof str === 'string') { str = str.replace(/]*>([\S\s]*?)<\/script>/gmi, ''); str = str.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi, ''); element.innerHTML = str; str = element.textContent; element.textContent = ''; } return str; } return decode_html_entity; })(); } if(typeof pafDataData=='undefined'){ function pafDataData(){ var sel = pafData.selector; var doc_data = pafData.documentData; var chunk_one = sel.substring(0, 1); var check = sel; var sel_type = 'id'; if(chunk_one=='.'){ sel_type = 'class'; check = sel.substring(1, sel.length); } else if(chunk_one=='#'){ sel_type = 'id'; check = sel.substring(1, sel.length); } if(sel_type=='id'){ if(document.getElementById(check)){ document.getElementById(check).innerHTML = html_entities_decode(doc_data); } } else if(sel_type == 'class'){ var divs = document.getElementsByClassName(check); for (var i = 0; i < divs.length; ++i) { var item = divs[i]; item.innerHTML = html_entities_decode(doc_data); } } } } var lfSelector='widget_b21842279e58d44a17e5fbe622b0cdd7'; var iframe = document.createElement("iframe"); document.getElementById(lfSelector).appendChild(iframe); var frameDoc = iframe.document; if(iframe.contentWindow) frameDoc = iframe.contentWindow.document; // IE // Write into iframe frameDoc.open(); frameDoc.writeln(html_entities_decode(pafData.documentData)); frameDoc.close(); iframe.width = 700; iframe.height = 475; iframe.style.border = "none"; iframe.height = iframe.contentWindow.document.body.scrollHeight; iframe.setAttribute("scrolling", "no"); iframe.style.border = "none";