w = 300; if (w >= 728) { w = 728; } else { w = 300; } lgurlrest_bnr = "https://webanner.droidinformer.org/web/banner" + "inf?lg=1&w=" + w + "&f=ai&t=ab&l=en&cn=Q29sdW1idXM=&rf="; document.getElementById("rest_bnr").style.textAlign = "left"; if (w < 728 ) { document.getElementById("rest_bnr").style.height = "250px"; } else { document.getElementById("rest_bnr").style.height = "90px"; } var bidrest_bnr = false; lgcurlrest_bnr = lgurlrest_bnr + "&a=click"; lgvprest_bnr = lgurlrest_bnr + "&a=viewport"; var rest_bnr_sc=0; function ifScrollTo(id) { if (document.getElementById(id) == null) { return false; } hT = document.getElementById(id).getBoundingClientRect().top; if (document.getElementById(id).offsetTop > hT) { hT = document.getElementById(id).offsetTop; } hH = document.getElementById(id).offsetHeight; wH = window.screen.height; wS = window.scrollY; //console.log(id + ' scrolling ' + wS + ' wH ' + wH + ' element ' + hH + ' at ' + hT); if ( (wS > (hT+1.5*hH-wH)) && (wS < (hT+hH)) ) { return true; } else return false; } function checkViewBegin(id) { if (window[id+'_sc'] == 2) { return; } if (ifScrollTo(id)) { if (window[id+'_sc'] == 0) { //console.log('Begin view of '+id); window[id+'_sc'] = 1; setTimeout(function() { checkViewEnd(id); }, 1000); } } else { if (window[id+'_sc'] == 1) { //console.log('End view of '+id); window[id+'_sc'] = 0; } } } function checkViewEnd(id) { if ( (window[id+'_sc']==1) && ifScrollTo(id) ) { window[id+'_sc'] = 2; console.log('Lgv '+id); window['lgvp_'+id](); } } document.addEventListener( "scroll", function() { checkViewBegin('rest_bnr'); } ); function getid_rest_bnr(e) { x = e.srcElement || e.target; if (x.readyState == 4 && x.status == 200) { var response = x.responseText; bidrest_bnr = response; //console.log('R: '+response); checkViewBegin('rest_bnr'); } } function go_rest_bnr(e) { return true; x = e.srcElement || e.target; if (x.readyState == 4 && x.status == 200) { //console.log('lg'); var win = window.open('https://restaurantguru.com/app', '_blank'); if (win) { win.focus(); } } } function ec(e) {} function httpGetAsync(theUrl, callback) { var xmlHttp = new XMLHttpRequest(); xmlHttp.onreadystatechange = callback; xmlHttp.open("GET", theUrl, true); // true for asynchronous xmlHttp.send(null); } function lgcl_rest_bnr(event) { u = lgcurlrest_bnr + '&bid=' + bidrest_bnr; httpGetAsync(u, go_rest_bnr); //event.preventDefault(); //return false; } function lgvp_rest_bnr() { u = lgvprest_bnr + '&bid=' + bidrest_bnr; httpGetAsync(u, ec); }document.getElementById("rest_bnr").innerHTML = '\
\ \ \
\
FREE
\ pic\
\
\
\
Restaurant GuruFREE
\
\
\
\ Find best restaurants
in Columbus and worldwide!
\
\ Tulip Cafe Coffe Shop Catering Service for Weddings Catering Service for Special Events
Yanni\'s Greek Restaurant
Rodos Greek Taverna \
\
\
Restaurant GuruFREE
\
\
\
\
\
Install
\
\
\
\ '; if (w >= 728) { //document.getElementById("ll").href += "&w=728"; var element = document.getElementById("f300rest_bnr"); element.parentNode.removeChild(element); w = 728; } else { //document.getElementById("ll").href += "&w=300"; document.getElementById("bd_rest_bnr").className += " " + "b300"; var element = document.getElementById("f728rest_bnr"); element.parentNode.removeChild(element); var element = document.getElementById("f2728rest_bnr"); element.parentNode.removeChild(element); } httpGetAsync(lgurlrest_bnr, getid_rest_bnr); var startPosrest_bnr = 0; var irest_bnr = 0; function animaterest_bnr(opts) { var startrest_bnr = new Date var idrest_bnr = setInterval(function () { var timePassedrest_bnr = new Date - startrest_bnr var progressrest_bnr = timePassedrest_bnr / opts.duration[irest_bnr] if (progressrest_bnr > 1) progressrest_bnr = 1 var deltarest_bnr = opts.delta(progressrest_bnr); opts.step(deltarest_bnr); if (progressrest_bnr == 1) { clearInterval(idrest_bnr); if (irest_bnr < opts.position.length - 1) { moverest_bnr(document.getElementById('srest_bnr'), function quad(progressrest_bnr) { return Math.pow(progressrest_bnr, 2) }, 600, 0, opts.start + opts.position[irest_bnr]); irest_bnr++; } else { irest_bnr = 0; moverest_bnr(document.getElementById('srest_bnr'), function quad(progressrest_bnr) { return Math.pow(progressrest_bnr, 2) }, 600, 0, 0); irest_bnr++; } } }, opts.delay || 99) } function moverest_bnr(element, delta, duration, to, start) { if (element == null) return false; animaterest_bnr({ delay: 10, duration: [1501, 401, 3001, 401, 2001, 401, 1501], position: [0, -120, 0, -120, 0, -120, 0], start: start, delta: delta, step: function (delta) { if (this.position != 0) { element.style.top = this.position[irest_bnr] * delta + this.start + "px" } } }) } function move_slidesrest_bnr() { moverest_bnr(document.getElementById('srest_bnr'), function quad(progressrest_bnr) { return Math.pow(progressrest_bnr, 4); } , 1200, -150, 0); } move_slidesrest_bnr(); //Restaurant Guide JS