/**
 *  a tools to mananger pulldown windows
 * @author txw
 */
MxPullDown = Class.create();
MxPullDown.prototype = {
	s:true,
	initialize: function(){
	},
	toggleBox: function(id){
		var con = $(id);
		if(this.s){
			con.style.display="block";
	//		new Effect.BlindDown(con); 
		 	this.s = false; 
		}else{ 
			con.style.display="none";
//			new Effect.BlindUp(con); 
			this.s = true; 
		}	 
	},
	changeTitle: function(id){
		var t = $(id);
		var rest = location.pathname.replace(/index.*/, "");
		var imgLoc = location.protocol+"//"+location.host+rest+"/skins/pranger/";
		if(this.s){
			t.style.background="transparent url(\'"+imgLoc+"bg_marginbox_headoff.gif\') no-repeat scroll 0%";
		}else{
			t.style.background="transparent url(\'"+imgLoc+"bg_marginbox_headon.gif\') no-repeat scroll 0%";
		}
	}
};
