    var cnt = 1;
	function selidd(val,valuetoshow,targethdn,targetshow,frm){
		if(frm=="comFrm"){
			var author = valuetoshow.split(";");
			val += "?authorName="+unescape(author[1]);
		}
		eval("document."+frm+"."+targethdn+".value=val");
		targetshow.innerHTML=valuetoshow+"&nbsp;";
		closeall();
	}
	function getAbsolute(oNode){
		var k = new Array(2);
 	 	var oCurrentNode=oNode;
   		xpos=-19;
		ypos=0;
   		while(oCurrentNode.tagName!="BODY"){
    		xpos+=oCurrentNode.offsetLeft;
			ypos+=oCurrentNode.offsetTop;
    		oCurrentNode=oCurrentNode.offsetParent;
   		}
		ypos = ypos + 20;
		xpos = xpos + 19;
		k[0] = xpos;
		k[1] = ypos;			
  		return k;
	}
	var selopen = false;
	var selid;
	function closeall(){if(selopen){selid.style.display='none';selopen=false}}
	function dropDown(x,obj,foc){	
	  if(selopen)
	  		closeall()
	  else{
	  	var curobj = obj;
	  	var obj1 = x;
	 	curobj.style.left = getAbsolute(obj1)[0];
	 	curobj.style.top = getAbsolute(obj1)[1];
		 
		if(selopen){curobj.style.display = 'none';}
	 	else{curobj.style.display = '';}
		 	selid = obj;
		  	selopen = !selopen;
		 }
		if(foc=="com")
	 		document.all.comFocusTd.focus();
		else
			document.all.focusTd.focus();
	}
	function mouseDown(e) {
        if (event.button!=1 ) return true ;
		if(event.srcElement.tagName!='BODY' && event.srcElement.tagName!='BUTTON'&& event.srcElement.tagName!='DIV'){
			z=1;
			var k = event.srcElement.offsetParent;
			while(z<2){
				k = k.offsetParent;
				tmp = k.tagName;
				z++
			}
			if(tmp!='DIV'){closeall()}
		}else if(event.srcElement.tagName=='BODY')
			closeall();
		return true;
		
	}
	//document.onmousedown = mouseDown;	
	var divHeight = "";
	function initFinCombo(layer){
		if (window.finToolsDropDown){
			var str = '<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%">'
			var links = new Array();
			links[0] = new Array('כלים פיננסיים','#');
			links[1] = new Array('מבט לשווקים','http://finance.themarker.com/f/marketView.jhtml');
			links[2] = new Array('שערים יציגים','http://finance.themarker.com/f/home/pop4currenciesMarker.jhtml');
			links[3] = new Array('עולה-יורד ת"א','http://finance.themarker.com');
			links[4] = new Array('פעילות ת"א','http://finance.themarker.com');
			links[5] = new Array('מסחר בדולר','http://finance.themarker.com/f/currency/dollarTrade.jhtml');
			links[6] = new Array('תיק מניות אישי','http://finance.themarker.com/site/rg/showFiles1.jhtml');
			links[7] = new Array('נתוח טכני מט\"ח','/ibo/droplet/forex/bursaGraph.jhtml');
			links[8] = new Array('אנליסטים','http://finance.themarker.com/f/analyst.jhtml');
			links[9] = new Array('מערכת הגרפים','http://finance.themarker.com/f/compareGraph.jhtml');
			links[10] = new Array('פורום הבורסה','http://finance.themarker.com/site/messages/showAllMessages.jhtml');
			links[11] = new Array('ישראליות NY','http://finance.themarker.com/f/wsDetails.jhtml?stockType=ny');
			links[12] = new Array('ישראליות EUR','http://finance.themarker.com/f/wsDetails.jhtml?stockType=Europe');
			links[13] = new Array('מניות מעוף','http://finance.themarker.com/f/telTech.jhtml?indexCode=1230');
			links[14] = new Array('אופציות מעוף','http://finance.themarker.com/f/maofList.jhtml?Rep=2');
			links[15] = new Array('אופ\' שקל-ד','http://finance.themarker.com/f/maofList.jhtml?Rep=1');
			links[16] = new Array('מרכז הנפקות','http://www.leader.co.il/aonline/');
			links[17] = new Array('ארביטראז','http://finance.themarker.com/f/arbitrage.jhtml?TaNy=yes');
			links[18] = new Array('הודעות בורסה','http://www.themarker.com/tmc/news/bursaMsg/bursaLogin.jhtml');
			links[19] = new Array('קרנות נאמנות','http://finance.themarker.com/f/funds.jhtml?navBar=funds');
			links[20] = new Array('פרופיל קרן','http://finance.themarker.com/site/gen/chooseFund.jhtml?show=7&section=funds');
			links[21] = new Array('שערי קרנות','http://finance.themarker.com/f/fundsDetails.jhtml');
			links[22] = new Array('איגרות חוב','http://finance.themarker.com/f/bonds.jhtml?navBar=bonds');
			links[23] = new Array('דוחות תשואה','http://finance.themarker.com/site/bonds/returnReports.jhtml');
			links[24] = new Array("מחשבון מדד-ד'",'http://finance.themarker.com/site/bonds/calculator.jhtml');
			links[25] = new Array('משחק השקעות','http://finance.themarker.com/f/gameLogin.jhtml');
			links[26] = new Array('מתפרצות','http://finance.themarker.com/site/market/popUpMsg.jhtml');
			links[27] = new Array('ניתוח עסקי','http://finance.themarker.com/site/comp/businessAnalysis.jhtml');
			links[28] = new Array('דוח דירקטוריון','http://finance.themarker.com/site/gen/chooseFund.jhtml?show=5&section=comp');
			links[29] = new Array('דוח פיננסי','http://finance.themarker.com/site/gen/chooseFund.jhtml?show=5&section=comp');
			links[30] = new Array('תמצית חברה','http://finance.themarker.com/site/gen/chooseFund.jhtml?show=1&section=comp');
			links[31] = new Array('מדריך למשקיע','http://finance.themarker.com/site/gen/investGuid.jhtml');
			for(i=0;i<links.length;i++){
				var cobj = links[i];
				str += '<tr><td bgcolor="#ffffff" style="font-size:12px;font-family:Arial;color:#000000;cursor:default" onclick="selidd(\''+ cobj[1] +'\',this.innerHTML,\'finTools\',finToolsDiv,\'finToolsFrm\')" onmouseover="this.style.backgroundColor=\'#D1FA80\'" onmouseout="this.style.backgroundColor=\'#ffffff\'" height="16" align="right">&nbsp;'+cobj[0]+'</td></tr>';
			}
			str += '</table>';
			finToolsDropDown.innerHTML = str;
			if (links.length<6){
				var subtract = links.length*2;
				finToolsDropDown.style.height = (links.length * 19)-subtract+"";
			}
			setTimeout('initFinCombo',100);
			initComCombo();
		}
	}	
	function initComCombo(){
		if (window.comDropDown){
			var str = '<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%">'
			var links = new Array();
			links[0] = new Array('פרשנים נוספים','#');
			links[1] = new Array('אבי אלתר','/tmc/com/allCom.jhtml');
			links[2] = new Array('אדם רויטר','/tmc/com/allCom.jhtml');
			links[3] = new Array('אהוד אלפסי','/tmc/com/allCom.jhtml');
			links[4] = new Array('אורה קורן','/tmc/com/allCom.jhtml');
			links[5] = new Array('אורי רוזן','/tmc/com/allCom.jhtml');
			links[6] = new Array('אורי רונן','/tmc/com/allCom.jhtml');
			links[7] = new Array('איילה צורף','/tmc/com/allCom.jhtml');
			links[8] = new Array('איתן אבריאל','http://avriel.themarker.com/tmc/com/allCom.jhtml');
			links[9] = new Array('אלי דניאל','/tmc/com/allCom.jhtml');
			links[10] = new Array('אלי מור','/tmc/com/allCom.jhtml');
			links[11] = new Array('אמיר הלמר','/tmc/com/allCom.jhtml');
			links[12] = new Array('אמיר טייג','/tmc/com/allCom.jhtml');
			links[13] = new Array('אסף ברגרפרוינד','/tmc/com/allCom.jhtml');
			links[14] = new Array("ג'יימס ג.קריימר",'/tmc/com/allCom.jhtml');
			links[15] = new Array('גדעון בן-נון','/tmc/com/allCom.jhtml');
			links[16] = new Array('גדעון וינשטוק','/tmc/com/allCom.jhtml');
			links[17] = new Array('גואל פינטו','/tmc/com/allCom.jhtml');
			links[18] = new Array('גיא רולניק','http://rolnik.themarker.com/tmc/com/allCom.jhtml');
			links[19] = new Array('גילי כהן','/tmc/com/allCom.jhtml');
			links[20] = new Array('גינגי פרידמן','/tmc/com/allCom.jhtml');
			links[21] = new Array('גלית ימיני','/tmc/com/allCom.jhtml');
			links[22] = new Array('גתית פנקס','/tmc/com/allCom.jhtml');
			links[23] = new Array('דוד אלמגור','/tmc/com/allCom.jhtml');
			links[24] = new Array('דוד שי','/tmc/com/allCom.jhtml');
			links[25] = new Array('דורון צור','http://zur.themarker.com/tmc/com/allCom.jhtml');
			links[26] = new Array('דפנה מאור','/tmc/com/allCom.jhtml');
			links[27] = new Array('הדר חורש','/tmc/com/allCom.jhtml');
			links[28] = new Array('זאב הולצמן','/tmc/com/allCom.jhtml');
			links[29] = new Array('זוהר בלומנקרנץ','/tmc/com/allCom.jhtml');
			links[30] = new Array('זיו מאור','/tmc/com/allCom.jhtml');
			links[31] = new Array('חיים ביאור','/tmc/com/allCom.jhtml');
			links[32] = new Array('טל שניידר','/tmc/com/allCom.jhtml');
			links[33] = new Array('יובל דרור','/tmc/com/allCom.jhtml');
			links[34] = new Array('יובל קרניאל','/tmc/com/allCom.jhtml');
			links[35] = new Array('יוחאי רפאלי','/tmc/com/allCom.jhtml');
			links[36] = new Array('יורם גביזון','/tmc/com/allCom.jhtml');
			//links[34] = new Array('יניב לוי','/tmc/com/allCom.jhtml');
			links[37] = new Array('יעקב עמיהוד','/tmc/com/allCom.jhtml');
			links[38] = new Array('יעקב צלאל','/tmc/com/allCom.jhtml');		
			links[39] = new Array('ירון הרמן','/tmc/com/allCom.jhtml');
			links[40] = new Array('ירון שקדי','/tmc/com/allCom.jhtml');
			links[41] = new Array('ליאור פיק','/tmc/com/allCom.jhtml');
			links[42] = new Array('מוטי בסוק','/tmc/com/allCom.jhtml');		
			links[43] = new Array('מומי דהן','/tmc/com/allCom.jhtml');	
			links[44] = new Array('מיכל סבו-וינברגר','/tmc/com/allCom.jhtml');	
			links[45] = new Array('מירב ארלוזורוב','http://arlozorov.themarker.com/tmc/com/allCom.jhtml');	
			links[46] = new Array('נדב הכהן','/tmc/com/allCom.jhtml');	
			links[47] = new Array('נחמיה שטרסלר','http://shtrasler.themarker.com/tmc/com/allCom.jhtml');	
			links[48] = new Array('ניצן כהן','/tmc/com/allCom.jhtml');	
			links[49] = new Array('נתן ליפסון','/tmc/com/allCom.jhtml');	
			links[50] = new Array('סופי שולמן','/tmc/com/allCom.jhtml');	
			links[51] = new Array('סמי פרץ','http://peretz.themarker.com/tmc/com/allCom.jhtml');	
			links[52] = new Array('עודד חרמוני','/tmc/com/allCom.jhtml');	
			links[53] = new Array('עוז בן-עמרם','/tmc/com/allCom.jhtml');	
			links[54] = new Array('עידו אלון','/tmc/com/allCom.jhtml');	
			links[55] = new Array('עינב בן יהודה','/tmc/com/allCom.jhtml');	
			links[56] = new Array('עמי גינזבורג','http://ginzburg.themarker.com/tmc/com/allCom.jhtml');	
			links[57] = new Array('ערן גבאי','/tmc/com/allCom.jhtml');	
			links[58] = new Array('צבי הראל','/tmc/com/allCom.jhtml');	
			links[59] = new Array('צבי זרחיה','/tmc/com/allCom.jhtml');	
			links[60] = new Array('צורי דאר','/tmc/com/allCom.jhtml');	
			links[61] = new Array('קובי ברקי','/tmc/com/allCom.jhtml');	
			links[62] = new Array('רוני קורן-דינר','/tmc/com/allCom.jhtml');	
			links[63] = new Array('רותם שטרקמן','http://shtarkman.themarker.com/tmc/com/allCom.jhtml');	
			links[64] = new Array('רמי אורדן','/tmc/com/allCom.jhtml');	
			links[65] = new Array('רמי אריה','/tmc/com/allCom.jhtml');	
			links[66] = new Array('רמי רוזן','/tmc/com/allCom.jhtml');	
			links[67] = new Array('רפי פרסיץ','/tmc/com/allCom.jhtml');	
			links[68] = new Array('שגיא חמץ','/tmc/com/allCom.jhtml');	
			links[69] = new Array('שירלי יום-טוב','/tmc/com/allCom.jhtml');	
			links[70] = new Array('שמואל מרחב','http://merhav.themarker.com/tmc/com/allCom.jhtml');
			links[71] = new Array('שלומי גולובינסקי','/tmc/com/allCom.jhtml');
			
			for(i=0;i<links.length;i++){
				var cobj = links[i];
				str += '<tr><td bgcolor="#ffffff" style="font-size:12px;font-family:Arial;color:#000000;cursor:default" onclick="selidd(\''+ cobj[1]+'\',this.innerHTML,\'com\',comDiv,\'comFrm\')" onmouseover="this.style.backgroundColor=\'#D1FA80\'" onmouseout="this.style.backgroundColor=\'#ffffff\'" height="16" align="right">&nbsp;'+cobj[0]+'</td></tr>';
			}
			str += '</table>';
			comDropDown.innerHTML = str;
			if (links.length<6){
				var subtract = links.length*2;
				comDropDown.style.height = (links.length * 19)-subtract+"";
			}
			setTimeout('initComCombo',100);
		}
	}	
	function initHpDropDown()
	{
		var selectObj = document.getElementById("opinionsDropDown");
		if (selectObj){
			var links = new Array();
			links[0] = new Array('פרשנים נוספים','#');
			links[1] = new Array('אבי אלתר','/tmc/com/allCom.jhtml');
			links[2] = new Array('אדם רויטר','/tmc/com/allCom.jhtml');
			links[3] = new Array('אהוד אלפסי','/tmc/com/allCom.jhtml');
			links[4] = new Array('אורה קורן','/tmc/com/allCom.jhtml');
			links[5] = new Array('אורי רוזן','/tmc/com/allCom.jhtml');
			links[6] = new Array('אורי רונן','/tmc/com/allCom.jhtml');
			links[7] = new Array('איילה צורף','/tmc/com/allCom.jhtml');
			links[8] = new Array('איתן אבריאל','http://avriel.themarker.com/tmc/com/allCom.jhtml');
			links[9] = new Array('אלי דניאל','/tmc/com/allCom.jhtml');
			links[10] = new Array('אלי מור','/tmc/com/allCom.jhtml');
			links[11] = new Array('אמיר הלמר','/tmc/com/allCom.jhtml');
			links[12] = new Array('אמיר טייג','/tmc/com/allCom.jhtml');
			links[13] = new Array('אסף ברגרפרוינד','/tmc/com/allCom.jhtml');
			links[14] = new Array("ג'יימס ג.קריימר",'/tmc/com/allCom.jhtml');
			links[15] = new Array('גדעון בן-נון','/tmc/com/allCom.jhtml');
			links[16] = new Array('גדעון וינשטוק','/tmc/com/allCom.jhtml');
			links[17] = new Array('גואל פינטו','/tmc/com/allCom.jhtml');
			links[18] = new Array('גיא רולניק','http://rolnik.themarker.com/tmc/com/allCom.jhtml');
			links[19] = new Array('גילי כהן','/tmc/com/allCom.jhtml');
			links[20] = new Array('גינגי פרידמן','/tmc/com/allCom.jhtml');
			links[21] = new Array('גלית ימיני','/tmc/com/allCom.jhtml');
			links[22] = new Array('גתית פנקס','/tmc/com/allCom.jhtml');
			links[23] = new Array('דוד אלמגור','/tmc/com/allCom.jhtml');
			links[24] = new Array('דוד שי','/tmc/com/allCom.jhtml');
			links[25] = new Array('דורון צור','http://zur.themarker.com/tmc/com/allCom.jhtml');
			links[26] = new Array('דפנה מאור','/tmc/com/allCom.jhtml');
			links[27] = new Array('הדר חורש','/tmc/com/allCom.jhtml');
			links[28] = new Array('זאב הולצמן','/tmc/com/allCom.jhtml');
			links[29] = new Array('זוהר בלומנקרנץ','/tmc/com/allCom.jhtml');
			links[30] = new Array('זיו מאור','/tmc/com/allCom.jhtml');
			links[31] = new Array('חיים ביאור','/tmc/com/allCom.jhtml');
			links[32] = new Array('טל שניידר','/tmc/com/allCom.jhtml');
			links[33] = new Array('יובל דרור','/tmc/com/allCom.jhtml');
			links[34] = new Array('יובל קרניאל','/tmc/com/allCom.jhtml');
			links[35] = new Array('יוחאי רפאלי','/tmc/com/allCom.jhtml');
			links[36] = new Array('יורם גביזון','/tmc/com/allCom.jhtml');
			//links[34] = new Array('יניב לוי','/tmc/com/allCom.jhtml');
			links[37] = new Array('יעקב עמיהוד','/tmc/com/allCom.jhtml');
			links[38] = new Array('יעקב צלאל','/tmc/com/allCom.jhtml');		
			links[39] = new Array('ירון הרמן','/tmc/com/allCom.jhtml');
			links[40] = new Array('ירון שקדי','/tmc/com/allCom.jhtml');
			links[41] = new Array('ליאור פיק','/tmc/com/allCom.jhtml');
			links[42] = new Array('מוטי בסוק','/tmc/com/allCom.jhtml');		
			links[43] = new Array('מומי דהן','/tmc/com/allCom.jhtml');	
			links[44] = new Array('מיכל סבו-וינברגר','/tmc/com/allCom.jhtml');	
			links[45] = new Array('מירב ארלוזורוב','http://arlozorov.themarker.com/tmc/com/allCom.jhtml');	
			links[46] = new Array('נדב הכהן','/tmc/com/allCom.jhtml');	
			links[47] = new Array('נחמיה שטרסלר','http://shtrasler.themarker.com/tmc/com/allCom.jhtml');	
			links[48] = new Array('ניצן כהן','/tmc/com/allCom.jhtml');	
			links[49] = new Array('נתן ליפסון','/tmc/com/allCom.jhtml');	
			links[50] = new Array('סופי שולמן','/tmc/com/allCom.jhtml');	
			links[51] = new Array('סמי פרץ','http://peretz.themarker.com/tmc/com/allCom.jhtml');	
			links[52] = new Array('עודד חרמוני','/tmc/com/allCom.jhtml');	
			links[53] = new Array('עוז בן-עמרם','/tmc/com/allCom.jhtml');	
			links[54] = new Array('עידו אלון','/tmc/com/allCom.jhtml');	
			links[55] = new Array('עינב בן יהודה','/tmc/com/allCom.jhtml');	
			links[56] = new Array('עמי גינזבורג','http://ginzburg.themarker.com/tmc/com/allCom.jhtml');	
			links[57] = new Array('ערן גבאי','/tmc/com/allCom.jhtml');	
			links[58] = new Array('צבי הראל','/tmc/com/allCom.jhtml');	
			links[59] = new Array('צבי זרחיה','/tmc/com/allCom.jhtml');	
			links[60] = new Array('צורי דאר','/tmc/com/allCom.jhtml');	
			links[61] = new Array('קובי ברקי','/tmc/com/allCom.jhtml');	
			links[62] = new Array('רוני קורן-דינר','/tmc/com/allCom.jhtml');	
			links[63] = new Array('רותם שטרקמן','http://shtarkman.themarker.com/tmc/com/allCom.jhtml');	
			links[64] = new Array('רמי אורדן','/tmc/com/allCom.jhtml');	
			links[65] = new Array('רמי אריה','/tmc/com/allCom.jhtml');	
			links[66] = new Array('רמי רוזן','/tmc/com/allCom.jhtml');	
			links[67] = new Array('רפי פרסיץ','/tmc/com/allCom.jhtml');	
			links[68] = new Array('שגיא חמץ','/tmc/com/allCom.jhtml');	
			links[69] = new Array('שירלי יום-טוב','/tmc/com/allCom.jhtml');	
			links[70] = new Array('שמואל מרחב','http://merhav.themarker.com/tmc/com/allCom.jhtml');
			links[71] = new Array('שלומי גולובינסקי','/tmc/com/allCom.jhtml');
			
			
			selectObj.options.length=0;
			selectObj.options.length=links.length;
			for(i=0;i<links.length;i++)
			{
				var optionObj = links[i];
				selectObj.options[i].text=optionObj[0];
				selectObj.options[i].value=optionObj[1];
			}
		}
	}
	function redirectTo(val){
			if(val!='0' && val.indexOf('#')==-1)
				top.location.href=val;
			else
				alert('נא בחר באחת האפשרויות')
	}
	function goToCommentsUrl(selectObj)
	{
			if(selectObj.value !="#")
			{
				var val=selectObj.value;
				var author = selectObj.options[selectObj.selectedIndex].text;
				val += "?authorName="+unescape(author);
				top.location.href=val;
			}
			else
				alert('נא בחר באחת האפשרויות')
	}
	function init(layer){
			if (layer=="market" || layer=="walls")
				setTimeout("initFinCombo('"+layer+"')",100);
			else if (layer =="hp")
				 setTimeout("initHpDropDown()",100);
			else if(layer != "people" && layer !="specialCoverage" && layer !="specialCoverage2" && layer !="editorial" && layer !="pais") setTimeout("initComCombo()",100);
	}