var isIpad = navigator.userAgent.match(/iPad/i) ? "#fromIpad" : ""; var url = location.href.toLowerCase(); var sSitePart = "other"; if (typeof(gemiusPageInfo) == 'undefined') gemiusPageInfo = ""; function URLTrackingFolder(index) { var sFolderDynasty = ''; if (typeof(FolderDynasty) == 'string') { sFolderDynasty = "-" + FolderDynasty + "-"; } //if (url == 'www.globes.co.il/home.aspx?fid=2' || url == 'http://www.globes.co.il/home.aspx?fid=2' || url == 'http://www.globes.co.il' || url == 'http://www.globes.co.il/' || url == 'www.globes.co.il' || url == 'www.globes.co.il/') { if (typeof(MasterHomePage) == 'boolean' && MasterHomePage == true){ return 'hp'; } else if (url.indexOf('m.globes.co.il') > -1 || url.indexOf('www.globes.co.il/news/m/') > -1 || url.indexOf('/news/mobile/') > -1) { sSitePart = "cellular"; return 'm.globes.co.il'; } else if (sFolderDynasty.indexOf('-4049-') > -1 || sFolderDynasty.indexOf('-921-') > -1) { return 'EsekTov'; } else if (sFolderDynasty.indexOf('-9557-') > -1 || sFolderDynasty.indexOf('-9622-') > -1 || sFolderDynasty.indexOf('-9654-') > -1) { return 'speciel_project'; } else if (sFolderDynasty.indexOf('-2006-') > -1) { sSitePart = "TV"; if (index == 1) { if (url.indexOf('article.aspx')) { return 'globesTV_Article'; } else { return 'globesTV_Lobby'; } } else { return 'globesTV'; } } else if (url.indexOf('article.aspx') > -1 && index == 1) { sSitePart = "news"; return 'article'; } else if (url.indexOf('portfolio') > -1) { sSitePart = "finance"; return 'portfolio'; } else if (url.indexOf('.tag') > -1) { sSitePart = "news"; return 'tag'; } else if (url.indexOf('instrument.asp') > -1 || url.indexOf('instrument_rt.aspx') > -1) { sSitePart = "finance"; return 'instrument'; } else if (url.indexOf('fund.aspx') > -1 || sFolderDynasty.indexOf('-1880-') > -1) { sSitePart = "finance"; return 'fund'; } else if (url.indexOf('etf.aspx') > -1 || sFolderDynasty.indexOf('-2565-') > -1) { sSitePart = "finance"; return 'etf'; } else if (url.indexOf('categoryarchive.aspx') > -1) { sSitePart = "news"; return 'categoryarchive'; } else if (sFolderDynasty.indexOf('-585-') > -1) { sSitePart = "news"; return '585_stock_market'; } else if (sFolderDynasty.indexOf('-1225-') > -1) { sSitePart = "news"; return '1225_ws'; } else if (sFolderDynasty.indexOf('-594-') > -1) { sSitePart = "news"; return '594_hi_tech'; } else if (sFolderDynasty.indexOf('-607-') > -1) { sSitePart = "news"; return '607_nadlan'; } else if (sFolderDynasty.indexOf('-821-') > -1) { sSitePart = "news"; return '821_netach'; } else if (sFolderDynasty.indexOf('-829-') > -1) { sSitePart = "news"; return '829_din'; } else if (sFolderDynasty.indexOf('-4621-') > -1) { sSitePart = "news"; return '4621_gaz_neft'; } else if (sFolderDynasty.indexOf('-1950-') > -1) { sSitePart = "finance"; return 'arbitrage'; } else if (sFolderDynasty.indexOf('-1953-') > -1) { sSitePart = "finance"; return '1953_currency'; } else if (sFolderDynasty.indexOf('-2490-') > -1) { sSitePart = "finance"; return '2490_bonds'; } else if (sFolderDynasty.indexOf('-2605-') > -1) { sSitePart = "news"; return '2605_sport'; } else if (sFolderDynasty.indexOf('-3220-') > -1) { sSitePart = "news"; return '3220_car'; } else if (sFolderDynasty.indexOf('-3266-') > -1) { sSitePart = "news"; return '3266_career'; } else if (sFolderDynasty.indexOf('-3317-') > -1) { sSitePart = "news"; return '3317_pnai'; } else if (sFolderDynasty.indexOf('-2353-') > -1) { sSitePart = "finance"; return 'maof'; } else if (url.indexOf('/serveen/') > -1) { sSitePart = "englishSite"; return 'englishSite'; } else if (sFolderDynasty.indexOf('-845-') > -1) { sSitePart = "news"; return 'ideas'; } else if (url.indexOf('digital2.globes.co.il') > -1 || url.indexOf('digital.globes.co.il') > -1 || url.indexOf('fid=2701') > -1) { return 'digital'; } else if (url.indexOf('show_response') > -1) { sSitePart = "news"; return 'show_response'; } else if (url.indexOf('response_window') > -1) { sSitePart = "news"; return 'response_window'; } else if (url.indexOf('allresponses') > -1) { sSitePart = "news"; return 'allresponses'; } else if (url.indexOf('printwindow') > -1) { sSitePart = "news"; return 'printwindow'; } else if (url.indexOf('iphone') > -1) { sSitePart = "cellular"; return 'm.globes.co.il'; } else if (sFolderDynasty.indexOf('-3671-') > -1 || url.indexOf('globessites/globes/finance') > -1 || url.indexOf('finance/shared/searchresults.asp') > -1) { sSitePart = "finance"; return '1948_finance'; } else if (sFolderDynasty.indexOf('-921-') > -1) { sSitePart = "news"; return 'SpecialProject'; } else { return 'other'; } } var Globes_URLTrackingFolder = 'other'; Globes_URLTrackingFolder_Ruleri = URLTrackingFolder(1); Globes_URLTrackingFolder = URLTrackingFolder(2); function GetRuleriTemplateValue() { return Globes_URLTrackingFolder_Ruleri; } var sTempFolderDynasty = ''; if (typeof(FolderDynasty) != 'undefined') sTempFolderDynasty = FolderDynasty; var PageMetas = document.getElementsByTagName('meta'); var PrintArticleEx = ""; for (i=0; i < PageMetas.length; i++) { if (PageMetas[i].getAttribute("name") == "category") { if(PageMetas[i].getAttribute("content") == 'print_article'){ PrintArticleEx = "&Type=Print_Article"; } } } var _gaq = _gaq || []; var nohttp = url.split('//')[1]; var x = nohttp.indexOf("/"); var urlPath = nohttp.substr(x); var dynasty = ''; if (typeof(FolderDynasty) != 'undefined') dynasty = FolderDynasty; var dynastyArr = dynasty.split("-") var newDynasty = ""; for (i = dynastyArr.length-1; i >= 0; i--) { newDynasty += dynastyArr[i] + "-"; } newDynasty = newDynasty.substring(0,newDynasty.length-1); if (GetRuleriTemplateValue() == "EsekTov") { _gaq.push(['6._setAccount', 'UA-53598631-1']); _gaq.push(['6._trackPageview', urlPath + '#BreadCrumb='+newDynasty + PrintArticleEx]); } if (GetRuleriTemplateValue() == "speciel_project") { _gaq.push(['50women._setAccount', 'UA-453294-28']); _gaq.push(['50women._trackPageview', urlPath + '#BreadCrumb='+newDynasty]); } var ABExternalText = ""; function gaq_push_videoplayer_1() { return; } function gaq_push_videoplayer_2(sFrom,clipDid,DocType) { return; } _gaq.push(['_setAccount', 'UA-453294-19']); _gaq.push(['_setDomainName', 'globes.co.il']); if (typeof(MasterHomePage) == 'boolean' && MasterHomePage == true) _gaq.push(['_trackPageview', urlPath]); else _gaq.push(['_trackPageview', urlPath + '#BreadCrumb='+newDynasty]); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); if (typeof(globes_gaq) == 'object' && Object.prototype.toString.call(globes_gaq) == '[object Array]') {for(var i=0; i < globes_gaq.length ;i++) {_gaq.push(globes_gaq[i])}} globes_gaq = null