jQuery.noConflict();
(function($) {
    $.fn.clearDefault = function() {
	return this.each(function() {
	    var default_value = $(this).val();
	    $(this).focus(function() {
		if ($(this).val() == default_value) $(this).val("");
	    });
	    $(this).blur(function() {
		if ($(this).val() == "") $(this).val(default_value);
	    });
	});
    };
})(jQuery);

// Usage: $('input.clear-default').clearDefault();

jQuery(document).ready(function() {
    jQuery('.nyro').nyroModal();
    jQuery('.thickbox').nyroModal();
    jQuery('input').clearDefault();
    jQuery('#categories_block_home').addClass("hidden");
    jQuery('.scroll').click(function(event) {
	//prevent the default action for the click event
	event.preventDefault();
	jQuery('#categories_block_home').removeClass("hidden");
	//goto that anchor by setting the body scroll top to anchor top
	var offset = (jQuery('#' + jQuery(this).attr('href').split('#')[1]).offset());
	jQuery('html, body').animate({
	    scrollTop: offset.top
	}, 500);

    });
});
