var curlight;

var num_of_navs = 11;

// 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/navs/nav"+i+".gif";
	picb[i].src = "../images/navs/nav"+i+"on.gif";
}
	
function over(which) {
theImage = eval("document.nav" + which);
thearrow = eval("document.arrow" + which);
if (which!=curlight) {
	theImage.src = "../images/navs/nav"+which+"on.gif";
	if (which!=num_of_navs) thearrow.src = "../images/toparrowon.gif";
	}
}

function out(which) {
theImage = eval("document.nav" + which);
thearrow = eval("document.arrow" + which);
if (which!=curlight) {
	theImage.src = "../images/navs/nav"+which+".gif";
	if (which!=num_of_navs) thearrow.src = "../images/toparrow.gif";
	}
else {
	theImage.src = "../images/navs/nav"+which+"on.gif"; 
	if (which!=num_of_navs) thearrow.src = "../images/toparrowon.gif";
	}
}

function light(which) {
theImage = eval("document.nav" + which);
thearrow = eval("document.arrow" + which);
theImage.src = "../images/navs/nav"+which+"on.gif";
if (which!=num_of_navs) thearrow.src = "../images/toparrowon.gif";
curlight = which;
}






function playFile(which) {
window.open("../general/player.asp?file="+which,"CaspiPlayer","width=320,height=240,top=20,left=20,resizable=yes");
}

function playMp3(which) {
window.open("../general/playerMp3.asp?file="+which,"CaspiPlayerMp3","width=320,height=240,top=20,left=20,resizable=yes");
}

function openVideo(which) {
window.open("../general/videoPlayer.asp?file="+which,"videoPlayer","width=525,height=500,top=50,left=50,resizable=no");
}


function openPlayer() {
window.open("../mp3player/player.html","mp3player","width=284,height=423,top=200,left=200,resizable=no");
}



function showCollabDiv(which) {
theDiv = eval("document.getElementById('" + which + "').style")

if (theDiv.display=="none") {
//	for (i=1;i<7;i++) {
//		otherDiv = eval("document.getElementById('collab" + i + "').style")
//		otherDiv.display="none"
//		}
	theDiv.display="block"
	}
else {
	theDiv.display="none"
	}
}






function showAnswer(which) {
if (document.getElementById) answerDiv = eval("document.getElementById('" + which + "').style")
else answerDiv = eval(which + ".style")

if (answerDiv.display=="none") answerDiv.display="block"
else answerDiv.display="none"
}




function googleSearch() {
window.open("http://www.google.co.il/search?sitesearch=www.matticaspi.co.il&as_q="+document.searchform.as_q.value);
}