function copyToClipOld(obj)
{
if(window.clipboardData.setData("Text",obj.innerText))
 alert("דוגמת הקוד הועתקה. כעת ניתן להדביק בכל עורך")
}


function copyToClip(obj)
{
	yy=document.body.scrollTop;
	document.all.clipa.value=obj.innerText;
	var rng = document.all.clipa.createTextRange();
	document.all.clipa.style.pixelTop=document.body.scrollTop;
	rng.select();
	rng.execCommand("Copy");
	document.body.scrollTop=yy;
	alert("דוגמת הקוד הועתקה. כעת ניתן להדביק בכל עורך")
}

function getTopic(topic,subtopic)
{
window.location.assign(topic+".htm#"+subtopic);
}

function openDir(obj)
{
if(obj.style.display=="none")
	{
	obj.style.display="";
	obj.parentElement.children[0].src="images/minus.gif";
	obj.parentElement.children[1].children[0].src="images/diropen.gif"
	}
else 
	{
	obj.style.display="none";
	obj.parentElement.children[0].src="images/plus.gif";
	obj.parentElement.children[1].children[0].src="images/dir.gif"
	}
}

function hilightMenu()
{
	t=location.pathname;
	st1=t.lastIndexOf("\\")+1;
	if(st1==0){st1=t.lastIndexOf("\/")+1};
	st2=t.indexOf(".");
	t=t.substring(st1,st2);
	subt=location.hash.substr(1);
	if(document.all.theMenu.firstChild.children[t-1])
	{
	  document.all.theMenu.firstChild.children[t-1].className="dirHover";
	  document.all.theMenu.firstChild.children[t-1].firstChild.src="images/diropen.gif";
	}
}

function litOn(obj)
{
if(obj.className=="dir")
obj.style.backgroundColor="#ddddee";
}
function litOff(obj)
{
obj.style.backgroundColor="";
}

xx=0
function moveIt(strID)
{
document.all(strID).style.pixelLeft--;
if (document.all(strID).style.pixelLeft<-540){document.all(strID).style.pixelLeft=200}
setTimeout("moveIt('"+strID+"')",100)
}

document.write("<div dir=rtl id=theMenu><nobr>")
topics=new Array("מושגים בסיסיים","טיפוסים וערכים","משתנים","ביטויים ואופרטורים","ביטויים / הצהרות ולולאות","פונקציות","אוביקטים","מערכים","חלונות ומסגרות","מודל אובייקט ה- Document","ארועים","טפסים","Cookies - &quot;עוגיות&quot;","אבטחה ב-Java script","JavaScript בדפדפני רשת","טכניקות ניידות","נספחים")
for(i=1;i<=topics.length;i++)
{
document.write("<div class=dir onmouseover='litOn(this)' onmouseout='litOff(this)' onclick=getTopic("+i+",110)><img src='images/dir.gif' align=absmiddle> "+topics[i-1]+"</div>")
}
document.write("<div class=dir onmouseover='litOn(this)' onmouseout='litOff(this)' onclick=getTopic(18,110)><img src='images/note.gif' align=absmiddle> אתרים נוספים על JavaScript</div>")
document.write("<div class=dir onmouseover='litOn(this)' onmouseout='litOff(this)' onclick=getTopic(19,110)><img src='images/note.gif' align=absmiddle> מפת האתר</div>")
document.write("</nobr></div>")
document.write("<div style='height:100%;border-left:2px solid #777788;background:#9999ff;text-align:center;overflow:hidden'>")

for(g=1;g<=21;g=g+3)
{
document.write("<div id=str"+(g+0)+" style='padding-right:20px;position:absolute;left:200px;top:"+(g*100-100)+"px;filter:Blur(Add=1,Direction=90,Strength=20) ;font:bold 100px Arial;color:#ADADFF'>JavaScript</div>")
document.write("<div id=str"+(g+1)+" style='padding-right:20px;position:absolute;left:100px;top:"+(g*200-100)+"px;filter:Blur(Add=1,Direction=90,Strength=20) ;font:bold 100px Arial;color:#8A8AE6'>JavaScript</div>")
document.write("<div id=str"+(g+2)+" style='padding-right:20px;position:absolute;left:0px;top:"+(g*300-100)+"px;filter: Glow(Color=#ADADFF,Strength=5) ;font:bold 100px Arial;color:#9999ff'>JavaScript</div>")
}
for(g=1;g<=21;g++){moveIt("str"+g)};
document.write("<div style='position:absolute;left:0px;top:0px'>")
for(g=0;g<30;g++){document.write("<div style='height:500px'></div><div><span class=t>5 </span><a class=toTop href=#top>לתחילת העמוד</a><span class=t> 5</span></div>")}
document.write("</div>")
document.write("</div>")
document.write("<textarea name=clipa id=clipa style='position:absolute;left:-500px;top:0px'></textarea>")

