/**
 * JspCeo (v3.0)  -  Class: jc.js   for all pages.
 *
 * @author         : folier
 * @email          : jspceo@qq.com
 * @QQ             : 39886616
 * @Techno-support : RuiXing.CC

 * Copyright(C): JspCeo 2008 - 2010
 *
 *
 *
 *
 * =============================================================
 * -------------------------
 * opacity:
 * -------------------------
 * exp: exp: jqObj.opacity(value); value is a integer between 0-100(0 is transparent)
 * eg.: $("#img").opacity(25);
 *
 *
 * =============================================================
 **/

jQuery.fn.extend({
    opacity : function(value){
        return this.each(function(){
            if(value!=null){
                if ( $.browser.msie ){
                    this.style.filter = "alpha(opacity = "+value+")";
                }else{
                    this.style.MozOpacity = parseInt(value)/100;
                }
            }
        });
    }
});
