// JavaScript Document - to make it dynamic it is saved as JSP file //player //var time = setTimeout('TimeOut()', 5000); var lastItem = null; var time = null; function PlayTrackOld(path,e) { if (lastItem != null && lastItem != e){ // handle previous item lastItem.className = "tuneButtonPlay"; lastItem.title = "Play"; } lastItem = e; if (e.className == "tuneButtonPlay") { e.className = "tuneButtonStop"; e.title = "Stop"; var currentURL = document.location.href; //alert(currentURL); var playServletURLPrefix = getPrefix(currentURL); //alert(playServletURLPrefix); path = playServletURLPrefix + path //alert(path); BindPlayer(path); clearTimeout(time); time = setTimeout('BindPlayer(\'+path+\')', 30000); return false; // } else { StopTrack(); clearTimeout(time); e.className = "tuneButtonPlay"; e.title = "Play"; } } function getPrefix(currentURL){ var retPrefix = ''; var arr = new Array(); arr = currentURL.split('/'); //alert(arr); //alert(arr.length); //remove the 2 last strings , for example : public/home.jsf for(i=0;i
"; winContent_ += ""; winContent_ += ""; winContent_ += ""; winContent_ += ""; winContent_ += ""; winContent_ += ""; winContent_ += ""; document.getElementById("player").innerHTML = winContent_; } else if ((navigator.userAgent.indexOf('Opera') != -1) || (navigator.userAgent.indexOf('Netscape') != -1)) { var winContent_ = "

" + path+ "


"; winContent_ +=""; winContent_ +=""; winContent_ +=""; winContent_ +=""; winContent_ +=""; winContent_ +=""; document.getElementById("player").innerHTML = winContent_; } else { var winContent_ = "

" + path + "


"; winContent_ += ""; winContent_ += ""; winContent_ += ""; winContent_ += ""; winContent_ += ""; winContent_ += ""; document.getElementById("player").innerHTML = winContent_; } //alert(document.getElementById("player").innerHTML); } //For help page function showhelpdesc(id) { //alert(document.getElementById("helpdesc_"+id).className) if(document.getElementById("helpdesc_"+id).className=='helpdesc none') { document.getElementById("helpdesc_"+id).className='helpdesc block'; document.getElementById("side_"+id).className='side'; document.getElementById("txt_"+id).className='TtlOpenQuestion'; } else { document.getElementById("helpdesc_"+id).className='helpdesc none'; document.getElementById("side_"+id).className='sideclose'; document.getElementById("txt_"+id).className='txt'; } } //For pop up windows function funDialAssContInfo(){ window.open("funDialAssContInfo.html","","left=10,top=10,width=650,height=600,resizable=no,scaleable=yes,status=yes,scrollbars=yes"); } function funDialAssGroupInfo(){ window.open("funDialAssGroupInfo.html","","left=10,top=10,width=650,height=600,resizable=no,scaleable=yes,status=yes,scrollbars=yes"); } function funDialAssAllcallers(){ window.open("funDialAssAllcallers.html","","left=10,top=10,width=650,height=600,resizable=no,scaleable=yes,status=yes,scrollbars=yes"); } function funDialTunesList(){ window.open("funDialTunesList.html","","left=10,top=10,width=650,height=600,resizable=no,scaleable=yes,status=yes,scrollbars=yes"); } function playListAssignTunes(){ window.open("playListAssignTunes.html","","left=10,top=10,width=650,height=240,resizable=no,scaleable=yes,status=yes,scrollbars=no"); } function errorPopUp(){ window.open("errorPopUp.html","","left=10,top=10,width=650,height=240,resizable=no,scaleable=yes,status=yes,scrollbars=no"); } //navigation menu for side and top bar function findNavElement(sectionNum, level){ var c = 20; for(var i=0;i