﻿/* scripts for Monty's specific*/
var __facebookAppId = "117213301652094";
function HideElement(json)
{
    var r = GMAO(json);
    $("#" + r.ElementId).slideUp();
}

/*send the form from /contactus/*/
function SendContactForm()
{
    $("#cfbtn").val("Sending Message...");
    var name = $("#txtName").val();
    var numbers = $("#txtNumbers").val();
    var emails = $("#txtEmail").val();
    var desc = $("#txtDescription").val();

    $("#ContactFormForm").slideUp(800);
    setTimeout(function () { $("#ContactFormForm").html("<h2>The message was not sent! We haven't implemented this yet, sorry. Please use our email.</h2>").slideDown(400); }, 900);


}

var __autoCloseQuickDialog = false;
function ShowQuickAdd()
{
    __autoCloseQuickDialog = false;
    $("#QuickAdd").dialog({ resizable: false, modal: true, width: 'auto', height: 'auto' });
}
function autoCloseDialog()
{
    __autoCloseQuickDialog = true;
}

