function play_on() { document.getElementById("3").src = "Play_On.gif" } function play_off() { document.getElementById("3").src = "Play.gif" } function highlightItem(e, t) { i = e.getAttribute("id"); if (i != currentSelection) { if (t == 1) { e.setAttribute("src", toolbarData[i][1]) } else { e.setAttribute("src", toolbarData[i][0]) } } } function selectItem(e) { i = e.getAttribute("id"); tbar = document.getElementById("toolbar"); items = tbar.getElementsByTagName("img"); for (x = 0; x < items.length; x++) { items[x].setAttribute("src", toolbarData[x + 1][0]) } e.setAttribute("src", toolbarData[i][2]); currentSelection = i } function switch_sound(e, t) { document.getElementById(e).width = "0"; document.getElementById(e).height = "0"; document.getElementById(t).width = "35"; document.getElementById(t).height = "30" } var toolbarData = new Array; toolbarData[1] = new Array("Play_Ayah.gif", "Play_Ayah_Over.gif", "Play_Ayah.gif"); toolbarData[2] = new Array("Prev.gif", "Prev_Over.gif", "Prev_On.gif"); toolbarData[3] = new Array("Play.gif", "Play_Over.gif", "Play_On.gif"); toolbarData[4] = new Array("Pause.gif", "Pause_Over.gif", "Pause_On.gif"); toolbarData[5] = new Array("Stop.gif", "Stop_Over.gif", "Stop.gif"); toolbarData[6] = new Array("Next.gif", "Next_Over.gif", "Next_On.gif"); toolbarData[7] = new Array("Play_Surah.gif", "Play_Surah_Over.gif", "Play_Surah.gif"); toolbarData[8] = new Array("Center.gif", "Center_Over.gif", "Center.gif"); toolbarData[9] = new Array("Off.gif", "Off_Over.gif", "Off.gif"); toolbarData[10] = new Array("On.gif", "On_Over.gif", "On.gif"); var currentSelection = -1; pl_btn = new Image; pl_btn.id = "3"; pl_btn.src = "Play_On.gif";