


jQuery(document).ready(function() {



    /*
    if (jQuery('.slideshow').length > 0) {
        jQuery('.slideshow').cycle({
            timeout: 60000,
            fx: 'scrollLeft'
        });
    }
*/

    // table jiggery pokery
    jQuery('.page-template-template-levels-php #content table tr:nth-child(odd)').addClass('odd-row');
    jQuery('.page-template-template-levels-php #content table tr td:contains("[1]")').addClass('checked');
    jQuery('.page-template-template-levels-php #content table tr td:contains("[1]")').text('');

    // subnavigation hack
    //jQuery('.subnavigation > li').last().addClass('last');
    jQuery('.subnavigation li').has('ul:visible').addClass('has-children');


    jQuery('input[title]').live('focus', function () {
        if (jQuery(this).attr('id') == 'dummy') {
            jQuery('#password').show();
            jQuery('#password').focus();
            jQuery('#dummy').hide();
        } else {
            if (jQuery(this).val() === jQuery(this).attr('title')) {
                jQuery(this).val('');
            }
        }
    });

    jQuery('input[title]').live('blur', function () {
        if (!jQuery(this).val()) {
            if (jQuery(this).attr('id') == 'password') {
                jQuery('#password').hide();
                jQuery('#dummy').show();
            } else {
                jQuery(this).val(jQuery(this).attr('title'));
            }
        }
    });

    jQuery('#s').live('focus', function () {
        if (jQuery(this).val() === 'Search') {
            jQuery(this).val('');
        }
    });

    jQuery('#s').live('blur', function () {
        if (!jQuery(this).val()) {
            jQuery(this).val('Search');
        }
    });



    jQuery('div.wpcf7-response-output').live('click', function () {
jQuery('div.wpcf7-response-output').hide();
    });

});



