if (location.protocol == 'http:') {location.href = location.href.replace(/^http:/i,'https:')} 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" ] ]; 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") + '">' + 'script>') 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 '