﻿

function begin()
{
    
	languageHolder = $(".languageSelect");
	voiceHolder = $(".voicesHolder");
	
	startVoiceMusic();
    
    

}

function getStarted()
{
    //get the selected voice talent 
    //and save it to the session
    var vtID = "";
    var radios = $("[name=voicetalent]");
    for(var i=0; i < radios.length; i++)
    {
        if ($(radios[i]).attr("checked"))
        {
            vtID = $(radios[i]).next().val();
        }
    }
    
    
    if (vtID != "")
    {
        var packet = getPacket("VoiceTalents", "SetVoiceID");
        var p = new Object();
        p.VoiceTalentID = Number(vtID);
        packet.Param = p;
        
        com(packet, onVoiceSet);
    }
    else
    {
        window.location = "https://www.snaprecordings.com/Snap.aspx?page=GetStarted";
    }
    
    

}

function onVoiceSet(data)
{
    
    window.location = "https://www.snaprecordings.com/Snap.aspx?page=GetStarted";

}














