/**
 * Created by JetBrains PhpStorm.
 * User: sdesai
 * Date: 12/28/11
 * Time: 4:18 PM
 * To change this template use File | Settings | File Templates.
 */
$(document).ready(function() {
//    $(this).expose();
    var triggers = $(".modalInput").overlay({
        // some mask tweaks suitable for modal dialogs
        mask: {
            color: '#000',
            loadSpeed: 200,
            opacity: 0.6
        },

        closeOnClick: true
    }) });

$("#prompt form").submit(function(e) {

    // close the overlay
    triggers.eq(1).overlay().close();

    // get user input
    var input = $("input", this).val();

    // do something with the answer
    triggers.eq(1).html(input);

    // do not submit the form
    return e.preventDefault();
});

//For the drop down menu
$(document).ready(function(){
    $('li.headlink').hover(
        function() { $('ul', this).css('display', 'block'); },
        function() { $('ul', this).css('display', 'none'); });
});

$(document).ready(function(){
$('#logo').click(function() {
    window.location.href = "http://www.a-novel-idea.org/ani/main.htm";
 }) });

$(document).ready(function(){
$('#bubbles').click(function() {
    window.location.href = "http://www.a-novel-idea.org/ani/main.htm";
 }) });

$(document).ready(function() {
    // initialize scrollable
    $(".scrollable, .scrollable_faqs").scrollable();
});

