jQuery.fn.extend({				 
	checked: function() {
		if($(this).attr("type") == "checkbox") {
			if($(this).attr("checked") == true) {
				return true;
			}
		}
		
		return false;
	},
	
	disable: function() {
		$(this).attr("disabled", true); 
	},
	
	enable: function() {
		$(this).removeAttr("disabled"); 
	}
});


//preloading function of images

jQuery.preloadImages = function()
{
	for(var i = 0; i<arguments.length; i++)
	{
		jQuery("<img>").attr("src", arguments[i]);
	}
};