/*
 * 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 254 2010-07-23 05:14:44Z emartin24 $
 */

jQuery(function($) {
    // Load dialog on page load
    //$('#basic-modal-content').modal();

    // Load dialog on click
    //    $('#bpopmds').click(function(e) {
    //    $('#basic-modal-content').modal();

    //        return false;
    //    });

    $('#popimg1').click(function(e) {
        $('#content3').hide();
        $('#content2').hide();
        $('#content1').show();
    });

    $('#popimg2').click(function(e) {
        $('#content3').hide();
        $('#content2').show();
        $('#content1').hide();
    });
    
    $('#popimg3').click(function(e) {
        $('#content3').show();
        $('#content2').hide();
        $('#content1').hide();
    });

    $('#pop1').click(function(e) {
        $('#basic-modal-content2').modal({
            minWidth: 436,
            minHeight: 415
        });
        return false;
    });

    // Display an external page using an iframe
    $('#login_on').click(function(e) {
        var src = "location/login.aspx";
        $.modal('<iframe src="' + src + '" height="501" width="439" style="border:0">', {
            closeHTML: "",
            containerCss: {
                //backgroundColor: "#fff",
                //borderColor: "#fff",
                height: 501,
                padding: 0,
                width: 439
            },
            overlayClose: true
        });
        return false;
    });

});
