var arrTaStock = new Array();
arrTaStock[0] = ["הבורסה בת''א", ""];
arrTaStock[1] = ["אתר המעו''ף", "/Finance/Maof/"];
arrTaStock[2] = ["ציטוטי מניות", "/finance/stocksQuotes/"];
arrTaStock[3] = ["נגזרת דולר", "/Finance/Shared/SearchResults.asp?ExchangeID=45&Feeder=0&TypeID=18&WhatType=1"];
arrTaStock[4] = ["נגזרת אירו", "/Finance/Shared/SearchResults.asp?ExchangeID=45&Feeder=0&TypeID=23&WhatType=1"];
arrTaStock[5] = ["נגזרת מעו''ף", "/Finance/Shared/SearchResults.asp?ExchangeID=45&Feeder=0&TypeID=15&WhatType=1"];
arrTaStock[6] = ["מניות ת''א 25", "/Finance/Shared/SearchResults.asp?Feeder=0&ExchangeID=45&SearchIdxInst=1&Lang=HE&WhatType=3&TypeID=3&IdxInstrumentID=979"];
arrTaStock[7] = ["מניות ת''א 100", "/Finance/Shared/SearchResults.asp?Feeder=0&ExchangeID=45&SearchIdxInst=1&Lang=HE&WhatType=3&TypeID=4&IdxInstrumentID=980"];
arrTaStock[8] = ["כתבי אופציה", "/Finance/Shared/SearchResults.asp?Feeder=0&ExchangeID=45&SearchIdxInst=0&Lang=HE&WhatType=1&TypeID=7"];
arrTaStock[9] = ["אופציות כיסוי", "/Finance/Shared/SearchResults.asp?Feeder=0&ExchangeID=45&SearchIdxInst=0&Lang=HE&WhatType=1&TypeID=42"];
var arrForeignCurr = new Array();
arrForeignCurr[0] = ["מט''ח", ""];
arrForeignCurr[1] = ["למרכז המט''ח", "/Finance/Currency/Currency.asp"];
arrForeignCurr[2] = ["שערי חליפין", "/globessites/globes/finance/currencies/main.aspx?id=1&mode=1&strtosearch="]
//arrForeignCurr[3] = ["שערים מצטלבים", "/globessites/globes/finance/currencies/main.aspx?id=2&mode=1&strtosearch="]
//arrForeignCurr[2] = ["מט''ח-שערי חליפין", "/globessites/globes/finance/currencies/default.aspx"];
var arrFounds = new Array();
arrFounds[0] = ["קרנות נאמנות", ""];
arrFounds[1] = ["לאתר הקרנות", "http://funds.globes.co.il/funds/default.asp"];
arrFounds[2] = ["רשימת קרנות", "/Finance/Shared/SearchResults.asp?Lang=HE&Field=3&Direction=1&WhatType=1&TypeID=16&Feeder=0&strToSearch=א"];
var arrForeignStock = new Array();
arrForeignStock[0] = ["בורסות בחו''ל", ""];
arrForeignStock[1] = ["מניות נאסד\"ק 100", "/Finance/Shared/SearchResults.asp?Feeder=1&SearchIdxInst=1&Lang=HE&WhatType=3&TypeID=8&IdxInstrumentID=537926"];
arrForeignStock[2] = ["מניות S&P 500", "/Finance/Shared/SearchResults.asp?Feeder=1&SearchIdxInst=1&Lang=HE&WhatType=3&TypeID=10&IdxInstrumentID=373853"];
//arrForeignStock[1] = ["וול סטריט", "/Finance/Shared/SearchResults.asp?Feeder=1&SearchIdxInst=1&TypeID=15&WhatType=3"];
arrForeignStock[3] = ["מניות דאו ג'ונס", "/Finance/Shared/SearchResults.asp?Feeder=1&SearchIdxInst=1&Lang=HE&WhatType=3&TypeID=9&IdxInstrumentID=66707"];
arrForeignStock[4] = ["מניות פוטסי 300", "/Finance/Shared/SearchResults.asp?Feeder=1&SearchIdxInst=1&Lang=HE&WhatType=3&TypeID=16&IdxInstrumentID=539524"];
arrForeignStock[5] = ["מניות ניקיי 225", "/Finance/Shared/SearchResults.asp?Feeder=1&SearchIdxInst=1&Lang=HE&WhatType=3&TypeID=17&IdxInstrumentID=539271"];
arrForeignStock[6] = ["מניות הנג סנג", "/Finance/Shared/SearchResults.asp?Feeder=1&SearchIdxInst=1&Lang=HE&WhatType=3&TypeID=21&IdxInstrumentID=539267"];
arrForeignStock[7] = ["מניות סנסקס", "/Finance/Shared/SearchResults.asp?Feeder=1&SearchIdxInst=1&Lang=HE&WhatType=3&TypeID=22&IdxInstrumentID=539503"];
arrForeignStock[8] = ["מניות S&P/ASX 50", "/Finance/Shared/SearchResults.asp?Feeder=1&SearchIdxInst=1&Lang=HE&WhatType=3&TypeID=24&IdxInstrumentID=540087"];
arrForeignStock[9] = ["ישראליות בניו יורק", "/Finance/Shared/SearchResults.asp?Feeder=1&SearchIdxInst=1&Lang=HE&WhatType=3&TypeID=12&IdxInstrumentID="];
arrForeignStock[10] = ["ישראליות באירופה", "/Finance/Shared/SearchResults.asp?Feeder=1&WhatType=3&TypeID=14&SearchIdxInst=0&Lang=HE&IdxInstrumentID="];
var arrArbitrage = new Array();
arrArbitrage[0] = ["מניות ארביטרז'", ""];
arrArbitrage[1] = ["תל אביב - ניו יורק", "/GlobesSites/Globes/finance/arbitrage/arbitrage.aspx"];
var arrBarometer = new Array();
arrBarometer[0] = ["הברומטר", ""];
arrBarometer[1] = ["איתור מגמות לפי נפח פעילות", "/Finance/ActivityPages/Active_1_45_0.htm"];
var arrAnalystAdvice = new Array();
arrAnalystAdvice[0] = ["המלצות אנליסטים", ""];
arrAnalystAdvice[1] = ["טבלת המלצות אנליסטים", "/Finance/Analysts/SearchRecommend.asp"];
var arrCompanies = new Array();
arrCompanies[0] = ["נתוני חברות", ""];
arrCompanies[1] = ["תקצירי דו''חות", "/Finance/market_data/FinancialReports.asp?lang=he"];
arrCompanies[2] = ["דו''חות S&P", "http://www.standardpoors.co.il/default.asp?pageName=HOME+PAGE&pageID=2"];
arrCompanies[3] = ["מידע עסקי D&B", "http://dbrisk.dundb.co.il/ns/ns_frames.asp?origin=3"];
var arrDebenture = new Array();
arrDebenture[0] = ["אג''ח", ""];
arrDebenture[1] = ["אתר אפיקים סולידיים", "/Finance/bonds/"];
arrDebenture[2] = ["אג''ח להמרה", "/Finance/Shared/SearchResults.asp?Feeder=0&ExchangeID=45&SearchIdxInst=0&Lang=HE&WhatType=1&TypeID=8&IdxInstrumentID="];
arrDebenture[3] = ["אגרות חוב", "/Finance/Shared/SearchResults.asp?Feeder=0&ExchangeID=45&SearchIdxInst=0&Lang=HE&WhatType=1&TypeID=24&IdxInstrumentID="];
arrDebenture[4] = ["מ''קמים", "/Finance/Shared/SearchResults.asp?Feeder=0&ExchangeID=45&SearchIdxInst=1&Lang=HE&WhatType=1&TypeID=17&IdxInstrumentID="];
arrDebenture[5] = ["נגזרת שחר", "/Finance/Shared/SearchResults.asp?Feeder=0&ExchangeID=45&SearchIdxInst=1&Lang=HE&WhatType=1&TypeID=41&IdxInstrumentID="];
var arrETF = new Array();
arrETF[0] = ["תעודות סל ו-ETF´s ", ""];
arrETF[1] = ["אתר תעודות סל - ו-ETF´s", "/Finance/etf/"];
arrETF[2] = ["רשימת תעודות סל ו-ETF´s", "/globessites/globes/finance/instruments/search.aspx"];
var arrIndexes = new Array();
arrIndexes[0] = ["מדדים", ""];
arrIndexes[1] = ["מדדי המחירים", "/Finance/IndexPrice/begin.asp?lang=he"];
arrIndexes[2] = ["מדדי המניות", "/Finance/Shared/SearchResults.asp?ExchangeID=45&Feeder=0&TypeID=11&WhatType=1"];
arrIndexes[3] = ["מדדי הענפים", "/Finance/Shared/SearchResults.asp?ExchangeID=45&Feeder=0&TypeID=38&WhatType=1"];
arrIndexes[4] = ["מדדי אג''ח", "/Finance/Shared/SearchResults.asp?ExchangeID=45&Feeder=0&TypeID=37&WhatType=1"];
var arrFutures = new Array();
arrFutures[0] = ["חוזים עתידיים", ""];
arrFutures[1] = ["אתר חוזים עתידיים", "/Finance/Futures/"];
arrFutures[2] = ["רשימת חוזים עתידיים", "/Finance/Shared/SearchResults.asp?Feeder=1&ExchangeID=72&SearchIdxInst=0&Lang=HE&WhatType=2&TypeID=62&IdxInstrumentID="];
var arrEndOfDay = new Array();
arrEndOfDay[0] = ["סוף יום המסחר בת''א", ""];
arrEndOfDay[1] = ["ריכוז תוצאות המסחר במניות", "/Finance/Shared/ConcentrationData.asp?TableType=1&lang=HE"];
arrEndOfDay[2] = ["ריכוז תוצאות המסחר באג''ח", "/Finance/Shared/ConcentrationData.asp?TableType=2&lang=HE"];
arrEndOfDay[3] = ["מניות בולטות במדד ת''א 100", "/Finance/Shared/EndDayData.asp?TableType=1&lang=HE"];
arrEndOfDay[4] = ["מניות בולטות אחרות בת''א", "/Finance/Shared/EndDayData.asp?TableType=2&lang=HE"];
arrEndOfDay[5] = ["אופציות בולטות", "/Finance/Shared/EndDayData.asp?TableType=3&lang=HE"];
arrEndOfDay[6] = ["מחזורים בולטים בת''א 100", "/Finance/Shared/EndDayData.asp?TableType=4&lang=HE"];
arrEndOfDay[7] = ["מחזורים בולטים נוספים", "/Finance/Shared/EndDayData.asp?TableType=5&lang=HE"];
arrEndOfDay[8] = ["תשואות דיבידנד בולטות", "/Finance/Shared/EndDayData.asp?TableType=6&lang=HE"];
var sAlign = "right";
var sFilter = "";
var lblButton1 = "פתח סרגל ניווט";
var lblButton2 = "סגור סרגל ניווט";
var imgButton = "Arrow_Orange_Small_H.gif"
function buildMenuUnit(arr, bShowTitle, menuWidth, emptyRows, menuHeight) {
var iMenuWidth = 172;
var iMenuHeight = 16;
var isShowTitle = true;
var iEmptyRows = 0;
if(""+menuWidth != "undefined") {
iMenuWidth = menuWidth;
}
if(""+menuHeight != "undefined") {
iMenuHeight = menuHeight;
}
if(""+bShowTitle != "undefined") {
isShowTitle = bShowTitle;
}
if(""+emptyRows != "undefined") {
iEmptyRows = emptyRows;
}
var sMenuUnit = "
";
if(isShowTitle) {
sMenuUnit += "";
}
for(i = 1; i < arr.length; i++) {
var sLink = "'" + arr[i][1] + "'";
sLink += (sLink.indexOf("https://") != -1) ? " target='_blank' " : "";
sMenuUnit += "
";
}
if(iEmptyRows > 0) {
for(var i = 0; i < iEmptyRows; i++) {
sMenuUnit += "
";
}
}
return sMenuUnit += "
"
}
function rollOver(Button, IsOn) {
(IsOn) ? Button.style.backgroundColor = "#E5E5E5" : Button.style.backgroundColor = "#EFEFEF";
bIsInsideMenu = true;
}
var bIsMenuOpened = false;
var bIsInsideMenu = false;
function showDropMenu(handle) {
var oHMenu = document.getElementById("hMenu");
var iLeftOffset = (sLang == 'HE') ? 116 : 0
if(!bIsMenuOpened) {
hideDropDowns(true);
oHMenu.style.display = "block";
oHMenu.style.top = getY(handle) + 34;
oHMenu.style.left = getX(handle) + iLeftOffset + 1;
handle.innerHTML = ""+lblButton2+""
bIsMenuOpened = true;
bIsInsideMenu = true;
} else {
hideDropDowns(false);
oHMenu.style.display = "none";
oHMenu.style.top = 0;
oHMenu.style.left = 0;
handle.innerHTML = ""+lblButton1+""
bIsMenuOpened = false;
bIsInsideMenu = false;
}
}
function closeDropMenu() {
if(bIsMenuOpened == true && bIsInsideMenu == false) {
showDropMenu(document.getElementById("menuButton"));
}
}
function hideDropDowns(bHide) {
var colSelects = document.getElementsByTagName("select");
for(var i = 1; i < colSelects.length; i++) {
(bHide) ? colSelects[i].style.visibility = "hidden" : colSelects[i].style.visibility = "visible";
}
}
function drawSideMenu(sLang) {
var sDelimiter = "";
var sBanner = "dw(g.almond.iframe(322,170,43))" + "script>
";
if(sLang == "HE") {
var sMenu = buildMenuUnit(arrTaStock) + sDelimiter + buildMenuUnit(arrForeignCurr) + sDelimiter +
buildMenuUnit(arrFounds) + sDelimiter + buildMenuUnit(arrForeignStock) + sDelimiter + sBanner+
buildMenuUnit(arrArbitrage) + sDelimiter + buildMenuUnit(arrBarometer) + sDelimiter +
buildMenuUnit(arrAnalystAdvice) + sDelimiter + buildMenuUnit(arrCompanies) + sDelimiter +
buildMenuUnit(arrDebenture) + sDelimiter + buildMenuUnit(arrFutures) +
sDelimiter + buildMenuUnit(arrETF) + sDelimiter +
buildMenuUnit(arrIndexes) + sDelimiter + buildMenuUnit(arrEndOfDay)
} else {
var sMenu = buildMenuUnit(arrStocks) + sDelimiter + buildMenuUnit(arrWarrants) + sDelimiter +
buildMenuUnit(arrCurrency) + sDelimiter + buildMenuUnit(arrMutualFunds) + sDelimiter +
buildMenuUnit(arrMarketReports) + sDelimiter + buildMenuUnit(arrIndices)
}
return sMenu;
}
function buildOptionUnit(arr) {
var sMenuUnit = "";
sMenuUnit += "";
for(i = 1; i < arr.length; i++) {
sMenuUnit += "";
}
return sMenuUnit;
}
function drawSelectMenu(w, bShowMainTitle) {
var isShowMainTitle = true;
if(""+bShowMainTitle != "undefined") {
isShowMainTitle = bShowMainTitle;
}
var sMenu = "";
}
function viewPage(oOption) {
var sURL = oOption.value
if(sURL == -1 || sURL == "") {return}
if((sURL.indexOf("http://") != -1)||(sURL.indexOf("/Indications/default.asp") != -1)) {
window.open(sURL, "");
} else {top.location.href = sURL}
document.getElementById("sb_combo").selectedIndex = 0
}
function getX(source) {
var X = 0;
var P = source.offsetParent;
while(P != null) {
X += P.offsetLeft;
P = P.offsetParent;
}
return X;
}
function getY(source) {
var Y = 1;
var P = source.offsetParent;
while (P != null) {
Y += P.offsetTop;
P = P.offsetParent;
}
return Y;
}
// Populate links and labels to sections Arrays
function buildLinksObject(p1, p2, p3, p4) {
this.Label_HE = p1;
this.Link_HE = p2;
this.Label_EN = p3;
this.Link_EN = p4;
}
function getOBJ(obj) {
var str;
str = obj +"";
obj = eval(obj)
var i;
var msg = "";
msg = "";
for(i in obj) {
msg += " " + i + " | " ;
try{msg += " " + eval("obj." + i ) + " | " }
catch(e){msg += " | " }
msg += "
" ;
}
msg += "
"
var win = window.open("about:blank","","")
msg = "
"+str+"
" + msg
win.document.write( msg);
return;
}