var Display = {
	toggleText:function(o1, o2, handle){
		var o1 = document.getElementById(o1);
		var o2 = document.getElementById(o2);
		 
		if(o1.style.display != 'none'){
			o1.style.display = 'none';
			o2.style.display = 'inline';
			handle.innerHTML = '隐藏详情';	
		}else{
			o1.style.display = 'inline';
			o2.style.display = 'none';
			handle.innerHTML = '显示详情';	
		}
	},	
	changeType: function(l1, l2, h1, h2){
		var l1 = document.getElementById(l1);
		var l2 = document.getElementById(l2);
		var h1 = (typeof(h1)=='string')? document.getElementById(h1) : h1;
		var h2 = (typeof(h2)=='string')? document.getElementById(h2) : h2;
	
		l1.style.display = 'block';
		l2.style.display = 'none';
		h1.className = 'type current';
		h2.className = 'type';
	},
	toggleBlock: function(o){
		var o = (typeof(o)=='string')? document.getElementById(o) : o;
		if(o.style.display != 'none'){
			o.style.display = 'none';	
		}else{
			o.style.display = 'block';	
		}
	},
	changeBlock: function(o1, o2){
		var o1 = (typeof(o1)=='string')? document.getElementById(o1) : o1;
		var o2 = (typeof(o2)=='string')? document.getElementById(o2) : o2;
		
		o1.style.display = 'block';
		o2.style.display = 'none';
	}
}

