﻿(function($){
	$.fn.opacity = function(opacity) {
		obj = $(this).get(0);

		if($.browser.msie) {
			obj.style.zoom = "100%";
			obj.style.filter = "progid:DXImageTransform.Microsoft.alpha(opacity=" + opacity * 100 + ");";
		} else if(typeof obj.style.MozOpacity != "undefined") {
			obj.style.MozOpacity = opacity;
		} else if(typeof obj.style.KHTMLOpacity != "undefined") {
			obj.style.KHTMLOpacity= opacity;
		} else if(typeof obj.style.opacity != "undefined") {
			obj.style.opacity = opacity;
		}
	}
})(jQuery);