<!--//
////////////////////////////////////////////////////////////////////////////
////
//
// Developed by Zoosware
// http://www.zoosware.com
// Copyright (c) 2006-2007 www.zoosware.com. All rights reserved.
// DO NOT MODIFY OR CHANGE ANYTHING IN HERE!
//
////////////////////////////////////////////////////////////////////////////
////
//-->

var strddl;
var strSelectSurah;     
var strSurah = new Array();
var xmlDoc;
var Feedurl= "MHQFeed/MHQuranfeed.xml";
var node;
var Count=0;
var Index_value;
var Count_Val;
var urlTransliteration;
var urlTranslation;
var AudioURL;
var flag = 0;
var fontflag = 2;
var Serverpath = "http://www.zoosware.com/gadget/mhq/";
var mozillaobject;
var mozillaparam;   

var mozillabrowser = (typeof document.implementation != 'undefined') && (typeof 
document.implementation.createDocument != 'undefined');
 
//Function to load the Feed	
function loadXMLDoc()
{
    var moz = (typeof document.implementation != 'undefined') && (typeof 
    document.implementation.createDocument != 'undefined');
    if(moz) 
    { 
         xmlDoc=document.implementation.createDocument("", "doc", null) 
         xmlDoc.async=false;
         xmlDoc.load(Feedurl);      
         xmlDoc.onload = getText;
         document.getElementById("PlayingStatus").style.display = "none";
    }
    else
    { 
     xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
     xmlDoc.async=false;
     xmlDoc.load(Feedurl);      
     getText();
    }            
    if(document.getElementById("ddlSurah").selectedIndex == 0) 
    {
        document.getElementById("SubMHQLeft").style.display = "none";
        document.getElementById("MHQRight").style.display = "none";
    }
    
    if(document.getElementById("ddlSurah").selectedIndex != 0)
    { 
        document.getElementById("txtTransliteration").readOnly=true;
        document.getElementById("txtTranslation").readOnly=true;
        if(document.getElementById("hfcontionuous").value != 0)
        {
            strddl = document.getElementById("ddlSurah");
            strSelectSurah = strddl[strddl.selectedIndex].text; 
            strSurah = strSelectSurah.split(" ");
            if (Count_Val == null)
            {
                Count_Val = "1900";
                if(document.getElementById("hfcontionuous").value ==1)
                { 
                    document.getElementById("btnMalay").disabled = false;  
	                document.getElementById("btnEnglish").disabled = true;       
                    document.getElementById("lblTranslation").innerHTML = "English Translation";
                    urlTranslation="MHQ/" + strSurah[0] +"/DB/Eng/Eng" + Count_Val + ".txt";
                    flag = 1;
                }
                if(document.getElementById("hfcontionuous").value ==2)
                {        
                    document.getElementById("btnMalay").disabled = true;  
	                document.getElementById("btnEnglish").disabled = false; 
	                document.getElementById("lblTranslation").innerHTML = "Malay Translation"; 	                  
	                urlTranslation="MHQ/" + strSurah[0] +"/DB/Mal/Mal" + Count_Val + ".txt";
	                flag = 2;           
                }
            }
            else
            {
                if(document.getElementById("hfcontionuous").value ==1)
                { 
                    document.getElementById("btnMalay").disabled = false;  
	                document.getElementById("btnEnglish").disabled = true;       
                    document.getElementById("lblTranslation").innerHTML = "English Translation";
                    urlTranslation="MHQ/" + strSurah[0] +"/DB/Eng/Eng" + Count_Val + ".txt";
                    flag = 1;
                }
                if(document.getElementById("hfcontionuous").value ==2)
                {        
                    document.getElementById("btnMalay").disabled = true;  
	                document.getElementById("btnEnglish").disabled = false; 
	                document.getElementById("lblTranslation").innerHTML = "Malay Translation"; 	                  
	                urlTranslation="MHQ/" + strSurah[0] +"/DB/Mal/Mal" + Count_Val + ".txt";
	                flag = 2;           
                }
            }
            CallEnglishMalay();
        }          
    }
}

function getText()
{
    if(document.getElementById("ddlSurah").selectedIndex != 0)
    {     
        node=xmlDoc.getElementsByTagName('Surah');               
        strddl = document.getElementById("ddlSurah");
        strSelectSurah = strddl[strddl.selectedIndex].text; 
        strSurah = strSelectSurah.split(" ");
                    
        for(var j=0;j<node.length;j++)
        {      
            if(strSurah[0] == node[j].getAttribute('value'))
            {
                Index_value=node[j].getElementsByTagName("Index")[0].childNodes[0].nodeValue;	 
            }         		
        }	    
    }
}
      
function callddl()
{
    if(document.getElementById("ddlSurah").selectedIndex != 0)
    {
        document.getElementById("SubMHQLeft").style.display = "block";
        document.getElementById("MHQRight").style.display = "block";
        document.getElementById("chkContinuousRecital").checked = false;
        
        // To Show Transliteration Text 
        Count_Val = null;  
        strddl = document.getElementById("ddlSurah");
        strSelectSurah = strddl[strddl.selectedIndex].text; 
        strSurah = strSelectSurah.split(" ");  
	    urlTransliteration ="MHQ/" + strSurah[0] +"/DB/Trans/Trans1900.txt";		       	   
	    CallHttpRequest();	    	    
	    LoadEnglish();    	  
    }  // end of selectedIndex
}

function LoadEnglish(btnValue)
{    
    if(document.getElementById("ddlSurah").selectedIndex != 0)
    {          
        //To Load English and Malay Text
        strddl = document.getElementById("ddlSurah");
        strSelectSurah = strddl[strddl.selectedIndex].text; 
        strSurah = strSelectSurah.split(" ");
        if (Count_Val == null)
        {              	                
	        Count_Val = "1900"; 
	        if(btnValue == "Eng")
	        { 
	            document.getElementById("btnMalay").disabled = false;  
	            document.getElementById("btnEnglish").disabled = true; 
	            document.getElementById("lblTranslation").innerHTML = "English Translation"; 	           
                urlTranslation="MHQ/" + strSurah[0] +"/DB/Eng/Eng" + Count_Val + ".txt";	        
                flag = 1;
                document.getElementById("hfcontionuous").value = flag;
            }
	        else if(btnValue == "Mal")
	        { 
	            document.getElementById("btnMalay").disabled = true;  
	            document.getElementById("btnEnglish").disabled = false; 
	            document.getElementById("lblTranslation").innerHTML = "Malay Translation"; 	                  
	            urlTranslation="MHQ/" + strSurah[0] +"/DB/Mal/Mal" + Count_Val + ".txt";
	            flag = 2;
	            document.getElementById("hfcontionuous").value = flag;
            }
            else
            {   
	            urlTranslation="MHQ/" + strSurah[0] +"/DB/Eng/Eng" + Count_Val + ".txt";
            }	        
	    }
	    else
	    {
	        if(btnValue == "Eng")
	        { 	 
	            document.getElementById("btnMalay").disabled = false;  
	            document.getElementById("btnEnglish").disabled = true;
	            document.getElementById("lblTranslation").innerHTML = "English Translation";  	           
                urlTranslation="MHQ/" + strSurah[0] +"/DB/Eng/Eng" + Count_Val + ".txt";	        
                flag = 1;
                document.getElementById("hfcontionuous").value = flag;
            }
	        else if(btnValue == "Mal")
	        { 
	            document.getElementById("btnMalay").disabled = true;  
	            document.getElementById("btnEnglish").disabled = false;
	            document.getElementById("lblTranslation").innerHTML = "Malay Translation";  	                    
	            urlTranslation="MHQ/" + strSurah[0] +"/DB/Mal/Mal" + Count_Val + ".txt";
	            flag = 2;
	            document.getElementById("hfcontionuous").value = flag;
	        }
            else
            {        
	            urlTranslation="MHQ/" + strSurah[0] +"/DB/Eng/Eng" + Count_Val + ".txt";
            }
        }	
       CallEnglishMalay();    	    	   
    }
}

// To Go Previous
function Previous()
{
    if(document.getElementById("ddlSurah").selectedIndex != 0)
    {
        if(document.getElementById("chkContinuousRecital").checked == true)
        {
            document.getElementById("chkContinuousRecital").checked = false;
            StopAudio();
        }
        if(mozillabrowser)
        {
            document.getElementById('mozillaPlayer').innerHTML = "";
        }
        else
        {
            document.getElementById('AudioQuran').controls.stop();
        }
        if(Count>0)
	    {
		    Count=Count-1;
		    document.getElementById('btnNext').disabled=false;
		    var nextfive=Count+5;
		    getText();
		       
		    if(nextfive>Index_value)
		    {
			    document.getElementById('btnFiveNext').disabled=true;
		    }
		    else
		    {		        	            
			    document.getElementById('btnFiveNext').disabled=false;
		    }
		    var prevfive=Count-5;
		    getText();
		    if(prevfive>=0)
		    {
			    document.getElementById('btnFivePrevious').disabled=false;
		    } 
		    else
		    {
			    document.getElementById('btnFivePrevious').disabled=true;
		    }
	    }
	    if(Count>=0)
	    {
		    document.getElementById('btnNext').disabled=false;
		    Count_Val=parseInt(Count_Val)-parseInt(1);
		    if(Count==0)
		    {
		        document.getElementById('btnPrevious').disabled=true;		        
			    document.getElementById('btnFivePrevious').disabled=true;
		    }
		    document.getElementById('ArabicTextImg').src=Serverpath+strSurah[0]+"/Ayat/"+Count_Val+".gif";			
            urlTransliteration="MHQ/"+strSurah[0]+"/DB/Trans/Trans"+Count_Val+".txt";
            CallHttpRequest();
		    changeEngMal();	
		    AudioURL=Serverpath+strSurah[0]+"/Sound/"+strSurah[0]+"_"+Count+".wav";			
	    }
	    else
	    {	
		    document.getElementById('btnPrevious').disabled=true;
		    document.getElementById('btnFivePrevious').disabled=true;
	    }
	} // end of dropdown
}

//To Go Next
function Next()
{
    if(document.getElementById("ddlSurah").selectedIndex != 0)
    {
        if(document.getElementById("chkContinuousRecital").checked == true)
        {
            document.getElementById("chkContinuousRecital").checked = false;
            StopAudio();
        }
        if(mozillabrowser)
        {
            document.getElementById('mozillaPlayer').innerHTML = "";
        }
        else
        {
            document.getElementById('AudioQuran').controls.stop();
        }
   
        Count=Count+1;           
        getText();        
        if(Count<=Index_value)
		{
		    							
			document.getElementById('btnPrevious').disabled=false;
			Count_Val=parseInt(1900)+parseInt(Count);						
			document.getElementById('ArabicTextImg').src=Serverpath+strSurah[0]+"/Ayat/"+Count_Val+".gif";
			urlTransliteration="MHQ/"+strSurah[0]+"/DB/Trans/Trans"+Count_Val+".txt";
            CallHttpRequest();
			changeEngMal();																
			AudioURL=Serverpath+strSurah[0]+"/Sound/"+strSurah[0]+"_"+Count+".wav";								
		    if(Count==Index_value)
		    {
		        if(document.getElementById("chkContinuousRecital").checked == false)
                {
		            alert("End of Surah. Please select another surah.");
		        }
			    document.getElementById('btnNext').disabled=true;			    
		    } 
		}
		else
		{		    
			document.getElementById('btnNext').disabled=true;								
		}
				
		var next_five=Count+5;
		if(next_five>Index_value)
		{
			document.getElementById('btnFiveNext').disabled=true;
		}
		else
		{
			document.getElementById('btnFiveNext').disabled=false;
		}
		var prev_five=Count-5;
		if(prev_five>=0)
		{
			document.getElementById('btnFivePrevious').disabled=false;
		} 
		else
		{
			document.getElementById('btnFivePrevious').disabled=true;
		}				
	}// end of if dropdown														
}

// To move previous Five
function FivePrevious()
{
    if(document.getElementById("chkContinuousRecital").checked == true)
    {
        document.getElementById("chkContinuousRecital").checked = false;
        StopAudio();
    }
    if(mozillabrowser)
    {
        document.getElementById('mozillaPlayer').innerHTML = "";
    }
    else
    {
        document.getElementById('AudioQuran').controls.stop();
    } 
	Count=Count-5;
	if(Count>=0)
	{
	    document.getElementById('btnNext').disabled=false;
		Count_Val=parseInt(Count_Val)-parseInt(5);
		if(Count==0)
		{
		    document.getElementById('btnFivePrevious').disabled=true;
		    document.getElementById('btnPrevious').disabled=true;
		}
		else
		{		
		    document.getElementById('btnFivePrevious').disabled=false;
		    document.getElementById('btnPrevious').disabled=false;
		}
		document.getElementById('ArabicTextImg').src=Serverpath+strSurah[0]+"/Ayat/"+Count_Val+".gif";			
        urlTransliteration="MHQ/"+strSurah[0]+"/DB/Trans/Trans"+Count_Val+".txt";
        CallHttpRequest();
		changeEngMal();	
		AudioURL=Serverpath+strSurah[0]+"/Sound/"+strSurah[0]+"_"+Count+".wav";			
	}
	var next_p=Count+5;
	if(next_p>Index_value)
	{
		document.getElementById('btnFiveNext').disabled=true;
	}
	else
	{
		document.getElementById('btnFiveNext').disabled=false;
	}
	var prev_f=Count-5;
	if(prev_f>=0)
	{
		document.getElementById('btnFivePrevious').disabled=false;
	} 
	else
	{
		document.getElementById('btnFivePrevious').disabled=true;
	}						
}

// To move previous Five
function FiveNext()
{     
    if(document.getElementById("ddlSurah").selectedIndex != 0)
    {
        if(document.getElementById("chkContinuousRecital").checked == true)
        {
            document.getElementById("chkContinuousRecital").checked = false;
            StopAudio();
        }
        if(mozillabrowser)
        {
            document.getElementById('mozillaPlayer').innerHTML = "";
        }
        else
        {
            document.getElementById('AudioQuran').controls.stop();
        }
		if(Index_value==null)
		{
            getText(); 
		}

		Count=Count+5;
		if(Count<=Index_value)
		{
			Count_Val=parseInt(1900)+parseInt(Count);
			document.getElementById('ArabicTextImg').src=Serverpath+strSurah[0]+"/Ayat/"+Count_Val+".gif";
			urlTransliteration="MHQ/"+strSurah[0]+"/DB/Trans/Trans"+Count_Val+".txt";
            CallHttpRequest();
			changeEngMal();																
			AudioURL=Serverpath+strSurah[0]+"/Sound/"+strSurah[0]+"_"+Count+".wav";
			
			if(Count==Index_value)
			{
			    alert("End of Surah. Please select another surah.");
				document.getElementById('btnFiveNext').disabled=true;
				document.getElementById('btnNext').disabled=true;					
			}
			else
			{
				document.getElementById('btnFiveNext').disabled=false;
				document.getElementById('btnNext').disabled=false;
			}		
		}
		var next=Count+5;
		if(next>Index_value)
		{
			document.getElementById('btnFiveNext').disabled=true;
		}
		else
		{
			document.getElementById('btnFiveNext').disabled=false;
		}
		var prev=Count-5;
		if(prev>=0)
		{
			document.getElementById('btnFivePrevious').disabled=false;
			document.getElementById('btnPrevious').disabled=false;
		} 
		else
		{
			document.getElementById('btnFivePrevious').disabled=true;
		}  
    } // end of selected index change
}

// To call Http request for Translieration
function CallHttpRequest()
{
    if(document.getElementById("ddlSurah").selectedIndex != 0)
    {  
        try
        {
            var req = new XMLHttpRequest();
        }
        catch(e)
        {
            var req =new ActiveXObject("Msxml2.XMLHTTP");
        }	   
        req.open("GET",urlTransliteration, false);
        req.send(null);
        
        if(req.status == 200)
        {
            document.getElementById('txtTransliteration').value = req.responseText;
        }
	    else
	    {
		    alert("Sorry the feed is temporarily unavailable");
		    document.getElementById('txtTransliteration').value = "Sorry the feed is temporarily unavailable";
	    }
	}
}

// To call Http request for Translation
function CallEnglishMalay()
{
    if(document.getElementById("ddlSurah").selectedIndex != 0)
    {  
        try
        {
            var req = new XMLHttpRequest();
        }
        catch(e)
        {
            var req =new ActiveXObject("Msxml2.XMLHTTP");
        }	   
        req.open("GET",urlTranslation, false);
        req.send(null);
        if(req.status == 200)
        {
            document.getElementById('txtTranslation').value = req.responseText;
        }
	    else
	    {
		    alert("Sorry the feed is temporarily unavailable");
		    document.getElementById('txtTranslation').value = "Sorry the feed is temporarily unavailable";
	    }
	}
}

// To change English and Malay according to Previous and Next
function changeEngMal()
{
    if(document.getElementById("ddlSurah").selectedIndex != 0)
    {    
        if(flag == 1)
        {	
            urlTranslation="MHQ/" + strSurah[0] +"/DB/Eng/Eng" + Count_Val + ".txt";	        	           
        }
        else if(flag ==2)
        {
            urlTranslation="MHQ/" + strSurah[0] +"/DB/Mal/Mal" + Count_Val + ".txt";	        	           
        }
        else
        {
            urlTranslation="MHQ/" + strSurah[0] +"/DB/Eng/Eng" + Count_Val + ".txt";	        	           
        }
        CallEnglishMalay();
    }
}

// To PlayAudio
function PlayAudio()
{        
    if(document.getElementById("ddlSurah").selectedIndex != 0)
    {    
        document.getElementById("btnStop").disabled = false; 
        document.getElementById("btnPlay").disabled = true;  
        //To Load English and Malay Text
        strddl = document.getElementById("ddlSurah");
        strSelectSurah = strddl[strddl.selectedIndex].text; 
        strSurah = strSelectSurah.split(" "); 
        if(Count == 0)
        {
            AudioURL=Serverpath+ strSurah[0] + "/Sound/" + strSurah[0] + "_"+Count+".wav";
        }

        if(mozillabrowser)
        {
            try
            {
                getText();
                mozillaobject = "<object id='WMP' type='video/x-ms-asf' width='0' height='0'>"                
                mozillaparam = "<param name='src' value='http://www.zoosware.com/gadget/mhq/"+strSurah[0]+"/Sound/"+strSurah[0]+"_"+Count+".wav' />" 
                mozillaobject = mozillaobject + mozillaparam + "</object>";
                document.getElementById('mozillaPlayer').innerHTML = mozillaobject;
            }            
            catch(e)
            {
                alert("Sorry the Audio feed is temporarily unavailables");
            }
        }
        else
        {  
            try
            {
                var req = new XMLHttpRequest();
            }
            catch(e)
            {
                var req =new ActiveXObject("Msxml2.XMLHTTP");        
            }	   
            req.open("GET",AudioURL, false);
            req.send(null);                        
            if(req.status == 200)
            {
                document.getElementById('AudioQuran').url =AudioURL;
                document.getElementById('AudioQuran').controls.play();
            }
            else
            {
	            alert("Sorry the Audio feed is temporarily unavailable");
            }
        }     
    }     
}

function StopAudio()
{
    if(document.getElementById("ddlSurah").selectedIndex != 0)
    {
        if(document.getElementById("chkContinuousRecital").checked == true)
        {
            document.getElementById("chkContinuousRecital").checked = false;
        }  
        if(mozillabrowser)
        {
            document.getElementById("btnStop").disabled = true; 
            document.getElementById("btnPlay").disabled = false;
            document.getElementById('mozillaPlayer').innerHTML = "";
        }
        else
        {
            document.getElementById("btnStop").disabled = true; 
            document.getElementById("btnPlay").disabled = false; 
            document.getElementById('AudioQuran').controls.stop();
            if(document.getElementById("chkContinuousRecital").checked == true)
            {
                document.getElementById("btnStop").disabled = true; 
                document.getElementById("btnPlay").disabled = false; 
                document.getElementById('AudioQuran').controls.stop();
            }
        }
    }
}

// To displayl playing status of Audio Player
function playStateChange(newstate)
{
    if(document.getElementById("ddlSurah").selectedIndex != 0)
    {
	    switch (newstate)
	    { 
	    case 1: 
		    document.getElementById('PlayingStatus').innerHTML = "Stopped";	       
            if(document.getElementById("chkContinuousRecital").checked == true)
            {                
                Count=Count+1;                
                if(Count<=Index_value)
		        {	                
                    setTimeout('toPlay()',7000); 
                    document.getElementById('PlayingStatus').innerHTML = "Fetching Data..."; 
                }
	            else
	            {
	                alert("End of Surah. Please select another surah.");
	            }			
            }
            else
            {
                StopAudio();
            }					
            break;
            
	    case 2: 
		    document.getElementById('PlayingStatus').innerHTML = "Paused";		
		    break;
    	
	    case 3: 
		    document.getElementById('PlayingStatus').innerHTML = "Playing";
		    break;

	    case 6: 
		    document.getElementById('PlayingStatus').innerHTML = "Buffering";
		    break;

	    case 7: 
		    document.getElementById('PlayingStatus').innerHTML = "Waiting";
		    break;

	    case 8: 
		    document.getElementById('PlayingStatus').innerHTML = "Media Ended";
		    break;

	    case 9: 
		    document.getElementById('PlayingStatus').innerHTML = "Fetching Data...";
		    break;

	    case 10:
		    document.getElementById('PlayingStatus').innerHTML = "Ready";
		    break;
	    }
	}
}

function toPlay()
{
    clearTimeout();
    Count_Val=parseInt(1900)+parseInt(Count);
    document.getElementById('ArabicTextImg').src=Serverpath+strSurah[0]+"/Ayat/"+Count_Val+".gif";
    urlTransliteration="MHQ/"+strSurah[0]+"/DB/Trans/Trans"+Count_Val+".txt";
    CallHttpRequest();
    changeEngMal();                         
    var audioNull = document.getElementById('AudioQuran').url;
    audioNull = null;                    
    AudioURL=Serverpath+strSurah[0]+"/Sound/"+strSurah[0]+"_"+Count+".wav";
    PlayAudio();        
}

// To Increase the Font Size
function TextLarge()
{
    if(document.getElementById("ddlSurah").selectedIndex != 0)
    {   
        if( fontflag >=0 && fontflag<4 )
        {
            fontflag++;        
        }
        if(fontflag == 0)
        {
            document.getElementById('txtTransliteration').className = "fontsmaller";
            document.getElementById('txtTranslation').className = "fontsmaller";
            document.getElementById('btnSmall').disabled=false;
        }
        if(fontflag == 1)
        {
            document.getElementById('txtTransliteration').className = "fontsmall";
            document.getElementById('txtTranslation').className = "fontsmall";
            document.getElementById('btnSmall').disabled=false;
        }
        if(fontflag == 2)
        {
            document.getElementById('txtTransliteration').className = "fontnormal";
            document.getElementById('txtTranslation').className = "fontnormal";
            document.getElementById('btnSmall').disabled=false;
        }
        if(fontflag == 3)
        {
            document.getElementById('txtTransliteration').className = "fontlarge";
            document.getElementById('txtTranslation').className = "fontlarge";
            document.getElementById('btnSmall').disabled = false;
        }
        if(fontflag == 4)
        {
            document.getElementById('txtTransliteration').className = "fontlarger";
            document.getElementById('txtTranslation').className = "fontlarger";
            document.getElementById('btnLarge').disabled = true;
        }
    }
}

// To Decrease the Font Size
function TextSmall()
{
    if(document.getElementById("ddlSurah").selectedIndex != 0)
    {   
        if( fontflag >0 && fontflag<=4 )
        {
            fontflag--;
        } 
        if(fontflag == 0)
        {
            document.getElementById('txtTransliteration').className = "fontsmaller";
            document.getElementById('txtTranslation').className = "fontsmaller";
            document.getElementById('btnSmall').disabled = true;
        }
        if(fontflag == 1)
        {
            document.getElementById('txtTransliteration').className = "fontsmall";
            document.getElementById('txtTranslation').className = "fontsmall";
            document.getElementById('btnLarge').disabled=false;
        }
        if(fontflag == 2)
        {
            document.getElementById('txtTransliteration').className = "fontnormal";
            document.getElementById('txtTranslation').className = "fontnormal";
            document.getElementById('btnLarge').disabled=false;
        }
        if(fontflag == 3)
        {
            document.getElementById('txtTransliteration').className = "fontlarge";
            document.getElementById('txtTranslation').className = "fontlarge";
            document.getElementById('btnLarge').disabled=false;
        }
        if(fontflag == 4)
        {
            document.getElementById('txtTransliteration').className = "fontlarger";
            document.getElementById('txtTranslation').className = "fontlarger";
            document.getElementById('btnLarge').disabled=false;
        }  
    }
}

// To display the About message
function MHQAbout()
{
    alert("About V(1.0)" + "\n" + "Mobile Holy Quran for Web developed by Zoosware. For support please email info@zoosware.com. Insyallah, I hope this humble software will benefit you in one way or another. I humbly request that if you are satisfied with this software, please make doa for the following late family members of mine: Ismail Bin Baba, Hasnah Bte Mohamad, Zainol Bin Ismail and Zainee Bin Ismail. Thank you.");
}

// ContinuousRecital funtionality
function ContinuousRecital()
{
    if(document.getElementById("ddlSurah").selectedIndex != 0)
    {  
        if(document.getElementById("chkContinuousRecital").checked == true)
        {            
            if(mozillabrowser)
            {
                alert("For best use of 'Continuous Recital' please use IE6 or IE7");
            }
            else
            {
                getText();          
                if(Count<=Index_value)
	            {	            
                    Count_Val=parseInt(1900)+parseInt(Count);
                    document.getElementById('ArabicTextImg').src=Serverpath+strSurah[0]+"/Ayat/"+Count_Val+".gif";
	                urlTransliteration="MHQ/"+strSurah[0]+"/DB/Trans/Trans"+Count_Val+".txt";
                    CallHttpRequest();
	                changeEngMal(); 
                    AudioURL=Serverpath+strSurah[0]+"/Sound/"+strSurah[0]+"_"+Count+".wav";
                    PlayAudio(); 
                }
                else
                {
                    alert("End of Surah. Please select another surah.");
                } 
            } 
        }
        else 
        {
            StopAudio();
        }
    }
}

