function formshowhide(id) {
	if(id == "joint") {
		document.getElementById('life2').style.display = "block";
	} else {
		document.getElementById('life2').style.display = "none";
	}
}


$A = function(iterable, start, length){
    if (Browser.Engine.trident && $type(iterable) == 'collection'){
        start = start || 0;
        if (start < 0) start = iterable.length + start;
        length = length || (iterable.length - start);
        var array = [];
        for (var i = 0; i < length; i++) array[i] = iterable[start++];
        return array;
    }
    start = (start || 0) + ((start < 0) ? iterable.length : 0);
    var end = ((!$chk(length)) ? iterable.length : length) + start;
    return Array.prototype.slice.call(iterable, start, end);
};

(function(){
    var natives = [Array, Function, String, RegExp, Number];
    for (var i = 0, l = natives.length; i < l; i++) natives[i].extend = natives[i].implement;
})();

window.extend = document.extend = function(properties){
    for (var property in properties) this[property] = properties[property];
};

window[Browser.Engine.name] = window[Browser.Engine.name + Browser.Engine.version] = true;

window.ie = window.trident;
window.ie6 = window.trident4;
window.ie7 = window.trident5;

Class.empty = $empty;

//legacy .extend support

Class.prototype.extend = function(properties){
    properties.Extends = this;
    return new Class(properties);
};

Array.implement({

    copy: function(start, length){
        return $A(this, start, length);
    }

});

Array.alias({erase: 'remove', combine: 'merge'});

Function.extend({

    bindAsEventListener: function(bind, args){
        return this.create({'bind': bind, 'event': true, 'arguments': args});
    }

});

Function.empty = $empty;

Hash.alias({getKeys: 'keys', getValues: 'values', has: 'hasKey', combine: 'merge'});
var Abstract = Hash;

Element.extend = Element.implement;

Elements.extend = Elements.implement;

Element.implement({

    getFormElements: function(){
        return this.getElements('input, textarea, select');
    },

    replaceWith: function(el){
        el = $(el);
        this.parentNode.replaceChild(el, this);
        return el;
    },
    
    removeElements: function(){
        return this.dispose();
    }

});

Element.alias({'dispose': 'remove', 'getLast': 'getLastChild'});

Element.implement({

    getText: function(){
        return this.get('text');
    },

    setText: function(text){
        return this.set('text', text);
    },

    setHTML: function(){
        return this.set('html', arguments);
    },
    
    getHTML: function(){
        return this.get('html');
    },

    getTag: function(){
        return this.get('tag');
    }

});

Event.keys = Event.Keys;

Element.implement({
    
    setOpacity: function(op){
        return this.set('opacity', op);
    }
    
});

Object.toQueryString = Hash.toQueryString;

var XHR = new Class({

    Extends: Request,

    options: {
        update: false
    },

    initialize: function(url, options){
        this.parent(options);
        this.url = url;
    },

    request: function(data){
        return this.send(this.url, data || this.options.data);
    },

    send: function(url, data){
        if (!this.check(arguments.callee, url, data)) return this;
        return this.parent({url: url, data: data});
    },

    success: function(text, xml){
        text = this.processScripts(text);
        if (this.options.update) $(this.options.update).empty().set('html', text);
        this.onSuccess(text, xml);
    },
    
    failure: function(){
        this.fireEvent('failure', this.xhr);
    }

});

var Ajax = XHR;

JSON.Remote = new Class({

    options: {
        key: 'json'
    },

    Extends: Request.JSON,

    initialize: function(url, options){
        this.parent(options);
        this.onComplete = $empty;
        this.url = url;
    },

    send: function(data){
        if (!this.check(arguments.callee, data)) return this;
        return this.parent({url: this.url, data: {json: Json.encode(data)}});
    },
    
    failure: function(){
        this.fireEvent('failure', this.xhr);
    }

});

Fx.implement({

    custom: function(from, to){
        return this.start(from, to);
    },

    clearTimer: function(){
        return this.cancel();
    },
    
    stop: function(){
        return this.cancel();
    }

});

Fx.Base = Fx;

Fx.Style = function(element, property, options){
    return new Fx.Tween(element, $extend({property: property}, options));
};

Element.implement({
    
    effect: function(property, options){
        return new Fx.Tween(this, $extend({property: property}, options));
    }

});

Fx.Styles = Fx.Morph;

Element.implement({
    
    effects: function(options){
        return new Fx.Morph(this, options);
    }

});

Native.implement([Element, Document], {

    getElementsByClassName: function(className){
        return this.getElements('.' + className);
    },

    getElementsBySelector: function(selector){
        return this.getElements(selector);
    }

});

Elements.implement({

    filterByTag: function(tag){
        return this.filter(tag);
    },

    filterByClass: function(className){
        return this.filter('.' + className);
    },

    filterById: function(id){
        return this.filter('#' + id);
    },

    filterByAttribute: function(name, operator, value){
        return this.filter('[' + name + (operator || '') + (value || '') + ']');
    }

});

var $E = function(selector, filter){
    return ($(filter) || document).getElement(selector);
};

var $ES = function(selector, filter){
    return ($(filter) || document).getElements(selector);
};

var Json = JSON;

JSON.toString = JSON.encode;
JSON.evaluate = JSON.decode;

Cookie.set = function(key, value, options){
    return new Cookie(key, options).write(value);
};

Cookie.get = function(key){
    return new Cookie(key).read();
};

Cookie.remove = function(key, options){
    return new Cookie(key, options).dispose();
};

//MooTools More FXscrol, <http://mootools.net/more>. Copyright (c) 2006-2009 Aaron Newton <http://clientcide.com/>, Valerio Proietti <http://mad4milk.net> & the MooTools team <http://mootools.net/developers>, MIT Style License.
MooTools.More={version:"1.2.3.1"};Fx.Scroll=new Class({Extends:Fx,options:{offset:{x:0,y:0},wheelStops:true},initialize:function(b,a){this.element=this.subject=document.id(b);
this.parent(a);var d=this.cancel.bind(this,false);if($type(this.element)!="element"){this.element=document.id(this.element.getDocument().body);}var c=this.element;
if(this.options.wheelStops){this.addEvent("start",function(){c.addEvent("mousewheel",d);},true);this.addEvent("complete",function(){c.removeEvent("mousewheel",d);
},true);}},set:function(){var a=Array.flatten(arguments);this.element.scrollTo(a[0],a[1]);},compute:function(c,b,a){return[0,1].map(function(d){return Fx.compute(c[d],b[d],a);
});},start:function(c,h){if(!this.check(c,h)){return this;}var e=this.element.getSize(),f=this.element.getScrollSize();var b=this.element.getScroll(),d={x:c,y:h};
for(var g in d){var a=f[g]-e[g];if($chk(d[g])){d[g]=($type(d[g])=="number")?d[g].limit(0,a):a;}else{d[g]=b[g];}d[g]+=this.options.offset[g];}return this.parent([b.x,b.y],[d.x,d.y]);
},toTop:function(){return this.start(false,0);},toLeft:function(){return this.start(0,false);},toRight:function(){return this.start("right",false);},toBottom:function(){return this.start(false,"bottom");
},toElement:function(b){var a=document.id(b).getPosition(this.element);return this.start(a.x,a.y);},scrollIntoView:function(c,e,d){e=e?$splat(e):["x","y"];
var h={};c=document.id(c);var f=c.getPosition(this.element);var i=c.getSize();var g=this.element.getScroll();var a=this.element.getSize();var b={x:f.x+i.x,y:f.y+i.y};
["x","y"].each(function(j){if(e.contains(j)){if(b[j]>g[j]+a[j]){h[j]=b[j]-a[j];}if(f[j]<g[j]){h[j]=f[j];}}if(h[j]==null){h[j]=g[j];}if(d&&d[j]){h[j]=h[j]+d[j];
}},this);if(h.x!=g.x||h.y!=g.y){this.start(h.x,h.y);}return this;}});