Xa = {
	init : function(){
		
	},
	getObject : function(id){
		var d = document;
		if( d.getElementById ){
			return d.getElementById(id);
		}else
		if( document.all ){
			return document.all(id);
		}else
		if( document.layers ){
			return document.layers(id);
		}else{
			return null;
		}
	},
	getActiveStyle : function(e, p, ps){
		var ret = "";
		
		if( e.currentStyle ){									// IE or Opera
			if( p.indexOf( "-" ) != -1 ){
				p = p.camelize();
			}
			ret = e.currentStyle[p];
		}else if( document.defaultView.getComputedStyle ){		// Mozilla or Opera
			if( p.indexOf( "-" ) != -1 ){
				p = p.deCameLize();
			}
			var st = document.defaultView.getComputedStyle( e, ps );
			if( st ){
				ret = st.getPropertyValue( p );
			}else{
				ret = null;
			}
		}
		return ret;
	},
	toggleDisplayBlock : function(id){
		var obj = this.getObject(id);
		if( this.getActiveStyle(obj,"display") == 'none'  || this.getActiveStyle(obj,"display") == null ){
			var anm = new YAHOO.util.Anim(obj.parentNode.id,{height:{to:139}},0.4,YAHOO.util.Easing.bounceOut);
			anm.onComplete.subscribe( function(){
				obj.style.display = 'block';
			});
			anm.animate();
		}else{
			var anm = new YAHOO.util.Anim(obj.parentNode.id,{height:{to:18}},0.4,YAHOO.util.Easing.backIn);
			anm.onStart.subscribe( function(){
				obj.style.display = 'none';
			});
			anm.animate();	
		}
	},
	test : function(){
		
	},
	getMouseX : function(e){
		if(window.opera)									return e.clientX;
		else if(document.all)								return document.body.scrollLeft+event.clientX;
		else if(document.layers||document.getElementById)	return e.pageX;
	},
	getMouseY : function(e){
		if(window.opera)									return e.clientY;
		else if(document.all)								return document.body.scrollTop+event.clientY;
		else if(document.layers||document.getElementById)	return e.pageY;
	},
	getInnerWidth : function(){
		if(window.opera)					return window.innerWidth          //o6,o7—p
		else if(document.all)				return document.body.clientWidth  //e4,e5,e6—p
		else if(document.layers)			return window.innerWidth          //n4—p
		else if(document.getElementById)	return  window.innerWidth         //n6,n7,m1,s1—p
		return null
	}
};

String.prototype.camelize = function() {
	return this.replace( /-([a-z])/g, function( $0, $1 ) { return $1.toUpperCase( ) } );
}
String.prototype.deCamelize = function() {
	return this.replace( /[A-Z]/g,function( $0 ) { return "-" + $0.toLowerCase( ) } );
}






