//------------------Steraming Server --------------------------------------------------
//Set this var while using a Streaming Server. If the media server is the same
//as the http one, set this var to ''.
//StreamingMediaPath = 'mms://194.187.78.141/';
StreamingMediaPath = "";

/******************************************************************************************
function PathForStreaming(CurrSoundPath)

    This function gets a path and change it to the streaming server path if needed and if
    this path contins "http://"
******************************************************************************************/
function PathForStreaming(CurrSoundPath){
   
    if (StreamingMediaPath!=""){
    //if there is a Streaming Server
	        if(CurrSoundPath.indexOf("http://")==0){
	
	                var templocation=CurrSoundPath.substring(7,CurrSoundPath.length);
	                templocation=templocation.substring(templocation.indexOf("/")+1,templocation.length);
	                CurrSoundPath=StreamingMediaPath+templocation;
	        }
    }

    return CurrSoundPath;

}
