// init.js

jQuery.noConflict();

jQuery(document).ready(function() {
    // show / hide text input value
    jQuery('.show_hide_value').each(function() {
        // get initial value on page load
        var value = jQuery(this).val();
        jQuery(this).bind("focus", function() {
            // otherwise, move it here for the value of input on focus
            jQuery(this).val('');
        }).bind("blur", function() {
            var current_value = jQuery(this).val();
            if (current_value == '') jQuery(this).val(value);
        });
    });
    // slide down menu
    //jQuery('#nav li.closed').hover(function() {
    // add class
    //jQuery(this).addClass('over').children('ul').show("slow");
    //}, function() {
    //jQuery(this).removeClass('over').children('ul').hide("slow");
    //});

    var obj = jQuery('.productInfo .control input');
    var button = jQuery('.addToBasket');
    var error = jQuery('#termsError');
    
    button.click(function() {
        if (obj.is(':checked')) {
            error.hide();
            return true;
        } else {
            error.show();
            return false;
        }
    });



});	
