document.write('') var previous_onload_handler = window.onload window.onload = function() { document.getElementById('_logiframe').src = '/shared/s.ashx?drfrr=' + escape(document.referrer) + '&language=en&' + (new Date()).getTime() if (typeof(previous_onload_handler) == 'function') {previous_onload_handler()} } 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.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 /* 38.107.179.220 */ var ad = { banner : function(b) { return dc_handler.div(dc_handler.size_id(b.width,b.height),'-width:' + b.width + ';-height:' + b.height) } } var lastIndicesRowId='IndicesRow0'; var currentMainTab=''; var currentLowerTab=''; function httpget(url,f) { var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest() x.open("GET",url,true) x.onreadystatechange = function() {if (x.readyState == 4 && x.status == 200) { f(url,x) }} x.send(null) } function BuildMarketWatch() { var sPath = "/ServeEn/Rss/marketwatch.xml"; httpget(sPath,GetMarketWatchResult) } function GetMarketWatchResult(url,x) { try { if(x.xml != "") { var sRes = []; var root = x.responseXML.getElementsByTagName("channel").item(0); var items = root.getElementsByTagName("item"); for(var i=0; i< Math.min(5,items.length) ; i++){ var item = items[i]; var sTitle = item.getElementsByTagName("title")[0].firstChild.nodeValue; var sLink = item.getElementsByTagName("link")[0].firstChild.nodeValue; if(sTitle != "" && sLink != ""){ sRes.push("" + sTitle + "
 
"); } } if(items.length>0) { document.getElementById("divMarketWatch").innerHTML = sRes.join(''); return sRes.join(''); } else { hideMarketWatchDiv(); } } else { hideMarketWatchDiv(); } } catch(ex) { hideMarketWatchDiv(); } } function hideMarketWatchDiv() { document.getElementById("divMarketWatchWrapper").style.display="none"; } function BuildIndices(upperT,lowerT) { currentMainTab=upperT; currentLowerTab=lowerT; var sPath = "/data/webservices/fb.ashx?upper_tab="+upperT+"&lower_tab="+lowerT; httpget(sPath,GetIndicesResult) } function GetIndicesResult(url,x) { try { var res=x.responseText; var rowsArr=res.split('\n'); var sRes = []; var imgProgName='SChart.aspx'; if(currentMainTab.toLowerCase()=='currencies/commodities') { imgProgName='cchart.aspx'; } for(var i=0;i'); } var class_name='result'; if(i==0) { class_name='result on'; } var percentClass='up'; var percentStr=''; var percentNum=fieldsArr[6]; var styleStr='' if(!isNaN(percentNum) && percentNum.length > 0) { percentStr=percentNum; if(percentStr.substring(0,1)=='-') { percentClass='down'; } else if(percentStr.length > 0) { percentStr='+'+percentStr } percentStr=percentNum+'%'; } else { percentStr="---"; styleStr='style="color:black"'; } //var IndiceName=fieldsArr[4].toLowerCase().replace('index','').substring(0,8); //var IndiceName=fieldsArr[4];//.replace('index','').substring(0,10); //if(currentMainTab.toLowerCase()=='currencies/commodities') //{ // IndiceName=fieldsArr[4]; //} var IndiceShortName=fieldsArr[4]; var IndiceName=fieldsArr[4]; var nameArr=fieldsArr[4].split('^') if(nameArr.length==2) { IndiceShortName = nameArr[0]; IndiceName = nameArr[1]; } else { IndiceShortName=fieldsArr[4].replace('index','').substring(0,8); } sRes.push('
' + '' + IndiceShortName + '' + ''+fieldsArr[5]+'' + ''+percentStr+'' + '
') } document.getElementById("divIndices").innerHTML=sRes.join(''); //alert(res); } catch(e) { alert(e.description); //hideMarketWatchDiv(); } } function IndicesSelect(indicesRowId,exchangeStr,symbolStr,rowIdx) { try { if(indicesRowId!=lastIndicesRowId) { var lastObj=document.getElementById(lastIndicesRowId) if(lastObj) { lastObj.className='result'; } document.getElementById(indicesRowId).className='result on'; lastIndicesRowId=indicesRowId; var imgProgName='SChart.aspx'; if(currentMainTab.toLowerCase()=='currencies/commodities' && rowIdx< 3) { imgProgName='cchart.aspx'; } var imgObj=document.getElementById('imgIndice'); if(imgObj) { imgObj.src='http://graph.globes.co.il/chartDirector/finance/'+imgProgName+'?width=140&height=100&exchange='+exchangeStr+'&symbol='+symbolStr+'&style=w'; } else { alert('not found') } } } catch(e){alert(e.description); } } function FreeTextSearch() { try { var txtSearchObj=document.getElementById('txtSearch'); if (txtSearchObj.value=='') { alert('Please fill in text to search') txtSearchObj.setFocus(); } else { top.location = "/serveen/globes/searchResults.asp?exact=" + escape(txtSearchObj.value); } } catch(e){} } function FreeText_KeyPress(e) { var code =(window.event)? event.keyCode: e.keyCode; if(code==13) { FreeTextSearch(); return false; } return true; } function Keyword_KeyPress(e) { var code =(window.event)? event.keyCode: e.keyCode; if(code==13) { Keyword_Search(); return false; } return true; } function Keyword_Search() { try { var ddlObj=document.getElementById('ddl_more_about') /* var selectedItem = ddlObj.value; var arr=selectedItem.split('_'); var params='keep=0' if (arr[0]=='sector') { params +='&template='+arr[1]+'&indSector='+(ddlObj.selectedIndex +1)+'&indTopic=0&keySector='+ddlObj.options[ddlObj.selectedIndex].text+'&keyTopic=All' } else { params +='&template='+arr[1]+'&indSector=0&indTopic='+(ddlObj.selectedIndex -10)+'&keySector=All&keyTopic='+ddlObj.options[ddlObj.selectedIndex].text } window.location.href='/serveen/search/KeywordRedirect.asp?'+params */ var keyword=ddlObj.value; window.location.href='/serveen/globes/searchResults.asp?keyword='+escape(keyword) } catch(e){} } function viewInstrument(symbol, exchangeID, language) { var sUrl = "/Finance/Instrument/Instrument.asp?Symbol="+ symbol + "&ExchangeID="+ exchangeID + "&Lang="+ language document.location.href = sUrl }