/* CLEAR FORM FUNCTION
-------------------------------------------------- */
var modal = null;
function clearText(thefield) {
    if (thefield.defaultValue == thefield.value) { thefield.value = "" }
    return true;
} function replaceText(thefield) {
if (thefield.value=="") { thefield.value = thefield.defaultValue }
}

function loadClientAccess() {
    window.open('http://www.plasticsurgerystudios.com/clientAccess/', '_blank', 'toolbar=yes,scrollbars=yes,location=1,statusbar=1,menubar=yes,resizable=1,width=1048,height=650');

}
function showContact() {
    modal = $('#ConsultButtonContainer').modal();
}
function closeContact() {
    if (modal == null) {
        modal = $('#ConsultButtonContainer').modal();
    }
    modal.close();
}
function closeParentContact() {
    parent.closeContact();  // FF layering Fix
}
$(function() {
    $('.actionConsult').click(function(e) {
        e.preventDefault();
        showContact();
    });
    $('#HeroNav').tabs({ fx: { opacity: 'toggle'} });




});

