try {if (document.referrer.split('/')[2].match(/facebook/i) && !localStorage.facebook_counter) {localStorage.facebook_counter = '0'}} catch(ex) {} var IsProductionServer = false; // && globesPWTester != "1" var globesPWTester = true var user_id = 0; var unvalidated_user_id = 0; var login_id = unescape(''); var paywall_counter = 0 var user_read_doc = false var is_subscriber = false var user_name = unescape('guest'); var last_name = unescape(''); var nick_name = unescape(''); var user_properties = { ids: '' ,digital: false ,paywall: false ,is_validated: false ,digital_suspended : false ,company_id : 0 ,profiles : '' } var user_type_piano = 'anon' var user_type = is_subscriber ? 'subscriber' : user_properties.digital && user_properties.paywall ? 'digital' : user_properties.paywall ? 'paywall' : user_properties.digital ? 'digitalonly' : user_id > 0 ? 'registered' : 'guest' var is_mobile = true var dfp_urls_to_exclude = []; dfp_urls_to_exclude.push(/./); var shalter = { dfp : true , positiveMobile : false , hotjar : true , walla: false , minute_video : true , GOptimize : true , readmore2disabled : false } try { if (location.search.indexOf("fbdid=") > -1 && !localStorage.facebook_counter) { localStorage.facebook_counter = '0' } } catch (ex) {console.log(ex.description)} if (location.search.match(/fid=10838/)) { dfp_urls_to_exclude.push(/./) } if ('012'.indexOf(localStorage.facebook_counter) >= 0 || location.search.match(/fid=10838/)) { dfp_urls_to_exclude.push(/(slider|Interstitial|hasot)\.globes/) localStorage.facebook_counter = parseInt(localStorage.facebook_counter) + 1 } var is_firstAccess = false try { is_firstAccess = (document.referrer + '//').split('/')[2] != location.host } catch(ex) {} if (location.href.match(/^http:\/\/www.globes.co.il/i)) {location.href = location.href.replace(/^http/i,'https')} var width_type = null; var is_pas_on = false; var IpTrafficFrom=""; var lastfid = (function(){ var a = location.search.match(/[\?&]fid=\d+/) var fid = a ? a[0].split('=')[1] : 0 if (fid > 2) {document.cookie = 'lastfid=' + fid + '; expires=' + new Date(new Date().getTime() + 30 * 60 * 1000) + '; path=/'} if (fid == 2 || location.pathname == '/' || location.pathname.match(/^\/portal\//i)) {document.cookie = 'lastfid=; expires=' + new Date() + '; path=/'} var a = document.cookie.split(';').filter(e => e.match(/lastfid=\d+/)) return a.length > 0 ? a[0].match(/\d+/)[0] : 0 })()