
$(document).ready(function(){
    $(".slideButton").click(function(){
		$("#panel").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
});

$(document).ready(function(){
    $(".menuSignin").click(function(){
		$("#panel").slideToggle("slow");
	});
});


$(document).ready(function(){
    $("#openBlock").click(function(){
		$("#stepBlock").slideToggle("slow");
		$(this).toggleClass("#closeBlock"); return false;
	});
});


$(document).ready(function(){
$('.step').hover(function() {
  $(this).addClass('active');
}, function() {
  $(this).removeClass('active');
});
});


$(document).ready(function() {
  $('#dialog').jqm();
});

$(document).ready(function() {
  $('#answerBlock').jqm();
});


var xmlhttp;

function updateCountryCode(){
    var sel = document.getElementById('country');
    var country = sel.options[sel.selectedIndex].value;
    xmlhttp=GetXmlHttpObject();
    if (xmlhttp==null)
    {
        alert ("Browser does not support HTTP Request");
        return;
    }
    var url="countryPhoneCodes.php";
    url=url+"?country="+country;
    xmlhttp.onreadystatechange=countryCodeStateChanged;
    xmlhttp.open("GET",url,true);
    xmlhttp.send(null);

}

function countryCodeStateChanged()
{
    if (xmlhttp.readyState==4)
    {
        var phone = document.getElementById("phoneInput");
        var result = xmlhttp.responseText;
        phone.value= result;
    }
}


