document.write(' '); function datetime_in_range() { var t = new Date(); for(var i = 0; i+1 < arguments.length ;i += 2) { var since = new Date(arguments[i]); var until = new Date(arguments[i+1]); if (t.getTime() > since.getTime() && t.getTime() < until.getTime()) return 1; } return 0; } var ta_daylight_saving_time = datetime_in_range('mar 26 2010 2:00','sep 12 2010 2:00'); // exchange_dst var ny_daylight_saving_time = datetime_in_range('mar 14 2010 2:00','nov 7 2010 2:00'); var london_daylight_saving_time = datetime_in_range('mar 30 2008 8:00','oct 26 2008 8:00'); var tokio_daylight_saving_time = 0; // always var tk_offset = 7 + tokio_daylight_saving_time - ta_daylight_saving_time; var ln_offset = -2 + london_daylight_saving_time - ta_daylight_saving_time; var ny_offset = -7 + ny_daylight_saving_time - ta_daylight_saving_time; var ny_data = // http://www.nasdaq.com/about/schedule.stm [ "ניו יורק" , 1,5, 9 * 60 + 30, 16 * 60, ny_offset , [ "01.01.2007" , // New Year's Day "02.01.2007" , // @@@ President Ford "15.01.2007" , // Martin Luther King Jr.'s Birthday "19.02.2007" , // Presidents' Day "06.04.2007" , // Good Friday "28.05.2007" , // Memorial Day "04.07.2007" , // Independence Day "03.09.2007" , // Labor Day "22.11.2007" , // Thanksgiving Day "25.12.2007" , // Christmas Day "31.12.9999" // end of time ] ]; var ta_data = [ // http://www.tase.co.il/TASE/AboutTASE/VacationSchedule/ "תל אביב" , 0,4, 9 * 60, 17 * 60 + 30, 0, [ "04.03.2007" , // פורים "02.04.2007" , // פסח "03.04.2007" , "08.04.2007" , "09.04.2007" , "23.04.2007" , // יום הזכרון "24.04.2007" , // יום העצמאות "22.05.2007" , // שבועות "23.05.2007" , // "24.07.2007" , // תשעה באב "12.09.2007" , // ראש השנה "13.09.2007" , // "14.09.2007" , // "21.09.2007" , // כיפור "26.09.2007" , // סוכות "27.09.2007" , // "03.10.2007" , // "04.10.2007" , // "31.12.9999" ] ]; // *** print green var e_counter = new function() { this.t = new Date() this.groups = [] this.count = function(e,g,d,src) { try {if (disable_e_counter) {return}} catch(ex) {} var i for(i=0; i < this.groups.length ;i++) { if (this.groups[i].g == g) { if (this.groups[i].e == e) {return} break } } if (i == this.groups.length && arguments.length > 2 && d == e) { this.groups[i] = new function() {this.g = g; this.e = e} return } if (!('' + e).match(/^--/)) {this.groups[i] = new function() {this.g = g; this.e = e}} var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest() x.open("GET","/e_counter.ashx?e=" + escape(('' + e).replace(/^--/,'')) + '&g=' + escape(g) + '&t=' + this.t.getTime(),true); x.send(null) if (src) { try {_gaq.push(['_trackEvent', src, g, e]);} catch(ex) { //alert("eror:" + e + "-" + g + "-" + d + "-" + src) } } } } function c_titledata(t,d) {this.title = t; this.data = d} function mpad(m,x) {return (m > 1) ? (m + (x % m)).toString().replace(/^1/,'') : x} function in_list(item,list) {for(var i in list) {if (item == list[i]) {return i}} return -1} function bin_list(item,list) {return in_list(item,list) > -1} function get_by_title(t,a) {for(var i in a) {if (t == a[i].title) {return a[i]}} return null} function merge(t,d) { var s = ""; for(var i=0; i < d.length ;i++) {s += t[i] + d[i]} return s + ((t.length > d.length) ? t[d.length] : '') } function append_array(ta,a) {for(var i=0; i < a.length ;i++) {ta[ta.length] = a[i]} return ta} function radio_value(name) { var a = document.getElementsByName(name) for(var i=0; i < a.length ;i++) {if (a[i].checked) return a[i].value} return '' } function selected_value(id) { var s = document.getElementById(id) return s.options[s.options.selectedIndex].value } function dw(m) {document.write(m)} function dbg(v) {alert(v); return v} function keyed(e) {return window.ActiveXObject ? event.keyCode : 0} function TypesFields(p_Type, p1, p2, p3, p4, p5, p6, p7, p8, p9) { // competability this.p_Type = p_Type this.Feeder = p1 this.ExchangeID = p2 this.PortfolioType = p3 this.TypeID = p4 this.WhatType = p5 this.TypeName_EN = p6 this.TypeName_HE = p7 this.InstrumentID = p8 this.IndexMode = p9 } function windows1255(s) { function hexdigit(n) {return '0123456789abcdef'.substring(n,n+1)} function hex(n) {return (n < 16 ? '' : hex(Math.floor(n / 16))) + hexdigit(n % 16)} var t = ""; for(var i=0; i < s.length ;i++) { var ch = s.charCodeAt(i); if (ch == 32) {t += '%20'; continue} t = t + '%' + hex(224 + (ch - 'א'.charCodeAt(0))) } return t } function view_selected(caller) { var url = caller.options[caller.selectedIndex].value caller.selectedIndex = 0 if (url) {location.href = url} } function search_find() {window.open ('http://www.find.co.il/redirsrch.asp?uid=221&sourceid=300&searchstring=' + document.getElementById("query_for_find").value,"find")} /* function search_site(){ function sr(e,f,q,w,t) { location.href = g.url.fsr + '?ExchangeID=' + e + '&Feeder=' + f + '&WhatType=' + w + '&TypeID=' + t + '&strToSearch=' + escape(q.match(/^\s*$/) ? 'א' : q)} var e = document.getElementById("site_search_selector") e.blur() var v = e.options[(arguments.length > 0) ? s : e.selectedIndex].value; if (arguments.length == 0) {e.selectedIndex = 0} var q = document.getElementById("query_for_site").value if (v == 'ny') {return sr(4,1,q,2,2)} if (v == 'ta') {return sr(45,0,q,1,6)} location.href = g.url.a + (q.match(/^\s*$/) ? "/" : '/query.asp?searchQuery=' + q + '&count=10&field=0&period=0&status=All') } */ function search_site_new(ind,search_type){ function sr(e,f,q,w,t) {top.location.href = g.url.fsr + '?ExchangeID=' + e + '&Feeder=' + f + '&WhatType=' + w + '&TypeID=' + t + '&strToSearch=' + escape(q.match(/^\s*$/) ? 'א' : q)} var e = document.getElementById("site_search_selector"); e.blur() //var v = e.options[(arguments.length > 0) ? s : e.selectedIndex].value var v = e.value //if (arguments.length == 0) {e.value = 0} var q = escape(document.getElementById("query_for_site").value) if (v == 'ny') {return sr(4,1,q,2,2)} if (v == 'ta') {return sr(45,0,q,1,6)} var status = "All" if (ind == 2) {status = "-archive"} if (ind == 5) {status = "archive"} if (arguments.length < 2 || (ind != 1 && ind != 2 && ind != 5)) {search_type = 'searchQuery'} var url = g.url.a + (q.match(/^\s*$/) ? "/" : '/query.asp?' + search_type + '=' + q + '&count=10&field=0&period=0&status=' + status + '&id=' + ind) // alert(arguments.length + '\nind=' + ind + ' ; (ind != 1 && ind != 2 && ind != 5) == ' + (ind != 1 && ind != 2 && ind != 5) + '\n' + search_type + '\n' + url) top.location.href = url } function proximate_ta_time() { var n = new Date() if (typeof(server_datetime) != 'undefined') {return server_datetime} var serverTimezoneOffset = -120 n.setTime(n.getTime() + ((serverTimezoneOffset - n.getTimezoneOffset()) * 60 * 1000)) return n } function show_full_date() { try { //var dow = ["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת"] var dow = ["יום א'","יום ב'","יום ג'","יום ד'","יום ה'","יום ו'","שבת"] var Localdate = cta_time.getDate() + "." + (cta_time.getMonth()+ 1) + "." + (2000 + (cta_time.getYear() % 100)) var LocalDay = dow[cta_time.getDay()] document.getElementById("date_in_israel_new").innerHTML = '' + '' + '' + '' + '' + '
' + LocalDay + ', ' + Localdate + '
' } catch(ex) {//alert("full_date " + ex.toString()) } } function update_timediv() { try { document.getElementById("hm_in_israel").innerHTML = mpad(100,cta_time.getHours()) + ':' + mpad(100,cta_time.getMinutes()) document.getElementById("hm_in_ny").innerHTML = mpad(100,cny_time.getHours()) + ':' + mpad(100,cny_time.getMinutes()) } catch(ex) {} } function update_datetime() { if (typeof(cta_time) == "undefined") { cta_time = proximate_ta_time() cny_time = new Date(cta_time.getTime() + ny_offset * 60 * 60 * 1000) } show_full_date() update_timediv() cta_time.setTime(cta_time.getTime() + 60000) cny_time.setTime(cny_time.getTime() + 60000) window.setTimeout('update_datetime()', 60000) } function parent_by_tag(e,t) { for(e = e.parentNode ; e != null ;e = e.parentNode) { if (e.tagName == t) {return e} } return null } function pair_value(a,name) { try { var lname = name.length for(var i in a) {if (a[i].replace(/^\s*/,'').substring(0,lname + 1) == name + '=') {return a[i].replace(/^\s*/,'').substring(lname + 1)}} } catch(ex) {} return null } function cookie_value(name) {return pair_value(document.cookie.split(';'),name)} function subcookie_value(name,subname) { var value = cookie_value(name) return (value == null) ? null : pair_value(value.split('&'),subname) } function addInstrument_new(instrumentID, name, symbol, feeder, portfolioID) { var url = "/portal/ContentManager.aspx?" + "Instrument_ID=" + instrumentID + "&popup_id=buysale" + "&feeder="+ feeder + "&nameheb=" + name window.open( '/pay/login.asp?mode=wizard&p_backTo=' + escape(url) ,"", "location=no,toolbar=no,menubar=no,status=yes,scrollbar=no, resizable=no , width=560,height=480") } function BrandsWindowOpen(year) { var fileName = "default"; if (year != null) fileName = "brands" + year; window.open("/globessites/brands/"+fileName+".aspx", "brand", "toolbar=no,width=800,height=710,status=no,scrollbars=no,resizable=no left="+(screen.width-800)/2+",top=5"); } function brandswindowopen(year) { var fileName = "default"; if (year != null) fileName = "brands" + year; window.open("/globessites/brands/"+fileName+".aspx", "brand", "toolbar=no,width=800,height=710,status=no,scrollbars=no,resizable=no left="+(screen.width-800)/2+",top=5"); } function openLadyGlobesWin() { window.open("/globessites/brands/LadyGlobes.aspx", "LadyGlobes", "toolbar=no,width=800,height=650,status=no,scrollbars=no,resizable=no left="+(screen.width-800)/2 +",top=5") } function openLadyGlobes2008Win() { window.open("/globessites/brands/LadyGlobes2008.aspx", "LadyGlobes2008", "toolbar=no,width=800,height=700,status=no,scrollbars=no,resizable=no left="+(screen.width-800)/2 +",top=5") } function openTop50OfTheYearWin() { window.open("/globessites/brands/Top50OfTheYear.aspx", "Top50OfTheYear", "toolbar=no,width=800,height=650,status=no,scrollbars=no,resizable=no left="+(screen.width-800)/2 +",top=5") } function G40windowOpen(year) { var fileName = "40x40"; if (year != null) fileName = "40x40_" + year; window.open("/globessites/brands/"+fileName+".aspx", "40x40", "toolbar=no,width=800,height=650,status=no,scrollbars=no,resizable=no left="+(screen.width-800)/2+",top=5"); } function firmaWindowOpen(year) { var fileName = "FirmaTop100_2008"; if (year != null) fileName = "FirmaTop100_" + year; window.open("/globessites/brands/"+fileName+".aspx", "FirmaTop100", "toolbar=no,width=800,height=700,status=no,scrollbars=no,resizable=no left="+(screen.width-800)/2+",top=5"); } function c_datetime() { this.days = new function() {this.he = "ראשון,שני,שלישי,רביעי,חמישי,שישי,שבת".split(",")} this.months = new function() {this.he = "ינוארן,פברואר,מרץ,אפריל,מאי,יוני,יולי,אוגוסט,ספטמבר,אוקטובר,נובמבר,דצמבר".split(",")} this.fullYear = function(dt) {return 2000 + dt.getYear() % 100} this.dt2hM = function(dt,s) {return dt.getHours() + s + mpad(100,dt.getMinutes())} this.dt2dmy = function(dt,s) {return dt.getDate() + s + (dt.getMonth() + 1) + s + this.fullYear(dt)} this.dt2DMy = function(dt,s) {return mpad(100,dt.getDate()) + s + mpad(100,dt.getMonth() + 1) + s + this.fullYear(dt)} this.dt2he = function(dt) {return "יום " + this.days.he[dt.getDay()] + " " + dt.getDate() + " ב" + this.months.he[dt.getMonth()] + " " + this.fullYear(dt)} this.dt2daydate = function(dt,fs,s) {return "יום " + this.days.he[dt.getDay()] + ', ' + this.dt2dmy(dt,s) + ''} this.add = function(p,a,dt) { if (p == 'millisecond') { dt.setTime(dt.getTime() + a) return dt } if (p == 'second') {return this.add('millisecond',a * 1000,dt)} if (p == 'minute') {return this.add('second',a * 60,dt)} if (p == 'hour') {return this.add('minute',a * 60,dt)} if (p == 'day') {return this.add('hour',a * 24,dt)} } } function get_financial_links(g) { function c_section(t,d) { this.title = t this.list = new Array() for(var i in d) {this.list[this.list.length] = new c_titledata(d[i][0],d[i][1])} } var a = new Array() var sr = g.url.fsr + '?' a[a.length] = new c_section("הבורסה בת''א",[ ["אתר המעוף",g.url.fm] ,["ציטוטי מניות", sr + "Feeder=0&TypeID=6&WhatType=1&strToSearch=א"] ,["נגזרת דולר", sr + "ExchangeID=45&Feeder=0&TypeID=18&WhatType=1"] ,["נגזרת אירו", sr + "ExchangeID=45&Feeder=0&TypeID=23&WhatType=1"] ,["נגזרת מעו''ף", sr + "ExchangeID=45&Feeder=0&TypeID=15&WhatType=1"] ,["מניות ת''א 25", sr + "Feeder=0&ExchangeID=45&SearchIdxInst=1&Lang=HE&WhatType=3&TypeID=3&IdxInstrumentID=979"] ,["מניות ת''א 100", sr + "Feeder=0&ExchangeID=45&SearchIdxInst=1&Lang=HE&WhatType=3&TypeID=4&IdxInstrumentID=980"] ,["כתבי אופציה", sr + "Feeder=0&ExchangeID=45&SearchIdxInst=0&Lang=HE&WhatType=1&TypeID=7"] ,["אופציות כיסוי", sr + "Feeder=0&ExchangeID=45&SearchIdxInst=0&Lang=HE&WhatType=1&TypeID=42"] ]) a[a.length] = new c_section("מט''ח",[ ["אתר המט''ח", g.url.f + "/Currency/Currency.asp"] // ,["מט''ח-שערי חליפין", g.url.gsgf + "/currencies/default.aspx"] ,["שערי חליפין", "/globessites/globes/finance/currencies/main.aspx?id=1&mode=1&strtosearch="] // ,["שערים מצטלבים", "/globessites/globes/finance/currencies/main.aspx?id=2&mode=1&strtosearch="] ]) a[a.length] = new c_section("קרנות נאמנות",[ ["אתר הקרנות", "http://funds.globes.co.il/funds/default.asp"] ,["רשימת קרנות", sr + "Lang=HE&Field=3&Direction=1&WhatType=1&TypeID=16&Feeder=0&strToSearch=א"] ]) a[a.length] = new c_section("בורסות בחו''ל",[ ["מניות נאסד\"ק 100", sr + "Feeder=1&SearchIdxInst=1&Lang=HE&WhatType=3&TypeID=8&IdxInstrumentID=537926"] ,["מניות S&P 500", sr + "Feeder=1&SearchIdxInst=1&Lang=HE&WhatType=3&TypeID=10&IdxInstrumentID=373853"] ,["מניות דאו ג'ונס", sr + "Feeder=1&SearchIdxInst=1&Lang=HE&WhatType=3&TypeID=9&IdxInstrumentID=66707"] ,["מניות פוטסי 300", sr + "Feeder=1&SearchIdxInst=1&Lang=HE&WhatType=3&TypeID=16&IdxInstrumentID=539524"] ,["מניות ניקיי 225", sr + "Feeder=1&SearchIdxInst=1&Lang=HE&WhatType=3&TypeID=17&IdxInstrumentID=539271"] ,["מניות הנג סנג", sr + "Feeder=1&SearchIdxInst=1&Lang=HE&WhatType=3&TypeID=21&IdxInstrumentID=539267"] ,["מניות סנסקס", sr + "Feeder=1&SearchIdxInst=1&Lang=HE&WhatType=3&TypeID=22&IdxInstrumentID=539503"] ,["מניות S&P/ASX 50", sr + "Feeder=1&SearchIdxInst=1&Lang=HE&WhatType=3&TypeID=24"] ,["ישראליות בניו יורק", sr + "Feeder=1&SearchIdxInst=1&Lang=HE&WhatType=3&TypeID=12&IdxInstrumentID="] ,["ישראליות באירופה", sr + "Feeder=1&WhatType=3&TypeID=14&SearchIdxInst=0&Lang=HE&IdxInstrumentID="] ]) a[a.length] = new c_section("מניות ארביטרז'",[["תל אביב - ניו יורק", g.url.gsgf + "/arbitrage/arbitrage.aspx"]]) a[a.length] = new c_section("הברומטר",[["איתור מגמות לפי נפח פעילות", g.url.f + "/ActivityPages/Active_1_45_0.htm"]]) a[a.length] = new c_section("המלצות אנליסטים",[["טבלת המלצות אנליסטים", g.url.f + "/Analysts/SearchRecommend.asp"]]) a[a.length] = new c_section("נתוני חברות",[ ["תקצירי דו''חות", g.url.f + "/market_data/FinancialReports.asp?lang=he"] ,["דו''חות S&P", "http://www.standardpoors.co.il/default.asp?pageName=HOME+PAGE&pageID=2"] ,["מידע עסקי D&B", "http://dbrisk.dundb.co.il/ns/ns_frames.asp?origin=3"] ]) a[a.length] = new c_section("אג''ח",[ ["אתר אפיקים סולידיים",g.url.fb] ,["אג''ח להמרה", sr + "Feeder=0&ExchangeID=45&SearchIdxInst=0&Lang=HE&WhatType=1&TypeID=8&IdxInstrumentID="] ,["אגרות חוב", sr + "Feeder=0&ExchangeID=45&SearchIdxInst=0&Lang=HE&WhatType=1&TypeID=24&IdxInstrumentID="] ,["מ''קמים", sr + "Feeder=0&ExchangeID=45&SearchIdxInst=1&Lang=HE&WhatType=1&TypeID=17&IdxInstrumentID="] ,["נגזרת שחר", sr + "Feeder=0&ExchangeID=45&SearchIdxInst=1&Lang=HE&WhatType=1&TypeID=41&IdxInstrumentID="] ]) a[a.length] = new c_section("תעודות סל",[ ["אתר תעודות סל", g.url.f + "/etf/"] ,["רשימת תעודות סל", "/globessites/globes/finance/instruments/search.aspx"] ]) a[a.length] = new c_section("מדדים",[ ["מדדי המחירים", g.url.f + "/IndexPrice/begin.asp?lang=he"] ,["מדדי המניות", sr + "ExchangeID=45&Feeder=0&TypeID=11&WhatType=1"] ,["מדדי הענפים", sr + "ExchangeID=45&Feeder=0&TypeID=38&WhatType=1"] ,["מדדי אג''ח", sr + "ExchangeID=45&Feeder=0&TypeID=37&WhatType=1"] ]) var cd = g.url.fs + '/ConcentrationData.asp?' var edd = g.url.fs + '/EndDayData.asp?' a[a.length] = new c_section("סוף יום המסחר בת''א",[ ["ריכוז תוצאות המסחר במניות", cd + "TableType=1&lang=HE"] ,["ריכוז תוצאות המסחר באג''ח", cd + "TableType=2&lang=HE"] ,["מניות בולטות במדד ת''א 100", edd + "TableType=1&lang=HE"] ,["מניות בולטות אחרות בת''א", edd + "TableType=2&lang=HE"] ,["אופציות בולטות", edd + "TableType=3&lang=HE"] ,["מחזורים בולטים בת''א 100", edd + "TableType=4&lang=HE"] ,["מחזורים בולטים נוספים", edd + "TableType=5&lang=HE"] ,["תשואות דיבידנד בולטות", edd + "TableType=6&lang=HE"] ]) a[a.length] = new c_section("חוזים עתידיים",[ ["אתר חוזים עתידיים", g.url.ff] ,["רשימת חוזים עתידיים", sr + "Feeder=1&ExchangeID=72&SearchIdxInst=0&Lang=HE&WhatType=2&TypeID=62&IdxInstrumentID="] ]) return a } //This file is auto-Generated by \Finance\Shared\Scripts\BuildCombos.vbs function ExchangeArraySetup() { var dataArray = new Array(); dataArray[0] = new TypesFields("exchanges", "45", "TASE", "Tel Aviv", "בורסת תל - אביב", "0"); dataArray[1] = new TypesFields("exchanges", "11", "NASDAQ", "NY: Israeli + DJ30", "ניו-יורק: ישראליות + דאו ג'ונס", "1"); dataArray[2] = new TypesFields("exchanges", "1", "EUROPE", "Israeli in EUROPE", "ישראליות באירופה", "1"); return(dataArray); } function TypeArraySetup() { var dataArray = new Array(); dataArray[0] = new TypesFields("types", "0", "45", "1", "6", "1", "Share", "מניה", "", ""); dataArray[1] = new TypesFields("types", "0", "45", "1", "40", "1", "ETF", "תעודות סל", "", ""); dataArray[2] = new TypesFields("types", "0", "45", "1", "24", "1", "Bonds", "אג''ח", "", ""); dataArray[3] = new TypesFields("types", "0", "45", "1", "41", "1", "Shachar Futures", "נגזרת שחר", "", ""); dataArray[4] = new TypesFields("types", "0", "45", "1", "11", "1", "Index", "מדד מניות", "", ""); dataArray[5] = new TypesFields("types", "0", "45", "1", "38", "1", "Index - sector", "מדד ענפי", "", ""); dataArray[6] = new TypesFields("types", "0", "45", "1", "37", "1", "Index - bond", "מדד אגרות חוב", "", ""); dataArray[7] = new TypesFields("types", "0", "45", "1", "7", "1", "Share warrant", "כתבי אופציה", "", ""); dataArray[8] = new TypesFields("types", "0", "45", "1", "8", "1", "Convertible bond", "אג''ח להמרה", "", ""); dataArray[9] = new TypesFields("types", "0", "45", "1", "15", "1", "Tel Aviv 35 index option", "נגזרת מעו''ף", "", ""); dataArray[10] = new TypesFields("types", "0", "45", "1", "18", "1", "Shekel/dollar option", "נגזרת דולר", "", ""); dataArray[11] = new TypesFields("types", "0", "45", "1", "23", "1", "Euro option", "נגזרת אירו", "", ""); dataArray[12] = new TypesFields("types", "0", "45", "1", "16", "1", "Fund", "קרן נאמנות", "", ""); dataArray[13] = new TypesFields("types", "0", "45", "1", "17", "1", "Short - term Treasury Bill", "מק''מ", "", ""); dataArray[14] = new TypesFields("types", "0", "45", "1", "19", "1", "Tel Aviv Banking index option", "נגזרת בנקים", "", ""); dataArray[15] = new TypesFields("types", "0", "45", "1", "35", "1", "Futures 3 Months - Futures ", "נגזרת ריבית", "", ""); dataArray[16] = new TypesFields("types", "1", "4", "1", "6", "2", "Indices", "מדדים", "", ""); dataArray[17] = new TypesFields("types", "1", "4", "1", "2", "2", "Stocks", "מניה", "", ""); dataArray[18] = new TypesFields("types", "1", "72", "1", "62", "2", "Futures", "חוזים עתידיים", "", ""); dataArray[19] = new TypesFields("types", "1", "11", "1", "58", "2", "ETF", "תעודות סל", "", ""); dataArray[20] = new TypesFields("types", "1", "77", "1", "63", "2", "Commodities", "סחורות", "", ""); dataArray[21] = new TypesFields("types", "1", "9", "1", "20", "2", "Currencies", "מט''ח-שערי חליפין", "", ""); dataArray[22] = new TypesFields("types", "0", "45", "1", "42", "1", "Covered Warrants", "אופציות כיסוי", "", ""); return(dataArray); } var ad_handler = new function () { this.datetime = new Date() this.google = new function () { this.refresh_recurrence = 0 this.enableSingleRequest = false this.collapseEmptyDivs = true this.enableServices = true this.targetim = [] this.divim = [] this.activate = function (start, end) { if (this.divim.length == 0) { return } if (arguments.length == 0) { start = 0; end = this.divim.length - 1 } if (end - start > 0) { this.activate(start , start) this.activate(start + 1,end) return } if (arguments.length == 1) { end = this.divim.length - 1 } if (end >= this.divim.length) { end = this.divim.length - 1 } if (start > end) { return } // console.log('activate-' + start + '-' + end) var segment = [] for (var i = start; i <= end; i++) { segment.push(this.divim[i]) } segment = segment.sort(function (x, y) { return y.order - x.order }) for (var i = start; i <= end; i++) { this.divim[i] = segment[i - start] } var sb = ['googletag.cmd.push(function() {'] for (var i = start; i <= end; i++) { var di = this.divim[i] if (di.is_active) { continue } if (di.activate == 'later') { continue } di.is_active = true sb.push(';try {ad_handler.google.divim[' + i + '].slot = googletag.defineSlot("' + di.url + '",' + di.sizes + ',"' + di.id + '").addService(googletag.pubads())}catch(ex){try{console.log(di.url + \' not found\')}catch(ex){}}\n') if (di.oop == true) { sb.push(';googletag.defineOutOfPageSlot("' + di.url + '","' + di.id + '-oop").addService(googletag.pubads())\n') } } for (var i = 0; i < this.targetim.length; i++) { if (this.targetim[i].sent == true) { continue } this.targetim[i].sent = true sb.push(';googletag.pubads().setTargeting("' + this.targetim[i].name + '",' + (this.targetim[i].is_string ? '"' : '') + this.targetim[i].value + (this.targetim[i].is_string ? '"' : '') + ')\n') } if (this.enableSingleRequest) {sb.push(';googletag.pubads().enableSingleRequest()\n'); this.enableSingleRequest = false} if (this.collapseEmptyDivs) { sb.push(';googletag.pubads().collapseEmptyDivs()\n'); this.collapseEmptyDivs = false } if (this.enableServices) { sb.push(';googletag.enableServices()\n'); this.enableServices = false } sb.push('})') for (var i = start; i <= end; i++) { var di = this.divim[i] if (di.is_active != true || di.is_displayed == true) { continue } if (di.display == 'later') { continue } di.is_displayed = true sb.push(';googletag.cmd.push(function() {googletag.display("' + di.id + '"); })\n') if (di.oop == true) { sb.push(';googletag.cmd.push(function() {googletag.display("' + di.id + '-oop") })\n') } } eval(sb.join('')) if (this.refresh_called != true) { this.refresh(0) } } this.refresh = function (n) { this.refresh_called = true // console.log('google.refresh(' + n + ')') if (n > 0) { for (var i = 0; i < this.divim.length; i++) { try { var di = this.divim[i] if (di.is_active == true && di.is_displayed == true && di.refresh && di.refresh > 0 && (n % di.refresh) == 0) { console.log(di.local + ' replaced after ' + n + ' minutes') googletag.pubads().refresh([di.slot]) } } catch (ex) { } } } setTimeout('ad_handler.google.refresh(' + (parseInt(n) + 1) + ')', 60000) } } this.google_script = function (adobject) { try { if (!shalter.dfp || adobject.url.match(/---$/)) { return '' } var p = adobject.url.indexOf('/', 1) var ord = window.ord || Math.floor(Math.random() * 1e16); return '<' + 'script type="text/javascript" src="http://ad.doubleclick.net/N' + adobject.url.substring(1, p) + '/adj' + adobject.url.substring(p) + ';sz=1x1;ord=' + ord + '?"><' + '/script>' } catch (ex) { return '' } } this.google_div = function (adobject) { function with_width_and_height(adobject) { return adobject.local.match(/pop_up/i) ? false : true } function div_body(adobject) { if (adobject.local.match(/jumbo/i)) { return '<' + 'script>' + '\n' + 'if (typeof(tmo_util) != "object") {tmo_util = {}}' + '\n' + 'tmo_util.dcCloseJumbo = function() {' + '\n' + 'var element = parent.document.getElementById("' + adobject.id + '")' + '\n' + 'if (element != null) {element.style.display = "none"}' + '\n' + '}' + '\n' + '' } if (adobject.local.match(/pop_up/i)) { return '<' + 'script>' + '\n' + 'if (typeof(tmo_util) != "object"){tmo_util={}}' + '\n' + 'tmo_util.dcIsOpen = false;' + '\n' + 'tmo_util.dcBrowser = (navigator.userAgent.indexOf("MSIE")>=0) ? "MSIE" : "Others";' + '\n' + 'tmo_util.dcLeshonitClose = true;' + '\n' + 'tmo_util.dcScrolling = function() {' + '\n' + 'var dcContainer = document.getElementById("' + adobject.id + '")' + '\n' + 'if ("undefined" != typeof(dcContainer) && dcContainer != null) {' + '\n' + 'if(!tmo_util.dcIsOpen) {tmo_util.dcSlide()}' + '\n' + '}' + '\n' + '}' + '\n' + 'tmo_util.dcSlide = function() {' + '\n' + '$(document).ready(function($) {$("#totalmedia_up").next().slideToggle("fast");});' + '\n' + 'if (!tmo_util.dcLeshonitClose){' + '\n' + 'tmo_util.dcLeshonitClose=true;' + '\n' + 'document.getElementById("totalmedia_up1").href = "javascript://";' + '\n' + 'document.getElementById("totalmedia_up1").target = "";' + '\n' + '} else {' + '\n' + 'try {' + '\n' + 'tmo_util.dcIsOpen = true;' + '\n' + 'document.getElementById("totalmedia_up1").href = dcTempClick;' + '\n' + 'document.getElementById("totalmedia_up1").target = "_blank";' + '\n' + 'tmo_util.dcLeshonitClose=false;' + '\n' + '} catch(ex) {}' + '\n' + '}' + '\n' + '}' + '\n' + 'tmo_util.dcClosePoptotalmedia_up = function() {' + '\n' + 'document.getElementById("' + adobject.id + '").style.display = "none"' + '\n' + '}' + '\n' + 'if (document.addEventListener && tmo_util.dcBrowser == "Others") {' + '\n' + 'document.addEventListener("scroll",tmo_util.dcScrolling, false)' + '\n' + '} else {' + '\n' + 'attachEvent("onscroll",tmo_util.dcScrolling)' + '\n' + '}' + '\n' + '' } if (adobject.local.match(/slide/i) || adobject.local.match(/slid\.safari/i)) { return '<' + 'script>' // + '\n' + 'alert("' + adobject.url + '")' + '\n' + 'if (typeof(tmo_util)!="object"){ tmo_util={}}' + '\n' + 'tmo_util.stlMavran = function(_html,displayTime) {' + '\n' + 'if((!isNaN(displayTime))&&(displayTime/1>0)) {setTimeout("tmo_util.dclk_hide_overlay()",displayTime*1000);}' + '\n' + '$("body").prepend(_html);' + '\n' + '}' + '\n' + 'tmo_util.dclk_hide_overlay = function(){' + '\n' + 'parent.document.getElementById("dclk_overlay_2568471236").style.visibility = "hidden";' + '\n' + 'parent.document.getElementById("dclk_overlay_2568471236").innerHTML="";' + '\n' + 'parent.document.getElementById("dclk_overlay_25326957458").style.visibility = "hidden";' + '\n' + 'parent.document.getElementById("dclk_overlay_25326957458").innerHTML="";' + '\n' + 'parent.document.getElementById("dclk_overlay_1892131986").style.visibility = "hidden";' + '\n' + 'parent.document.getElementById("dclk_overlay_1892131986").innerHTML="";' + '\n' + 'parent.document.body.scroll = "auto";' + '\n' + 'parent.document.body.style.overflowY = "auto";' + '\n' + '}' + '\n' + 'function onFinishedPlaying(){tmo_util.dclk_hide_overlay();}' + '\n' + '' } return '' } function find_best_banner_size(adobject) { try { // debugger if (shalter.fbbs != true) {return} var sizes = eval(adobject.sizes) if (Object.prototype.toString.call(adobject.fbbs) != '[object Array]' || Object.prototype.toString.call(sizes) != '[object Array]' || adobject.fbbs.length != sizes.length - 1) { return } var inner_width = window.innerWidth > 0 ? window.innerWidth : Math.max(document.documentElement.clientWidth, document.body.clientWidth) try {if (inner_width > 1300 && gl_abt.wt == 'narrow') {inner_width = 1300}} catch(ex) {} for(var i=0; i < adobject.fbbs.length ;i++) { if (inner_width < adobject.fbbs[i]) { if (Object.prototype.toString.call(adobject.fbbs) == '[object Array]') {adobject.sizes = '[' + sizes[i] + ']'} return } } if (Object.prototype.toString.call(sizes[sizes.length - 1]) == '[object Array]') {adobject.sizes = '[' + sizes[sizes.length - 1] + ']'} } catch(ex) {} } try { if (typeof (shalter.positiveMobile) == 'boolean' && shalter.positiveMobile == true && typeof (adobject.positiveMobile) == 'string' && adobject.positiveMobile.length > 0) { while (true) { var positiveMobile = adobject.positiveMobile if (positiveMobile.match(/^article:/)) { if (!location.href.match(/article\.aspx/i)) { break } positiveMobile = positiveMobile.replace(/^article:/i, '') } return '' } } if (!shalter.dfp || adobject.url.match(/---$/) || adobject.sizes == '') { return '' } try { for (var i = 0; i < dfp_urls_to_exclude.length; i++) { if (dfp_urls_to_exclude[i].test(adobject.url)) { return '' } } } catch (ex) { } if (typeof (adobject.id) == 'undefined' || ('' + adobject.id).length == 0) { adobject.id = 'div-gpt-ad-' + this.datetime.getTime() + '-' + this.google.divim.length } if (typeof (adobject.order) == 'undefined') { adobject.order = 0 } find_best_banner_size(adobject) this.google.divim.push(adobject) // console.log(width_type + ' * ' + adobject.url + ' * ' + adobject.sizes) var sizes = eval(adobject.sizes) var style_properties = [] if (with_width_and_height(adobject) && sizes.length == 2 && typeof(sizes[0]) == 'number' && typeof(sizes[1]) == 'number' && parseInt(sizes[0]) >= 0 && parseInt(sizes[1]) >= 0) { style_properties.push('width:' + sizes[0] + 'px;height:' + sizes[1] + 'px') } if (typeof (adobject.style) == 'string' && adobject.style.length > 0) { style_properties.push(adobject.style) } shalter.adblock = location.search.match(/&adblock=t/) || document.getElementById('docRef18') ? true : shalter.adblock if (shalter.adblock && adobject.adblock) { adobject.url = adobject.adblock} var sb = ['
' + div_body(adobject) + '
'] if (adobject.oop == true) { sb.push('
') } return sb.join('') } catch (ex) { // console.log(adobject.url + ' failed ' + ex.description) return '' } } this.google_target = function (name,value,is_string) { this.google.targetim.push({ 'name': name, 'value': value ,'is_string' : arguments.length > 2 ? is_string : true}) } this.activate = function () { try { this.google.activate() } catch (ex) { } try { this.walla.activate() } catch (ex) { } } this.walla = new function () { this.list = []; this.div = function (spaceName) { if (typeof (shalter) == 'object' && typeof (shalter.walla) == 'boolean' && shalter.walla == false) { return '' } try { for (var i = 0; i < walla_exclude.length; i++) { if (walla_exclude[i].test(spaceName)) { return '' } } } catch (ex) { } this.list.push({ spaceName: spaceName }); return '
'; } this.activate = function () { var spaceDivNames = [] var spaceNames = [] for (var i = 0; i < this.list.length; i++) { var li = this.list[i]; spaceDivNames.push(li.spaceName + i); spaceNames.push(li.spaceName); } adtReloadAds(spaceDivNames, spaceNames); } } } var globes_gaq = globes_gaq || [] function add_impression(did,impression_type) {(globes_gaq || _gaq).push(['2._trackEvent', impression_type ,'Impression', 'id_' + did, 1, true])} function c_DoubleClick(valueFor_dcPageID,valueFor_dcCG,valueFor_dcArticleID) { function bin_list(x,l) {for(var i in l) {if (x == l[i]) {return true}} return false} function get_jsurl() { return 'http://www.globes.co.il/news/cache/totalmedia/dc.js?' + (new Date()).getTime(); //'http://i.total-media.net/gl/dc.js' } dcSite = 'glo' dcPageID = valueFor_dcPageID // almond_id dcCG = valueFor_dcCG ? valueFor_dcCG : dcCG // try {dcMember = user_id > 0 ? 1 : 2} catch(ex){} // try {dcNewspaper = is_subscriber ? 1 : 2} catch(ex){} if (location.pathname.match(/\.tag$/i)) { dcKeyWord = location.pathname.match(/\/[^\/]*\.tag$/i).toString().substring(1).replace(/\.tag$/i,'') } var did = location.search.match(/[&\?]did=\d+/i) if (did) { if (dcCG == null) {dcCG = 'article'} dcArticleID = did.toString().substring(5) } else { if (location.pathname + location.search == '/') { dcCG = 'home' } else { var fid = location.search.match(/[&\?]fid=\d+/i) if (fid) { fid = fid.toString().substring(5) if (bin_list(fid,[2,-942])) {dcCG = 'home'} if (bin_list(fid,[585,594,607,821,829,845,-980,-1124,1667,-1724,-1725,1948,2006,2190,2605,2973,3220,3221,3266,3317])) {dcCG = 'main'} } else { var iid = location.search.match(/[&\?]instrumentid=\d+/i) var feeder = location.search.match(/[&\?]feeder=\d+/i) if (feeder && iid) {dcStock = feeder.toString().substring(8) + '.' + iid.toString().substring(14)} } } } this.jsurl = get_jsurl() this.ads = [] this.constants = [] this.log = [] this.activated = false this.activate = function(last_call) { if (arguments.length < 1) {last_call = false} try{if (last_call == false && use_last_call == true) {return}} catch(ex){} if (this.log.length == 0) {return} // if (this.activated) {try{dcReloadTemplate()} catch(ex){} return} // document.write('<' + 'script language="javascript" src="' + this.jsurl + '" -defer="' + (window.ActiveXObject ? "true" : "defer") + '">') this.activated = true } this.size_id = function(w,h,site) { if (arguments.length < 3) {site = null} var wxh = w + 'x' + h if (wxh == '70x33') {return 'bar'} if (wxh == '100x75') {return 'botton'} if (wxh == '100x500') {return '120x600'} if (wxh == '120x240') {return 'magazinim'} if (wxh == '158x19') {return 'icon'} if (wxh == '160x181') {return 'article'} if (wxh == '160x90') {return 'left'} if (wxh == '170x170') {return 'box'} if (wxh == '180x180') {return 'box'} if (wxh == '300x250') {return 'spot'} if (wxh == '319x54') {return 'member'} if (wxh == '320x55') { if (site && site != dcPageID) {dcMagazine = site} return 'endarticle' } if (wxh == '400x60' && dcCG != 'en') {return 'talkback'} if (wxh == '550x40') {return 'txtlink'} if (wxh == '550x75') {return 'middle'} if (wxh == '670x25') {return 'strip'} if (wxh == '950x400') {return 'inter'} if (wxh == '970x200') {return 'jumbo'} if (wxh == '990x40') {return 'top'} return wxh } this.drawBanner = function(site,width,height,space,isRunNow,isBorder) { return '
' + this.div(this.size_id(width,height,site),'width:' + width + ';height:' + height + (isBorder ? ';border:1px solid black' : '')) + '
' } this.shdera = function(counter) { if (arguments.length == 0) { counter = 99} var sb = [] var size_id = this.size_id(100, 75) for (var i = 0; i < counter; i++) { var html = this.div(size_id) if (html.length == 0) {break} sb.push(html) } if (sb.length > 0) {sb.push('')} return sb.join("
") } this.totalurl = function(t) {try {return '&totalurl=' + dcVideoInfo(t).replace(/&/g,'%26')} catch(ex) {return ''}} this.p1000 = function() { return '
'; } this.with_overflow = function(divid) {return divid.indexOf('.jumbo.') > -1} this.aIframe = function(size,width,height,space,page) {return this.div(this.size_id(width,height),'width:' + width + ';height:' + height)} this.grouped_pirsum_shdera_items = function(a) { if (a.length < 2) {return a} var c = 1,t = new Date(),b = [] for(var i=1; i < a.length ;i++) { if (a[i].length > 2 && parseInt(a[i][2]) > 0 && a[i-1].length > 2 && a[i][2] == a[i-1][2]) {c++; continue} b.push(a[(i - c) + (t.getTime() % c)]) c = 1 } b.push(a[(a.length - c) + (t.getTime() % c)]) return b } this.div = function(id,style) { // alert(id + ' * ' + !('' + dcCG).match(/en/i)) if (!('' + dcCG).match(/en/i)) { if (typeof(IsHomePage) == 'undefined') {IsHomePage = false} if (id == "728x90") { var pathname = location.pathname.toLowerCase(); if(bin_list(pathname, ['/globessites/globes/finance/instruments/instrument.aspx'])) { return '' } if( !IsHomePage && !bin_list( pathname, ['/globessites/globes/finance/arbitrage/arbitrage.aspx','/globessites/globes/zs/','/finance/maof/','/finance/shared/searchresults.asp'])) { // alert('clickon:' + id + ' * ' + (id == "728x90") + ' * ' + !IsHomePage + ' * ' + !bin_list(location.pathname.toLowerCase(),['/globesSites/globes/finance/arbitrage/arbitrage.aspx','/globessites/globes/zs/','/finance/maof/','/finance/shared/searchresults.asp']) + ' * ' + location.pathname.toLowerCase()) return '' } } if (id == "120x600" || id == "tower") { return '
' //return '' } } // if (id == 'strip') {return ''} var counter = 0 for(var i in this.constants) { if (this.constants[i].id == id) { counter = this.constants[i].counter break } } if (counter == 0) { for(var i in this.ads) { if (this.ads[i].id == id) { counter = this.ads[i].counter = this.ads[i].counter + 1 //if (id == 'botton' && counter == 2) {return this.p1000()} break } } } if (counter == 0) { this.ads[this.ads.length] = new function() { this.id = id counter = this.counter = 1 } } // alert(id + '.' + counter) if (arguments.length < 2) {style = ''} var divid = 'ads.' + id + (id == 'rich' ? '' : '.' + counter) if (true && id == 'botton' && typeof(pirsum_shdera_items) == 'object') { if (!this.pirsum_shdera_items) {this.pirsum_shdera_items = this.grouped_pirsum_shdera_items(pirsum_shdera_items)} if (counter > this.pirsum_shdera_items.length){return ""} var m = counter - 1; var fid = ('' + location.search.toString().match(/fid=\d+/)).substring(4) return ('' + dcCG).match(/en/i) ? "" + "" : "
" + "
" } try {if (bin_list('*',excluded_dc_ids) || bin_list(id,excluded_dc_ids)) {return ''}} catch(ex) {} this.log.push(divid) return '
' // ' + dcPageID + '/ads.' + id + '.' + counter + ' } } var dcStage,dcSite,dcPageID,dcArticleID,dcKeyWord,dcMember,dcNewspaper,dcStock,dcGender,dcMagazine,dcCG,dcArticleID,dc_handler; try {if (dc_server) {dc_handler = new c_DoubleClick(null,null,null)}}catch(ex){} var dcIsTM = false if (typeof(Is_Almond_On)=="undefined") Is_Almond_On = true; function c_almond(p) { this.parent = p this.site = 1002 this.banners = new Array() this.prefix = 'http://pbid.pro-market.net/engine' this.get_site = function (collaboration,size,space) { if (collaboration == 'discount' && size == 16 && space == 1) {return 103663} if (collaboration == 'igud' && size == 16 && space == 1) {return 103486} if (collaboration == 'meitav' && size == 16 && space == 1) {return 106584} return this.site } function c_banner(p,serial,size,space,page,a) { this.parent = p this.serial = serial this.size = size this.page = page this.space = space this.id = 'aad_' + size + "_" + serial this.local_ads = [['*','*','*','*']] // ['-*',9957,50,'*'] this.started = false this.is_local = function() { function is_match(m,v) {return m == '*' || m == v} for(var i in this.local_ads) { if (!is_match(this.local_ads[i][0],this.parent.site)) {continue} if (!is_match(this.local_ads[i][1],this.size)) {continue} if (!is_match(this.local_ads[i][2],this.space)) {continue} if (!is_match(this.local_ads[i][3],this.page)) {continue} return i } return -1 } this.s16_handler = function() { if (!location.href.match(/tapuz/i)) {return} if (window.screen.availWidth < 1024) {return} var iframe = document.getElementById(this.id) var table = parent_by_tag(iframe,"TABLE") if (table == null) {return} var table = parent_by_tag(table,"TABLE") if (table == null) {return} if (table.width != '100%') {return} iframe.style.width = '600px' this.size = 407 } this.src = function() { // Is_Almond_On came from \serve\js\global\main.asp if (!Is_Almond_On) return 'about:blank'; if (this.size == 16) {this.s16_handler()} return (this.is_local() > -1 ? this.parent.parent.url.s + "/ads/banner/redirector.asp" : this.parent.prefix) + '?site=' + this.parent.get_site(this.parent.parent.collaboration,this.size,this.space) + '+size=' + this.size + '+space=' + this.space + '+page=$' + this.page + '$' // + '+distinct' + '+rnd=(' + (new Date()).getTime() + ')' + '+linktarget=$_blank$' } this.hide = function() {document.getElementById(this.id).style.visibility = 'hidden'} this.blank = function() {if (!this.started) {document.getElementById(this.id).src = 'about:blank'}} this.show = function() { var b = document.getElementById(this.id) if (!this.started) { this.started = true b.src = this.src() } b.style.visibility = 'visible' } } this.add = function(size,space,page) { var b = new c_banner(this,this.banners.length,size,space,page) this.banners[this.banners.length] = b return b } this.iframe = function(size,width,height,space,page) { if (dc_handler) {return dc_handler.aIframe(size,width,height,space,page)} if (arguments.length < 5) {page = 'www@globes:2'} if (arguments.length < 4) {space = 10001} var border = 0 var b = this.add(size,space,page) return '' } this.blank = function() {for(var i in this.banners) {this.banners[i].blank()}} this.start = function() {for(var i in this.banners) {this.banners[i].show()}} this.start_banner = function(size,page,space) { if (arguments.length < 3) {space = null} if (arguments.length < 3) {page = null} for(var i in this.banners) { if (size != this.banners[i].size) {continue} if (page != null && page != this.banners[i].page) {continue} if (space != null && space != this.banners[i].space) {continue} this.banners[i].show() // alert(document.getElementById(this.banners[i].id).src) return } } } function c_dropdown(p) { this.parent = p this.title = function(s,g) { return 'פורטל פיננסי' } this.html = function(g) { function dfs(t,n) {return g.finance.section_html(get_by_title(t,g.finance.sections),'150px',(arguments.length > 1) ? n : 0)} function header() { var td = ['',''] return '' + '' + merge(td,[14,'portfolio','תיק ההשקעות שלי']) + merge(td,[24,'newstracker','גלובס NewsTracker']) + merge(td,[24,'homepage','דף הבית']) + merge(td,[24,'finance','פורטל פיננסי']) + '' + '
' } return '' } this.controler = function(g) { function vset(tagname,d) { var all = document.getElementsByTagName(tagname) // alert(tagname + " " + all.length) for (var i=0; i < all.length; i++) { if (all[i].id == "cboTypes") {continue} if (all[i].id != "ifrInstruments" && all[i].id != "ifrNYInstruments") all[i].style.visibility = "visible" } } function set_e(e,t,c,d) { e.innerHTML=t; e.currently=c; var m = document.getElementById("dropdown_menu_id") var t = document.getElementById("tdFinance") if(c == 'closed'){t.style.backgroundColor = '#f5f5f5'} else{t.style.backgroundColor = '#d3d3d3'} var tagim = ['select','iframe'] for(var i in tagim) {vset(tagim[i],d)} m.style.display=d if (d == 'block') { m.style.left = (((document.body.offsetWidth/2)-265)+'px') } } var e = document.getElementById("dropdown_anchor") if (e.currently == 'opened') {set_e(e,this.title('open',g),'closed','none') } else {set_e(e,this.title('close',g),'opened','block')} } } function c_finance(g) { this.parent = g this.sections = get_financial_links(g) this.section_title = function(t,w,p,i) { return '' + '' + '' + '' + '' + '
' + t + '
' } this.section_html = function(s,w,n) { function tr_list(a,n) { var s = "" for(var i in a) { s += '' s += '' + '' + a[i].title + '' + '' } for(var i=0; i < n ;i++) { s += '' s += ' ' } return s } if (s == null) {return} if (arguments.length < 2) {w = '100%'} if (arguments.length < 3) {n = 0} return '' + '' + tr_list(s.list,n) + '
' + this.section_title(s.title,w,'5px',g.url.ifim + '/Arrow_Green1.gif') + '
' } this.pink_title = function(t,d) { if (arguments.length < 2) {d = ""} var g = this.parent var colspan = 3 return '' + '' + '' + '' + '' + '' + '' + '' + '' + '
' + t + '' + d + '
' } this.Tab_Title = function(str, color) { var g = this.parent return '' + '' + '' + '' + '
'+ str +'
' } this.tower = function(h,w) { if (arguments.length < 1) {w = "100%"} var s = '' + '' for(var i in this.sections) { if (i > -1) {s += ''} s += '' } return s + '
' + this.pink_title('תפריט נתונים') + '
' + this.section_html(this.sections[i]) + '
' } } var nyse_holidays = [] var tase_holidays = [] function c_exchange(name,start,duration,offset,daylight_range,days,holidays) { this.name = name this.start = start this.duration = this.get_seconds(duration) this.days = days this.offset = offset // from gmt this.daylight_savingtime = 0 var a = daylight_range.split(',') try { var now = server_datetime.getTime() for(var i=0; i < a.length ;i += 2) { if (now < (new Date(a[i])).getTime()) {continue} if (now > (new Date(a[i+1])).getTime()) {continue} this.daylight_savingtime = 1 break } } catch(ex) {} } c_exchange.prototype.to_gmt = function(dt) {return g.datetime.add('hour',-1 * (this.offset + this.daylight_savingtime),dt)} c_exchange.prototype.from_gmt = function(dt) {return g.datetime.add('hour',this.offset + this.daylight_savingtime,dt)} c_exchange.prototype.is_holiday = function(ymd) { if (!bin_list(new Date(ymd).toString().toLowerCase().substring(0,3),this.days)) {return true} for(var i in this.holidays) {if (this.days[i] == ymd) {return true}} return false } c_exchange.prototype.get_seconds = function(hms) { var a = hms.split(':') return parseInt(a[2],10) + parseInt(a[1],10) * 60 + parseInt(a[0],10) * 3600 } c_exchange.prototype.open = function(dt) { dt.setTime(dt.getTime() + offset * 60 * 60 * 1000) } // global functions function FixDateToShow(str) { var oDate = new Date(str) var month = oDate.getMonth()+1 month = (month<10)? "0"+ month : month; var day = (oDate.getDate()<10) ? "0" + oDate.getDate().toString() : oDate.getDate().toString(); var minute = (oDate.getMinutes()<10) ? "0" + oDate.getMinutes().toString() : oDate.getMinutes().toString(); var hour = (oDate.getHours()<10) ? "0" + oDate.getHours().toString() : oDate.getHours().toString(); return day + "." + month + "." + oDate.getFullYear() + ", " + hour + ":" + minute; } function ChangeElementDisplay(layerName,sValue) { document.getElementById(layerName).style.display = sValue; } // function RefreshDynamicItems() { GetResponsesDesksSharesTextFile(); GetLikesCounts(); } function GetLikesCounts() { var url = "/news/ashx_handlers/GetLikesShares.ashx?" + new Date().getTime() GetAsynchronousData(url, "FillLikesCounts(xmlHttp)") } function responses_count(b,doc_id,fid) { var ruleriAction = 'Abstract_Response_abstract_click'; var objResponsesSpan = document.getElementById("ResponseCount_" + doc_id + "_" + fid); if (b[doc_id] && b[doc_id].responses > 5) { try {ruleriAction = objResponsesSpan == null ? ruleriAction : objResponsesSpan.ruleriActRes;} catch(ex) {} //var objResponsesSpan = document.getElementById("ResponseCount_" + doc_id + "_" + fid); return "" + b[doc_id].responses + ""; } return null; } function GetUserIDForSaving() { if (document.cookie.length>0){ return ReadCookieData("UserID"); } return 0; } function SaveToCookie(sData,sName) { var expiredays = 1; var exdate=new Date(); exdate.setDate(exdate.getDate() + expiredays); document.cookie= sName + "=" + escape(sData)+ ((expiredays==null) ? "" : ";expires="+exdate.toGMTString()); } function ReadCookieData(c_name) { if (document.cookie.indexOf(c_name) == -1) return ""; c_start=document.cookie.indexOf(c_name); var sCookie = document.cookie.substring(c_start,document.cookie.length) if (sCookie.indexOf(";") == -1) return ""; sCookie= sCookie.substring(0,sCookie.indexOf(";")); if (sCookie.indexOf("=") == -1) return ""; return unescape(sCookie.substring(sCookie.indexOf("=")+1)); } function ChangeScrollBarDir() { return; } function fixScroll() { return; } //=============================================Desk responses=================================== function GetQueryString(key) { var b = location.href.replace(/\?/,"&").toLowerCase().indexOf("&" + key + "=") if (b < 0) {return ''} b += key.length + 2 var e = location.href.indexOf("&",b) return location.href.substring(b,(e < b) ? location.href.length : e) } var sGlobalDidForResponses = ""; var sRespIds = ""; function responses_desk_count(b,doc_id,fid) { if (b[doc_id] && b[doc_id].responses > 5) { return b[doc_id].responses ; } return ""; } function isGlobesTV() { try { if(typeof FolderDynasty != "undefined") { if(FolderDynasty.indexOf("2006") != -1)return true } } catch(e){} return false; } function getResponsesByDid(did, elementID) { var url = "/Responses/txtResponses.txt?" + new Date().getTime() GetAsynchronousData(url,"response_filler_bydid(xmlHttp," + did + ",'" + elementID + "')") } function getDeskResponsesByDid(did, elementID) { if (Is_Desk_On == true) { var url = "/Responses/txtGlobesDeskResponses.txt?" + new Date().getTime() GetAsynchronousData(url, "deskResponse_filler_bydid(xmlHttp," + did + ",'" + elementID + "')") } } function response_filler_bydid(xmlHttp, did, elementID) { var a = xmlHttp.responseText.split('\n') var iResponses = 0; var b = new Array(); for (var i in a) { var x = (a[i]+ ":").split(':'); var doc_id = x[0]; var responses = x[1].replace("\n","").replace("\r",""); if (doc_id == did)iResponses = responses; } var obj = document.getElementById(elementID); if(obj) { if(iResponses < 5) { //var objTeguvot_Ballon_pink = document.getElementById("Teguvot_Ballon_pink"); //var container = document.createElement("span"); //container.innerHTML = "+ "; //obj.appendChild(container); return; } //obj.innerHTML = "" + iResponses + ""; var lnk = document.createElement("a"); lnk.setAttribute('href', '#reaction'); lnk.innerHTML = "" + iResponses + ""; obj.appendChild(lnk); } } function deskResponse_filler_bydid(xmlHttp, did, elementID) { var a = xmlHttp.responseText.split('\n') var iResponses = 0; var b = new Array() for (var i in a) { var x = (a[i]+ ":").split(':'); var doc_id = x[0]; var responses = x[1].replace("\n","").replace("\r",""); if (doc_id == did)iResponses = responses; } var obj = document.getElementById(elementID); if(obj) { if(iResponses == 0) { var objTeguvot_Ballon_white = document.getElementById("Teguvot_Ballon_white"); var container = document.createElement("span"); container.innerHTML = "+"; obj.appendChild(container); return; } //obj.innerHTML = "" + iResponses + ""; var lnk = document.createElement("a"); lnk.setAttribute('href', '#reactionDesk'); lnk.innerHTML = iResponses; obj.appendChild(lnk); } } function GetResponsesDesksSharesTextFile() { var url = "/Responses/ResponsesDeskSharesCounters.txt?" + new Date().getTime() GetAsynchronousData(url, "FillResponsesDesksShares(xmlHttp)") } function FillResponsesDesksShares(xmlHttp) { try { var hasDID = (GetQueryString("did") != "") ? true : false; var rs = null; // span var rs1 = null; // ResponseCount var rs2 = null; // ResponseDeskCount var rs3 = null; var lines = xmlHttp.responseText.split('\n'); var dic = new Object(); for (var i in lines) { var x = (lines[i] + ":").split(':'); var y = (x[1] + ",").split(','); dic[x[0]] = new function () { this.responses = parseInt(y[0]); this.desks = parseInt(y[1]); this.shares = parseInt(y[2]); } } if (window.ActiveXObject) { rs1 = document.getElementsByTagName('span'); FillResponses(rs1, dic); //FillDesk(rs1, dic); } else { rs2 = document.getElementsByName("ResponseCount"); FillResponses(rs2, dic); if (hasDID) { rs = document.getElementsByName("ResponseDeskCount"); } else { rs = document.getElementsByName("ResponseCount"); } //FillDesk(rs, dic); } } catch (e) { alert("ERROR - FillResponsesDesksShares"); } } function get_responses_count(dic, did, fid) { var ruleriAction = 'Abstract_Response_abstract_click'; var objResponsesSpan = document.getElementById("ResponseCount_" + did + "_" + fid); if (dic[did] && dic[did].responses > 5) { try { ruleriAction = objResponsesSpan == null ? ruleriAction : objResponsesSpan.ruleriActRes; } catch (ex) { } //var objResponsesSpan = document.getElementById("ResponseCount_" + doc_id + "_" + fid); return "" + dic[did].responses + ""; } return null; } function get_responses_desk_count(dic, did, fid) { if (dic[did] && dic[did].desks > 5) { return dic[did].desks; } return ""; } function FillResponses(rs, dic) { for (var i = 0; i < rs.length; i++) { //if (window.ActiveXObject && rs[i].className != 'CountTguvot') { continue; } if (rs[i].className == 'CountTguvot') { var strArr = rs[i].id.split('_'); var did = strArr[1]; var fid = strArr[2]; var ih = get_responses_count(dic, did, fid); if (ih != null) { rs[i].innerHTML = ih; try { if (dic[did] && dic[did].responses > 5) { var ruleriAction = 'Abstract_Response_abstract_click'; var objResponsesSpan = document.getElementById("ResponseCount_" + did + "_" + fid); try { ruleriAction = objResponsesSpan == null ? ruleriAction : objResponsesSpan.ruleriActRes; } catch (ex) { } $("div[id*='fbls_" + did + "']").find('.nwshares').html("" + dic[did].responses + ""); } else { $("div[id*='fbls_" + did + "']").find('.nwshares').html(dic[did].responses) } } catch (e) { } } } } } function FillDesk(rs, dic) { for (var i = 0; i < rs.length; i++) { try { var strArr = rs[i].id.split('_') var did = strArr[1]; var fid = strArr[2]; var ih = get_responses_desk_count(dic, did, fid) if (ih != null && ih != "") { if (GetQueryString("did") != "") { var objResponseDeskCount = document.getElementById("ResponseDeskCount_" + did + "_" + fid); var objDescLink = document.getElementById("ResponseDeskLink_" + did + "_" + fid); if (objResponseDeskCount && objDescLink) { if (objDescLink) { objDescLink.innerHTML = "" + ih + ""; objDescLink.title = "בכתבה זו " + ih + " פרשנויות דסק"; } objResponseDeskCount.style.visibility = "visible"; } } else { var objResponsesLink = document.getElementById("ResponseCount_" + did + "_" + fid); objResponsesLink.style.direction = "rtl"; if (objResponsesLink && ih != null && ih != "") { var sInnerHTMLOfResponses = objResponsesLink.innerHTML; if (sGlobalDidForResponses != did && sRespIds.indexOf(did) == -1) { // sInnerHTMLOfResponses += ""; sGlobalDidForResponses = did; sRespIds += did; } objResponsesLink.innerHTML = sInnerHTMLOfResponses; } } } } catch (ex) { } } } function add_FBShare_Click(did, fid) { var url = "/Incrementclick.ashx?did=" + did + "&fid=" + fid + "&ctype=FBShares&tt=" + new Date().getTime() GetAsynchronousData(url, "add_FBShare_Click_Response(xmlHttp)"); } function add_FBShare_Click_Response(xmlHttp) { alert("add_FBShare_Click_Response: " + xmlHttp.responseText); } function FillLikesCounts(xmlHttp) { var itemsObj = new Object(); var items = xmlHttp.responseText.split("\n"); for (var i = 0; i < items.length; i++) { if (items[i] != "") { var itemData = items[i].split(","); itemsObj[itemData[0]] = { like: itemData[1], share: itemData[2], total: itemData[3] }; $("div[id*='fbls_" + itemData[0] + "']").find('.nwlikes').html(itemData[3]); } } $("span[id*='likesBubble_']").each(function () { var iid = $(this).attr('id'); var did = iid.split('_')[1]; if (itemsObj[did] != null) { if (1 * itemsObj[did].total > 5 || itemsObj[did].total.indexOf("K") > 0) { $(this).html(itemsObj[did].total); $(this).show(); } else { $(this).hide(); } } else { $(this).hide(); } }); } function GetQS(data) { var qs = new Querystring(); var result = qs.get("fid") result = ((result==null || result=='' || result=='undefined') && (location.href.toLowerCase().indexOf("home.aspx")!=-1 || location.href.toLowerCase().indexOf("article.aspx")!=-1 )) ? 2 : result; return result; } var host = location.protocol + "//www.globes.co.il" var DBrowser = 'הפוך לעמוד הבית'; var myTimer; var FolderDynasty = typeof(FolderDynasty) == "undefined" ? "" : FolderDynasty var MainMenuTimer; var MainMenuFlag; var inner_fid = GetQS(location.href); var connectedProviders = new Array(); var connectedProvidersChecked = false; function getEmailNew() { try { if (user_id > 0) { var unescaped_login_id = unescape(login_id) var longest = 14 if (unescaped_login_id.length > longest) {unescaped_login_id = '... ' + unescaped_login_id.substring(0,longest - 4)} return '
' +'
' +show_my_product() +show_user_menubar(unescaped_login_id) +'
' +'
'; } } catch(ex){} var backToUrl = "/news/m/login/login.aspx?mode=wizard&p_backTo=" + escape(location.href) ;//"/pay/login.asp?mode=wizard"; return ("
התחבר
"); } function c_header(p) { this.menu = new Object() this.menu.parent = this this.menu.select_types = TypeArraySetup() this.menu.search = new Object() this.menu.search.parent = this this.menu.search.site = function(s) { function sr(e,f,q) {location.href = g.url.fsr + '?ExchangeID=' + e + '&Feeder=' + f + '&strToSearch=' + escape(q)} var e = document.getElementById("site_search_selector") e.blur() var v = e.options[(arguments.length > 0) ? s : e.selectedIndex].value if (arguments.length == 0) {e.selectedIndex = 0} var q = document.getElementById("query_for_site").value if (q.match(/^\s*$/)) {return} if (v == 'ny') {return sr(4,1,q)} if (v == 'ta') {return sr(45,0,q)} location.href = '/news/searchresults.aspx?searchQuery=' + q + '&count=10&field=0&period=0&status=All' } this.menu.search.find = function() {window.open ('http://www.find.co.il/redirsrch.asp?uid=221&sourceid=300&searchstring=' + document.getElementById("query_for_find").value,"find")} this.menu.search.finance = function(g) { var query = document.getElementById("name_or_symbol").value var feeder = radio_value("Feeder") var cboType = selected_value("cboTypes") var newPortfolio = (self.location.href.toLowerCase().indexOf("globessites")>=0 || self.location.href.toLowerCase().indexOf("newportfolio=1")>0) ? 1 : 0 location.href = '/finance/shared/SearchResults.asp?t=' + (new Date().getTime() % 10000) + '&strToSearch=' + escape(query) + '&SearchIdxInst=0' + '&Lang=HE' + '&Field=3' + '&Direction=1' + '&WhatType=' + ((cboType > -1) ? g.header.menu.select_types[cboType].WhatType : "") + '&TypeID=' + ((cboType > -1) ? g.header.menu.select_types[cboType].TypeID : "") + '&NumPage=1' + '&Feeder=' + ((feeder == 'abroad') ? 1 : 0) + '&WhatToSearch=' + query + '&cboTypes=-' + cboType + '&newPortfolio='+ newPortfolio } this.menu.dropdown = new c_dropdown(this.menu) this.menu.site = new Object() this.menu.site.parent = this this.menu.site.filler = function() { document.getElementById("hm_in_israel").innerHTML = "" + g.datetime.dt2DMy(server_datetime,"/") + "  ישראל " + g.datetime.dt2hM(server_datetime,":") server_datetime.setTime(server_datetime.getTime() + 60 * 1000) setTimeout("g.header.menu.site.filler()",60 * 1000) } this.menu.site.financial_options = function(g,w) { var s = '"; } this.menu.finance = function(g) { g.onload(function() { function querystring(key) { var b = location.href.replace(/\?/,"&").toLowerCase().indexOf("&" + key + "=") if (b < 0) {return ''} b += key.length + 2 var e = location.href.indexOf("&",b) return location.href.substring(b,(e < b) ? location.href.length : e) } var abroad = location.href.match(/feeder=1/i) g.header.menu.populator(abroad ? 'abroad' : 'in israel',g.financial_links,abroad ? 1 : 0) document.getElementById("name_or_symbol").value = unescape(querystring("strtosearch")) var type_id = parseInt(querystring("typeid")) if (!isNaN(type_id)) { var cboTypes = document.getElementById("cboTypes") for(var i=1; i < cboTypes.options.length ;i++) { if (g.header.menu.select_types[cboTypes[i].value].TypeID != type_id) {continue} cboTypes.selectedIndex = i break } } }) } } function getEnter(event) { if(navigator.appName == "Microsoft Internet Explorer") { if(window.event && window.event.keyCode == 13 && isHiddenDivDisplayed == 0){startSearch()} } else { if (event && event.which == 13 && isHiddenDivDisplayed == 0){startSearch()} } } function querystring(key) { var b = location.href.replace(/\?/,"&").toLowerCase().indexOf("&" + key + "=") if (b < 0) {return ''} b += key.length + 2 var e = location.href.indexOf("&",b) return location.href.substring(b,(e < b) ? location.href.length : e) } function searchQuery(key) { var b = location.href.indexOf("?" + key + "=") if (b < 0) {return ''} b += key.length + 2 var e = location.href.indexOf("&",b) return location.href.substring(b,(e < b) ? location.href.length : e) } function GetCookie(sCookie,sSubCookie) { var startIndex, endIndex, valueCookie; startIndex = document.cookie.indexOf(sCookie); if (startIndex != -1) { startIndex += sCookie.length + 1; endIndex = document.cookie.indexOf(";",startIndex); if (endIndex == -1) endIndex = document.cookie.length; valueCookie = document.cookie.substring(startIndex,endIndex); if (sSubCookie != "") { startIndex = valueCookie.indexOf(sSubCookie); if (startIndex != -1) { startIndex += sSubCookie.length + 1; endIndex = valueCookie.indexOf("&",startIndex); if (endIndex == -1) endIndex = valueCookie.length; valueCookie = valueCookie.substring(startIndex,endIndex); return(valueCookie); } else return null; } else return(valueCookie); } else return null; } function getSearch(caller,b) { LoadTextFile(b); var oDiv = document.getElementById("divHiddenSearch") var sQ = document.getElementById("site_search_selector"); var q = document.getElementById("query_for_site"); var oCombo = document.getElementById("cboTypes"); ShowResults(q,oDiv,b) sQ.value = b; q.blur(); var tr = caller.parentNode; for (var i=0; i < tr.childNodes.length ;i++) { var tdi = tr.childNodes[i] var stdName = null switch (tdi.id) { case "tdS_1": stdName = 'משולב'; break case "tdS_2": stdName = 'כתבות'; break case "tdS_3": stdName = 'ני"ע בארץ'; break case "tdS_4": stdName = 'ני"ע בחו"ל'; break case "tdS_5": stdName = 'בארכיון'; break case "tdS_TV": stdName = 'TV'; break case "tdS_6": stdName = 'כלים ומידע'; break case "tdS_7": stdName = 'Find'; break //case "tdS_8": // stdName = 'מתקדם››'; // break } if (!stdName) {continue} if (false || caller === tdi) { tdi.innerHTML = "" + "" + "" + "" + "" + "
" + stdName + "
" switch(tdi.id) { case "tdS_1": unselectBorder(1,0); break; case "tdS_6": unselectBorder(1,2); break; case "tdS_2": unselectBorder(2,3); break; case "tdS_5": unselectBorder(3,4); break; case "tdS_TV": unselectBorder(4,5); break; case "tdS_3": unselectBorder(5,6); break; case "tdS_4": unselectBorder(6,7); break; case "tdS_7": unselectBorder(7,8); break; case "tdS_8": break; } if(b == 'ta' || b == 'ny' || b == 1 || b == 2 || b == 5 || b == 'TV') { oCombo.style.display = ''; oCombo.style.width = '95px'; q.style.width = '220px'; build_combo_types(b); } else { oCombo.style.display = 'none'; q.style.width = '315px'; } } else { tdi.innerHTML = stdName; tdi.className = "tabstextHeaderItems"; } } try{q.focus()}catch(ex){} } function unselectBorder(idLeft,idRight) { for(var i=1; i<9; i++) { if(i == idLeft || i == idRight) { var tdIDLeft = "tdS_" + idLeft + idLeft; var tdIDRight = "tdS_" + idRight + idRight; if(document.getElementById(tdIDLeft) != null)document.getElementById(tdIDLeft).className = "uncheckedTabBorder"; if(document.getElementById(tdIDRight) != null)document.getElementById(tdIDRight).className = "uncheckedTabBorder"; } else { var tdID = "tdS_" + i + i; if(document.getElementById(tdID) != null)document.getElementById(tdID).className = "tabHeaderBorderButtom"; } } } function search_find_new() { var q = document.getElementById("query_for_site"); var str = q.value; window.open('http://find.co.il/displayManager.aspx?searchPhrase=' + escape(str) + '&lang=2~rtl&indexversion=globes&ssid=23',"find") } function GetKey(key) { var b = location.href.replace(/\?/,"&").toLowerCase().indexOf("&" + key + "=") if (b < 0) {return ''} b += key.length + 2 var e = location.href.indexOf("&",b) return location.href.substring(b,(e < b) ? location.href.length : e) } function startSearch() { var iSearchID = document.getElementById("site_search_selector").value; var sRuleriOpt_label = "News"; if(iSearchID == 11) sRuleriOpt_label = "Qautes"; ruleriHeaderSearchEvent(sRuleriOpt_label, "Search"); var q = document.getElementById("query_for_site"); var str = q.value; var sCheckingLength; sCheckingLength = str.replace(" ",""); str = str.replace(/>/g,""); str = str.replace(/=0 || self.location.href.toLowerCase().indexOf("newportfolio=1")>0) ? 1 : 0 location.href='/finance/shared/SearchResults.asp?t=' + (new Date().getTime() % 10000) + '&strToSearch=' + escape(query) + '&SearchIdxInst=0' + '&Lang=HE' + '&Field=3' + '&Direction=1' //+ '&WhatType=' + ((cboType > -1) ? g.header.menu.select_types[cboType].WhatType : "") //+ '&TypeID=' + ((cboType > -1) ? g.header.menu.select_types[cboType].TypeID : "") + '&WhatType=' + '&TypeID=' + '&NumPage=1' + '&Feeder=' + ((iSearchID == 'ny') ? 1 : 0) + '&WhatToSearch=' + query + '&cboTypes=-' + cboType + '&newPortfolio='+ newPortfolio + '&id=' + ((iSearchID == 'ny') ? 4 : 3) } function bookmarksite(title,url) { if (window.sidebar) // firefox window.sidebar.addPanel(title, url, ""); else if(window.opera && window.print){ // opera var elem = document.createElement('a'); elem.setAttribute('href',url); elem.setAttribute('title',title); elem.setAttribute('rel','sidebar'); elem.click(); } else if(document.all)// ie window.external.AddFavorite(url, title); } function DrawHiddenSearchDiv() { return '' } function GetSearchBox() { var search_box = '' + '' + '' + '' + '
' + '' + '' + '' + '' + '' + '' + '' //+ '' //+ '' + '' + '' + '' + '' + '' + '' + '' + '' //+ '' //+ '' + '' + '' + '' + '' + '' //+ '' + '' + '' + '' + '' //+ '' + '' + '
משולבכלים ומידעכתבותבארכיוןTVני"ע בארץני"ע בחו"לFind
' + '
' + '' + '' + '' + '' + '
' + '' + '' + '' + '
חפש: ' + '
' + '
' search_box += DrawHiddenSearchDiv() + '<' + 'script> update_datetime();setChanges();' return search_box; } function changeSearchButton(obj,state) { if(state == 1) obj.src = "http://images.globes.co.il/images/GlobesGlobal/button20x20_On.gif"; else obj.src = "http://images.globes.co.il/images/GlobesGlobal/button20x20_Norm.gif"; } function RenderMainMenuNagish(w,wEx) { var render_id = GetMainTabID(inner_fid); var selected_tab=""; var TdSpace = '' var menu='

'; if(HeaderMenu.length>0) {menu += HeaderMenu[0][2] } menu += '
'; return menu; } function RenderMainMenu2(w,wEx) { var render_id = GetMainTabID(inner_fid); var selected_tab=""; var TdSpace = '' var OffsetForSubMenu = 60; if (w!=990){ HeaderMenu = HeaderMenu_750; OffsetForSubMenu = 45; } var menu=''; for (var i=0; i' + HeaderMenu[i][2] + ''+ GenerateHoverMenuItem(i,wEx,OffsetForSubMenu) +''; } else { menu += TdSpace + ''; TdSpace = '' } } menu += '
' + HeaderMenu[i][2] + '' + GenerateHoverMenuItem(i,wEx,OffsetForSubMenu) + '
'; return menu; } function GenerateHoverMenuItem(i, wEx, OffsetForSubMenu) { var result=""; var render_id = GetMainTabID(inner_fid); var pointer="hmt" + HeaderMenu[i][0]; var link_pointer="mht_link" + HeaderMenu[i][0]; var outer_pointer="mht_outer" + HeaderMenu[i][0]; result += '
' result += '' } } result += '
' + '<' + 'script>' + 'generate_hover_menu2(\"' + pointer + '\",\"' + link_pointer + '\", \"menu_child' + HeaderMenu[i][0] + '\", \"y\" ,"' + wEx + '");' + '' return result; } var SelectedMainTabId=null; function GetMainTabID(inner_fid) { if (SelectedMainTabId!=null) return SelectedMainTabId; for (var i=0; i-1) { SelectedMainTabId = HeaderMenu[i][0]; return SelectedMainTabId; } } } else { if (typeof(HeaderMenu[i][3][j][2])!='undefined' && typeof(HeaderMenu[i][3][j][2])!='' && (HeaderMenu[i][3][j][2] == inner_fid || FolderDynasty.indexOf('-' + HeaderMenu[i][3][j][2] + '-')>-1)) { SelectedMainTabId = HeaderMenu[i][0]; return SelectedMainTabId; } } } } return SelectedMainTabId; } function RenderSubMenuNagish(w,wEx) { var menu = '\n\n'; var on_menu = '
'; var delimiter = '  |  '; for( var i=0; i' + HeaderMenu[0][3][i][0] + '' if(i' + HeaderMenu[i][3][j][0] + '
'; if (inner_fid==null) { var io_search = location.href.toLowerCase().indexOf(HeaderMenu[i][3][j][1].toLowerCase()); if (io_search>-1) { menu += on_menu; } else { menu += off_menu; } } else { if (HeaderMenu[i][3][j][2] == inner_fid || FolderDynasty.indexOf('-' + HeaderMenu[i][3][j][2] + '-')>-1) { var search = FolderDynasty.indexOf(inner_fid); if (search>-1) { menu += on_menu; } else { menu += off_menu; } } else { menu += off_menu; } } } } } } menu += "
"; return '' + menu; } //QS Handling function Querystring(qs) { // optionally pass a querystring to parse this.params = new Object() this.get=Querystring_get if (qs == null) qs=location.search.substring(1,location.search.length) if (qs.length == 0) return qs = qs.replace(/\+/g, ' ') var args = qs.split('&') // parse out name/value pairs separated via & for (var i=0;i'; menubar+='עדכון פרטים'; menubar+='התנתק'; menubar+=''; return menubar; } function show_my_product() { var premium_products = [ { id: 8 , name: 'עיתון דיגיטלי', link: '/news/home.aspx?fid=2701'}, { id: 12, name: 'Stocks Online', link: '/GlobesSites/Globes/Finance/instruments/Instrumentslist.aspx?wantrt=1&TypeID=3'}, { id: 13, name: 'Options Online', link: '/GlobesSites/Globes/Finance/instruments/optionlist.aspx?wantrt=1&TypeID=15'}, { id: 14, name: 'Tel-Aviv Online', link: '/GlobesSites/Globes/Finance/instruments/Instrumentslist.aspx?wantrt=1&TypeID=3'} ]; var cookieData; var cookieName = 'SessionData'; var i, x, y, ARRcookies = document.cookie.split(";"); for (i = 0; i < ARRcookies.length; i++) { x = ARRcookies[i].substr(0, ARRcookies[i].indexOf("=")); y = ARRcookies[i].substr(ARRcookies[i].indexOf("=") + 1); x = x.replace(/^\s+|\s+$/g, ""); if (x == cookieName) { cookieData = unescape(y).split('|'); } } var menubar=""; var productsHTML = ''; if(cookieData != 'undefined' && cookieData.length > 1 && cookieData[1] != '') { var premiumProductIds = cookieData[1].split('-'); for(var i = 0; i< premiumProductIds.length; i++) { var productId = premiumProductIds[i]; for(var p = 0; p < premium_products.length; p++) { if(premium_products[p].id == productId) { productsHTML += '' + premium_products[p].name + ''; } } } } var ipad_fn=""; var isiPad = navigator.appVersion.match(/iPad/i) != null; if(isiPad) ipad_fn=" onclick='ipad_onmouseover_open_menu(this)' "; menubar+='
המוצרים שלי'; menubar+='
' menubar+=' תיק אישי'; menubar+=productsHTML; menubar+='
'; menubar+='
'; return menubar; } var ipad_myproduct_menu_is_open=false; function ipad_onmouseover_open_menu(obj) { if(!ipad_myproduct_menu_is_open) { obj.className="my_products_insite_ipad_menu_onclick"; ipad_myproduct_menu_is_open=true; } else { obj.className="my_products_insite_ipad_menu"; ipad_myproduct_menu_is_open=false; } }var footer_pattern = "
 
"; return sR; }function SavePersonalRssSettings(user_id,feed_id,box_id) { var url="scripts/SaveRssFeed.gspx?user="+user_id+"&feed="+feed_id+"&box="+box_id; GetAsynchronousData(url,""); }function GetRssFeed(feed_id,box_id) { var path = SharedRootFolder + '/data/js/RssFeeds/rss_' + feed_id + '.js?box=' + box_id; GetAsynchronousData(path,"eval(xmlHttp.responseText)"); } var icon_on="https://images.globes.co.il/images/site/Tools_Open.gif"; var icon_off="https://images.globes.co.il/images/site/Tools_Open_OFF.gif"; var rssIcon_on="https://images.globes.co.il/images/site/Tools_Rss.gif"; var text_off="התחבר וערוך RSS "; var url_off="/pay/rlogin.asp?p_backTo=/news/home.aspx"; var user_db_data; var box1_default = 'walla'; var box2_default = 'maya'; var box3_default = 'mw'; var feed1 = ""; var feed2 = ""; var feed3 = ""; function ruleriRssEvent(open, boxIndex) { var value = document.getElementById('RssBox' + boxIndex + 'Title').innerHTML + boxIndex; if(open) { e_counter.count(value,'RSS_SeeMore',null,'hp'); } else { e_counter.count(value,'Rss_CloseSeeMore',null,'hp'); } } function GetRssFeedEx(feed,box_id, hebrew) { var url = "/data/js/rss.ashx?source=" + feed + '&' + (new Date()).getTime() var rss = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest() rss.open("GET",url,true) rss.onreadystatechange = function() {if (rss.readyState == 4 && rss.status == 200) {GetRssDataFromFile(rss.responseXML,box_id, hebrew)}} rss.send() } function GetRssDataFromFile(xmlDoc,box_id, hebrew) { var result=[]; var css_class=""; if (hebrew) { css_class = "G_Rss_linkRight"; } else { css_class = "G_Rss_linkLeft"; } var x = xmlDoc.getElementsByTagName('link'); var max = x.length > 5 ? 5 : x.length; for (i=0;i' + mlink + '') } document.getElementById(box_id).innerHTML = result.length == 0 ? '
אין מידע.
' : result.join('') document.getElementById(box_id).className = css_class; } function ParseXML(box_id,url, hebrew) { document.getElementById(box_id).innerHTML = ""; GetRssFeedEx(url,box_id, hebrew); } function GetRssLocation(el,item) { var result = 0; var select = document.getElementById(el); for (i = 0; i < select.options.length; i++) { if(select[i].value==item) { result = i; } } return result; } function GetFeedIndex(feed_url,default_feed) { for (i = 0; i < RssFeeds.length; i++) { if (RssFeeds[i][2]==feed_url) { return i; } } return default_feed; } function GetFeedIndexByCode(feed_code) { for (i = 0; i < RssFeeds.length; i++) { if (RssFeeds[i][2]==feed_code.replace(/^-/,'')) { return i; } } return default_feed; } function SelectFeed(feed_url,feed_title,box_title_id, box_id, save) { var box; document.getElementById(box_title_id).innerHTML = feed_title; var lang_pointer; if (save==true) { switch(box_id) { case 'RssContent1': box = '1'; feed1= (typeof(feed_url)!='undefined'?feed_url : box1_default); lang_pointer=RssFeeds[GetFeedIndexByCode(feed1)][3]; //SavePersonalRssSettings(user_id,feed1,box); break case 'RssContent2': box = '2'; feed2= (typeof(feed_url)!='undefined'?feed_url : box2_default); lang_pointer=RssFeeds[GetFeedIndexByCode(feed2)][3]; //SavePersonalRssSettings(user_id,feed2,box); break case 'RssContent3': box = '3'; feed3= (typeof(feed_url)!='undefined'?feed_url : box3_default); lang_pointer=RssFeeds[GetFeedIndexByCode(feed3)][3]; //SavePersonalRssSettings(user_id,feed3,box); break } // if (user_id>0) // { var data = '1,' + feed1 + '|' + '2,' + feed2 + '|' + '3,' + feed3; UpdateUserRssCookie(data); // } } else { switch(box_id) { case 'RssContent1': feed1= (typeof(feed_url)!='undefined'?feed_url : box1_default); lang_pointer=RssFeeds[GetFeedIndexByCode(feed1)][3]; break case 'RssContent2': feed2= (typeof(feed_url)!='undefined'?feed_url : box2_default); lang_pointer=RssFeeds[GetFeedIndexByCode(feed2)][3]; break case 'RssContent3': feed3= (typeof(feed_url)!='undefined'?feed_url : box3_default); lang_pointer=RssFeeds[GetFeedIndexByCode(feed3)][3]; break } } var hebrew=true; if (lang_pointer=='1') { hebrew=false; } ParseXML(box_id,feed_url, hebrew); } function ShowEditBox(box_id,index) { // if(user_id>0) // { var close_id; switch(index) { case 1: close_id = feed1; break case 2: close_id = feed2; break case 3: close_id = feed3; break } var close_link = "SelectFeed('" + RssFeeds[GetFeedIndexByCode(close_id)][2] + "','" + RssFeeds[GetFeedIndexByCode(close_id)][0] + "','RssBox" + index + "Title','" + box_id + "',true)\"" + ")"; var tpl = "" +"" +"" +"" +"" +"" +"" +"" +"
  בחר מקור תוכן מהרשימה
" +"" +"" + GetFeedsList(index) +"" +"
" +"
"; document.getElementById(box_id).className = "rssBox1"; document.getElementById(box_id).innerHTML = tpl; // } } function GetFeedsList(index) { var max = 5; var left = RssFeeds.length % max; var columns = (RssFeeds.length - (RssFeeds.length % max)) / max; if (left>0) { columns++; } var feeds=""; var items=""; var pointer=0; for (i = 0; i < RssFeeds.length; i++) { items += "
" + RssFeeds[i][0] + "
"; pointer++; if (pointer==max || i==RssFeeds.length-1) { feeds += "" + items + ""; items =""; pointer=0; } } return feeds; } function UpdateUserRssCookie(data) { var send_value = data; var expiredays = 7; var value = send_value; var exdate=new Date(); exdate.setDate(exdate.getDate() + expiredays); document.cookie="RssReader=" +escape(value)+ ((expiredays==null) ? "" : ";expires="+exdate.toGMTString()); } function RssReader_GetCookieValue(value,splitter) { var c_name = value; var result; if (document.cookie.length>0) { c_start=document.cookie.indexOf(c_name + "=") if (c_start!=-1) { c_start=c_start + c_name.length+1 c_end=document.cookie.indexOf(splitter,c_start) if (c_end==-1) c_end=document.cookie.length result = unescape(document.cookie.substring(c_start,c_end)) } else { result = 0; } } else { result = 0; } return result; } function DeleteRssCookie() { var d = new Date(); document.cookie="RssReader=Deleted;expires=" + d.toGMTString() + ";" + ";"; } function GetUserRssDataFromDB() { var url="scripts/GetUserRssDataFromDB.gspx?user="+user_id; GetAsynchronousData(url,"user_db_data=xmlHttp.responseText; UpdateUserRssCookie(user_db_data); ReadUserRssCookie(user_db_data);"); } function ReadUserRssCookie(data) { var box1; var box2; var box3; if (data.length > 0) { var feeds = data.split("|"); for ( var i=0; i" + ""; for (i = 1; i < 4; i++) { if ( i != 3) { TDSeparator =""; } else { TDSeparator =""; } boxes += "" +TDSeparator; } boxes += "
" +"
" +" " +"\"RSS\"

בטעינה...

" // + (user_id==0?"לפידים נוספים ":"לפידים נוספים ") +"ל-RSS נוספים \"לבחירת" +"
" +"" +"" +"" +"" +"
" +"
" +"
"; document.write(boxes); } catch(ex){} }function CheckPollForm(){ var bIsOneSelected = false; var obj = document.getElementsByName("op"); var objPoolAlert = document.getElementById("PoolAlert"); document.forms["aspnetForm"].action = "/serve/inc/Poll_Submit.asp"; document.forms["aspnetForm"].target = "_top"; for (var i=0; i < obj.length; i++){ if (obj[i].checked == true) bIsOneSelected = true; } if (bIsOneSelected){ document.forms["aspnetForm"].submit(); objPoolAlert.style.display = "none"; } else { objPoolAlert.innerHTML = "יש לבחור אחת מהאפשרויות" } } function CheckCustomPoll() { var selected = false; var answer; for (i = 0; i <12; i++) { if (document.getElementById("cop" + i).checked) { selected = true; answer = document.getElementById("cop" + i).value; } } if (!selected) { alert("נא לבחור תשובה"); } else { window.open("/news/CustomPoll.aspx?answer=" + answer,"Poll","menubar=no,width=430,height=720,toolbar=no"); } } function OpenPollResults() { window.open("/news/CustomPoll.aspx","Poll","menubar=no,width=430,height=720,toolbar=no"); } function CheckInnerPollForm() { var bIsOneSelected = false; var obj = document.getElementsByName("op"); var objPoolAlert = document.getElementById("PoolAlert"); if ($("#PollAns").length == 0) { $("body").append($("")); } document.forms["aspnetForm"].action = "/serve/inc/Poll_Submit.asp"; // document.forms["aspnetForm"].target = "_top"; document.forms["aspnetForm"].target = "innerPollAns"; for (var i = 0; i < obj.length; i++) { if (obj[i].checked == true) bIsOneSelected = true; } if (bIsOneSelected) { document.forms["aspnetForm"].submit(); objPoolAlert.style.display = "none"; $("#ancInnerPollVote").hide(); SignWizard_Show('/news/poll_thanks.aspx'); } else { objPoolAlert.innerHTML = "יש לבחור אחת מהאפשרויות" } } // JScript File var iframe_w, iframe_h; function checkIE7Version() { if(navigator.appName=="Microsoft Internet Explorer") { var IE_VER=navigator.appVersion; IE_VER=IE_VER.substr(22,3); if(IE_VER=="7.0") return true; } return false; } var SignWizard_IspopupVisible = false; function SignWizard_GetTopPoint(h) { var iVal; if (!h) { h = document.getElementById("SignWizard_popup").clientHeight; } iVal = (($(window).height() - h) / 2); if (iVal > 0 && (1 * iVal) + (1 * h) > $(window).height()) { iVal = 0; } iVal = (iVal > 300) ? 100 : iVal; return (iVal > 0) ? iVal : 0; } function SignWizard_GetLeftPoint(w) { if (!w) w = document.getElementById("SignWizard_popup").clientWidth; var iVal = ((document.body.clientWidth - w) / 2); return (iVal > 0 )? iVal : 0; } function SignWizard_SetPopup(url, mode, method,w,h) { try{document.getElementById("htmlHead").style.overflow="hidden";} catch(ex){} if (SignWizard_IspopupVisible != true) return; if (mode == "wizard_LoginOnly") { document.getElementById("SignWizard_popup").className = "SignWizard_popup_LoginOnly"; document.getElementById("SignWizard_popup_Iframe").className = "SignWizard_popup_Iframe_LoginOnly"; } else if (mode == "wizard_pass_madadim") { document.getElementById("SignWizard_popup").className = "SignWizard_popup"; var NewClassName = "SignWizard_popup_Iframe SignWizard_popup_Iframe_pass"; document.getElementById("SignWizard_popup_Iframe").className = NewClassName; } else { if(mode != "wizard") { iframe_w = (parseInt(w) - 2) + ""; iframe_h = (parseInt(h) - 2) + ""; document.getElementById("SignWizard_popup_Iframe").style.width = iframe_w + "px"; document.getElementById("SignWizard_popup_Iframe").style.height = iframe_h + "px"; } document.getElementById("SignWizard_popup").className = "SignWizard_popup"; document.getElementById("SignWizard_popup_Iframe").className = "SignWizard_popup_Iframe"; } scrollByUser_Top=document.documentElement.scrollTop+document.body.scrollTop; document.getElementById("SignWizard_Gray_Layer").style.display = "block"; document.getElementById("SignWizard_popup").style.display = "block"; document.getElementById("LG_wizard_close").style.display = "block"; document.getElementById("SignWizard_popup").style.top =SignWizard_GetTopPoint(h) + scrollByUser_Top + "px"; document.getElementById("LG_wizard_close").style.top = SignWizard_GetTopPoint(h) + scrollByUser_Top-14 + "px"; document.getElementById("SignWizard_popup").style.left = SignWizard_GetLeftPoint(w) + "px"; document.getElementById("LG_wizard_close").style.left = SignWizard_GetLeftPoint(w)-14 + "px"; document.getElementById("SignWizard_Gray_Layer").style.width = document.body.clientWidth; document.getElementById("SignWizard_Gray_Layer").style.height = document.body.clientHeight; document.getElementById('SignWizard_Gray_Layer').style.top=scrollByUser_Top +"px"; if (url!=null) { if (method=="get") { document.getElementById("SignWizard_popup_Iframe").src = url; } else { var frm = document.getElementById("aspnetForm"); if (frm) { frm.action = url; frm.target = "SignWizard_popup_Iframe"; frm.submit(); } } } document.getElementById("SignWizard_popup").style.width = w + "px"; document.getElementById("SignWizard_popup").style.height = h + "px"; SignWizard_IspopupVisible = true; } function SignWizard_Show(url, mode, method,w,h) { if (method!="post") { method="get"; } if (!w) w = "580"; if (!h) h = "400"; if (checkIE7Version() == true) { document.getElementsByTagName("body")[0].scroll = "no";// ie7 } else { document.getElementsByTagName('html')[0].style.overflow = 'hidden'; } try { if (g) { g.StopPageReload = true; } } catch (e) { } SignWizard_IspopupVisible = true; SignWizard_SetPopup(url, mode, method,w,h) } function SignWizard_Close() { try { if (g) { g.StopPageReload = false; } } catch (e) { } document.getElementById("SignWizard_Gray_Layer").style.display = "none"; document.getElementById("SignWizard_popup").style.display = "none"; document.getElementById("LG_wizard_close").style.display = "none"; SignWizard_IspopupVisible = false; if (checkIE7Version() == true) { document.getElementsByTagName("body")[0].scroll = "yes"; // ie7 } else { document.getElementsByTagName('html')[0].style.overflow = 'auto'; } try{document.getElementById("htmlHead").style.overflow="auto";} catch(ex){} } document.write('') document.write('
 
'); document.write(''); document.write('
' + '
' + '
'); //g.onResize(SignWizard_SetPopup); function ClientPaging(prefix,max_items,parent,style_on,style_off) { this.ClientPagingMaxItems = max_items; this.ClientPagingPrefix = prefix; this.ClientStyleOn = style_on; this.ClientStyleOff = style_off; this.ClientStyleParent = parent; this.ClientPagingCounter = 0; this.ClientPagingArray; this.ClientPagingNavigate = ClientPagingNavigate; this.DoClientPaging = DoClientPaging; this.DoClientPagingWithEffect = DoClientPagingWithEffect; this.ColorCurrentPage = ColorCurrentPage; this.Init = Init; this.IsPageLoaded = false; this.Init(); function ClientPagingNavigate(action) { if (action==1) { this.ClientPagingCounter++; if (this.ClientPagingCounter==this.ClientPagingMaxItems) { this.ClientPagingCounter=0; } } else { this.ClientPagingCounter--; if (this.ClientPagingCounter<0) { this.ClientPagingCounter=this.ClientPagingMaxItems-1; } } this.DoClientPaging(this.ClientPagingCounter); } function DoClientPaging(id) { var ruleriId = id + 1; if (this.IsPageLoaded) { e_counter.count(ruleriId.toString(), 'Views_ChangeTab', null, GetRuleriEventCategoryValue()); } for (var i=0;i -1) { returnVlaue = 'article'; } else if (url.indexOf('home.aspx?fid=2') > -1 || url == 'http://www.globes.co.il' || url == 'http://www.globes.co.il/' || url == 'www.globes.co.il' || url == 'www.globes.co.il/') { returnVlaue = 'hp'; } else if (url.indexOf('.tag') > -1) { returnVlaue = 'tag'; } /* else if(sFid != "" && sFid != null){ try{returnVlaue = FolderDynasty;} catch(ex){returnVlaue = 'other';} }*/ else { returnVlaue = 'other'; } return returnVlaue; }var ie = document.all var ns6 = document.getElementById && !document.all var enabletip = false var plusBoxLastUrl = ''; var newAgentTimer; function ietruebody() { return (document.compatMode && document.compatMode != "BackCompat") ? document.documentElement : document.body } function ShowNewsAgentPlus(e, tagitId, tagitName, tagitLink, src) { if (ns6 || ie) { ClearNewsAgentDivTimer(); plusBoxLastUrl = "
+
הוסף למעקב
"; document.getElementById("divNewsAgentPlus").innerHTML = plusBoxLastUrl; enabletip = true positiontip(e, src); return false } } function SetNewsAgentDivTimer() { newAgentTimer = setTimeout("HideNewsAgentPlus()", 1000); } function ClearNewsAgentDivTimer() { clearTimeout(newAgentTimer); } function positiontip(e,src) { if (ie || ns6) var tipobj = document.all ? document.all["divNewsAgentPlus"] : document.getElementById ? document.getElementById("divNewsAgentPlus") : "" if (enabletip) { var object = document.getElementById(src); var oRect = object.getBoundingClientRect(); var cHeight = ObjectPosition(object) + 13; tipobj.style.top = cHeight + "px"; tipobj.style.left = oRect.right - 74 + "px" tipobj.style.visibility = "visible" } } function ObjectPosition(obj) { var curtop = 0; if (obj.offsetParent) { do { curtop += obj.offsetTop; } while (obj = obj.offsetParent); } return curtop; } function HideNewsAgentPlus() { if (ie || ns6) var tipobj = document.all ? document.all["divNewsAgentPlus"] : document.getElementById ? document.getElementById("divNewsAgentPlus") : "" if (ns6 || ie) { enabletip = false tipobj.style.visibility = "hidden" tipobj.style.left = "-1000px" } } g.endofbody = { handlers : [] ,add : function(f){this.handlers.push(f)} ,run : function() {for(var i=0; i < this.handlers.length ;i++) {try{this.handlers[i]()}catch(ex){}}} } function GetExternalJSFile(urlPath){ var domscript = document.createElement('script'); domscript.src = urlPath; document.getElementsByTagName('head')[0].appendChild(domscript); }