/**
 * @author Administrator
 */


jQuery(function(){
    /************************/
    /***********************/
    /*
     ï¿½ï¿½ ï¿½ï¿½ï¿½ï¿½ï¿½ ï¿½ï¿½ï¿½ ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½
     */
    if (jQuery.browser.version != '6.0') { // commented
/*        jQuery("#submenu a.sel").corner("7px");
        jQuery("#mainArea .steps div").corner("5px");
        jQuery(".infoBox").corner("10px");
        jQuery(".helpBox").corner("7px");
        jQuery(".errorBox").corner("10px");*/
    }
    
    jQuery.fn.disable = function(){
        jQuery(this).attr('disabled', 'disabled')
        jQuery(this).addClass('disabled');
        return this;
    }
    jQuery.fn.enable = function(){
        jQuery(this).attr('disabled', '');
        jQuery(this).removeClass('disabled');
        
        return this;
    }
    jQuery.fn.showhide = function(status){
        return (status) ? (jQuery(this).show()) : (jQuery(this).hide());
    }
    jQuery.fn.check = function(){
        return jQuery(this).attr('checked', 'checked');
    }
    jQuery.fn.uncheck = function(){
        return jQuery(this).attr('checked', '');
    }
    jQuery.fn.count = function(){
        return jQuery(this).length;
    }
    jQuery.fn.attrArray = function(field){
        temp = new Array;
        jQuery(this).each(function(){
            temp.push(jQuery(this).attr(field))
        })
        return temp;
    }
    
    jQuery.fn.doMyRows = function(){
        jQuery(this).hover(function(){
            jQuery(this).addClass("hightlight");
            
        }, function(){
            jQuery(this).removeClass("hightlight");
        });
        jQuery(this).filter(':even').addClass('odd')
        
    }
    jQuery.fn.serializeObject = function(){
        o = {};
        jQuery('input[@name], textarea[@name], select[@name]', this).each(function(){
            o[jQuery(this).attr('name')] = jQuery(this).val();
        })
        return o;
    }
    
    jQuery('.table_numrows').change(function(){
        this.form.submit();
    })
    
    jQuery(".std-table > tbody > tr").doMyRows()

    
    /************************/
    
    jQuery.ajaxSetup({
        cache: false
    });
    
    
    
    
})
