text: var label = "Crap Trophy Case";
  var version = "1323300768";
  var name_single = "Crap Trophy Case";
  var name_plural = "Crap Trophy Case";
  var article = "a";
  var description = "";
  var is_hidden = false;
  var has_info = false;
  var has_infopage = false;
  var proxy_item = null;
  var is_routable = false;
  var adjusted_scale = 1;
  var stackmax = 1;
  var base_cost = 0;
  var input_for = [];
  var parent_classes = ["bag_trophycase_crap", "bag_trophycase_base"];
  var has_instance_props = false;
  
  var classProps = {
  	"width"	: "5",	// defined by bag_trophycase_base
  	"height"	: "1"	// defined by bag_trophycase_base
  };
  
  var instancePropsDef = {};
  
  var verbs = {};
  
  verbs.open = { // defined by bag_trophycase_base
  	"name"				: "open",
  	"ok_states"			: ["in_location"],
  	"requires_target_pc"		: false,
  	"requires_target_item"		: false,
  	"include_target_items_from_location"		: false,
  	"is_default"			: false,
  	"is_emote"			: false,
  	"sort_on"			: 50,
  	"tooltip"			: "Arrange your trophies",
  	"is_drop_target"		: false,
  	"conditions"			: function(pc, drop_stack){
  
  		if (!this.isOwner(pc)) return {state:null};
  		return {state:'enabled'};
  	},
  	"handler"			: function(pc, msg, suppress_activity){
  
  		if (!this.isOwner(pc)) return false;
  
  		var trophy_container = pc.trophies_find_container();
  		pc.apiSendMsgAsIs({
  			type: "trophy_start",
  			itemstack_tsid: this.tsid, // the tsid of the cabinet that was opened
  			display_cols: intval(this.classProps.width),
  			display_rows: intval(this.classProps.height),
  			display_itemstacks: make_bag(this),
  			private_tsid: trophy_container.tsid,
  			private_cols: 7,
  			private_rows: 10,
  			private_itemstacks: make_bag(trophy_container),
  		});
  
  		return true;
  	}
  };
  
  function canContain(stack){ // defined by bag_trophycase_base
  	if (stack.getProp('is_trophy')) return stack.getProp('count');
  	return 0;
  }
  
  function isOwner(pc){ // defined by bag_trophycase_base
  	if (!this.container.owner) return true;
  
  	return this.container.owner.tsid == pc.tsid ? true : false;
  }
  
  function onLoad(){ // defined by bag_trophycase_base
  	if (this.label != this.name_single) this.label = this.name_single;
  }
  
  function onPrototypeChanged(){ // defined by bag_trophycase_base
  	this.onLoad();
  }
  
  // global block from bag_trophycase_base
  var is_trophycase = 1;
  var is_public = 1;
  var capacity = this.classProps.width * this.classProps.height;
  
  function getDescExtras(pc){
  	var out = [];
  	return out;
  }
  
  var tags = [
  	"trophycase",
  	"crap",
  	"no_trade"
  ];
  
  
  // this is a temporary fix, while the client doesn't load item defs
  // from the XML files. we pass this data on login events.
  
  function getAssetInfo(){
  	return {
  		'position': {"x":-144,"y":-130,"w":288,"h":130},
  		'thumb': "iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM\/rhtAAACGklEQVR42u2VX0+SURzHeQduvQFu\n86q1ti5qwGS6rhpZlgElFX+WkECCpKA8KuZwrpxTU1JTu4tKi3CKhE8hCo8+hkBSKooz6taX8O15\nbLJK75+2zmf77Jyz7813v52zIxIRCAQCgfD\/wPqvlkT9StmhCy9V1KHxqRoqS5st+RUnlYncozJh\nXiOV+t2QkcvM1OeIhU7zvq+j2aCeZgLaX77V0h9fKI819urmwZoI6OlPc1Z6NWTtKRbLRkziPNNI\nsUHdftSvwkpQh7VQLdbnzcgt2rEdd2B7yYGdRCMKSQqbiw3YjHEu2LERtSEXd+JH5jG+px+hkOrG\nt2QX9pJe7K52Is92Yme5A7llD7YSbdiKU9hYcuNrrBlfONejTmQ+PMBa+D7S8w1IRexIhq1gZ+uQ\nCBjGROEJleJ1\/yVMDlRyXsbkkyuYGqzCm6FrCPiq8W5YieCwCtMjakyP3sDMsxrMjGkwO34LoYk7\nmHuuPcjGH8qzo+1lzN+OtMmKPm2VMj5eSsoM8bZImEHOAd5mCdPv4mySML0ueaHHeQG+VnmyOMUO\nl01s0qv3pefP9nHHk0J6V3u9z2hQ5\/lOf9xB3e1qReXFCi+3PSGk9Ratt9ag1hx5JKdLS8XuJpNG\n6Mfqcds0FWUS2ZFALj8n5kOhC3Z5HFX\/dMHebrfi2ILl5WdK2lvqTwldkO\/AD4v8TAQCgUAgEAgE\nAkFofgK4oFnOU6gMxQAAAABJRU5ErkJggg==",
  	};
  };
  
  var itemDef = {
  	label		: this.label,
  	name_plural	: this.name_plural,
  	stackmax	: this.stackmax,
  	is_hidden	: this.is_hidden,
  	has_info	: this.has_info,
  	adjusted_scale	: this.adjusted_scale,
  	asset_swf_v	: "http:\/\/c2.glitch.bz\/items\/2010-08\/1282088515-9304.swf",
  	admin_props	: false,
  	obey_physics	: false,
  	in_background	: true,
  	in_foreground	: false,
  	has_status	: false,
  	not_selectable	: false,
  };
  
  if (this.consumable_label_single) itemDef.consumable_label_single = this.consumable_label_single;
  if (this.consumable_label_plural) itemDef.consumable_label_plural = this.consumable_label_plural;
  
  itemDef.verbs = {
  };
  itemDef.hasConditionalVerbs = 1;
  itemDef.emote_verbs = {
  };
  itemDef.hasConditionalEmoteVerbs = 0;
  itemDef.tags = [
  	"trophycase",
  	"crap",
  	"no_trade"
  ];
  itemDef.keys_in_location = {
  	"o"	: "open"
  };
  itemDef.keys_in_pack = {};
  
  log.info("bag_trophycase_crap.js LOADED");
  
  // generated ok 2011-12-07 15:32:48 by lizg
  