curpage=document.location.href.substring((document.location.href.lastIndexOf('/')+1),document.location.href.length)
if (top.location == self.location) 
top.location.href="index.asp?page=" + curpage 


/*


var curlight;

var num_of_navs = 12;

// preload 
var pica = new Array();
var picb  = new Array();
for(i=1;i<=num_of_navs;i++) {
	pica[i] = new Image();
	picb[i] = new Image();
	pica[i].src = "images/nav"+i+".gif";
	picb[i].src = "images/nav"+i+"on.gif";
}
	
function over(which) {
theImage = eval("document.nav" + which);
thearrow = eval("document.arrow" + which);
if (which!=curlight) theImage.src = "images/nav"+which+"on.gif";
}

function out(which) {
theImage = eval("document.nav" + which);
thearrow = eval("document.arrow" + which);
if (which!=curlight) theImage.src = "images/nav"+which+".gif";
else theImage.src = "images/nav"+which+"on.gif"; 
}
*/
function light(which) {
//theImage = eval("document.nav" + which);
//thearrow = eval("document.arrow" + which);
//theImage.src = "images/nav"+which+"on.gif";
//curlight = which;
}






function musiccontrol() {
if(parent.music.location.href.indexOf("music.html")<0) {
	document.getElementById("music_control").innerHTML="<a href='javascript:void(0)' onClick='startmusic()'>נגן מוסיקה</a> <img src='images/notes.gif'>"
	}
else {
	document.getElementById("music_control").innerHTML="<a href='javascript:void(0)' onClick='stopmusic()'>השתק מוסיקה</a> <img src='images/notes.gif'>"
	}
}
				
function startmusic() {
parent.music.location.href="music.html";
document.getElementById("music_control").innerHTML="<a href='javascript:void(0)' onClick='stopmusic()'>השתק מוסיקה</a> <img src='images/notes.gif'>"
}

function stopmusic() {
parent.music.location.href="blank.html";
document.getElementById("music_control").innerHTML="<a href='javascript:void(0)' onClick='startmusic()'>נגן מוסיקה</a> <img src='images/notes.gif'>"
}
