﻿/*
*  jQuery library - anheledir.NET
*
*  Copyright (c) 2009 Gordon Breuer
*
*  Licensed under the MS-PL license:
*  http://opensource.org/licenses/ms-pl.html
*  
*  Version: 1.0.0
*
*  Project home:
*  http://gordon-breuer.de
*/

$.fn.labeling = function() {
    return this.focus(function() {
        if (this.value == this.defaultValue) {
            this.value = "";
        }
    }).blur(function() {
        if (!this.value.length) {
            this.value = this.defaultValue;
        }
    });
};

jQuery.preloadImages = function() {
    for (var i = 0; i < arguments.length; i++) {
        jQuery("<img>").attr("src", arguments[i]);
    }
}
