/*
* SimpleModal Basic Modal Dialog
* http://www.ericmmartin.com/projects/simplemodal/
* http://code.google.com/p/simplemodal/
*
* Copyright (c) 2010 Eric Martin - http://ericmmartin.com
*
* Licensed under the MIT license:
*   http://www.opensource.org/licenses/mit-license.php
*
* Revision: $Id: basic.js 243 2010-03-15 14:23:14Z emartin24 $
*
*/

/* Original code

jQuery(function ($) {
$('.basic').click(function (e) {
e.preventDefault();
        
return false;
});
});*/

function vidclick(vidId) {
    $("#" + vidId).modal({
        opacity: 50,
        overlayCss: { backgroundColor: "#000" },
        overlayClose: true
    });
    return false;
}

$(document).ready(function () {

    if ($('#mailForm span.alert').exists()) {
        showForm();
    }

    if ($('.ad-gallery').exists()) {
        var galleries = $('.ad-gallery').adGallery();
        $('#switch-effect').change(
        function () {
            galleries[0].settings.effect = $(this).val();
            return false;
        }
    );
        $('#toggle-slideshow').click(function () {
            galleries[0].slideshow.toggle();
            return false;
        }
    );
    }
});

function showForm(){
    $("#mailForm").modal({
        opacity: 50,
        overlayCss: { backgroundColor: "#000" },
        overlayClose: true
    });
    $("#simplemodal-container").addClass('modalForm Site');
    return false;
}

