function dressing_simple_show_outfit(target,outfit,items) { var change_keys=["x","y","z"]; var of=outfit["data"]["s"]; var bfc=jQuery(target); for(type in of) { var o=of[type]; var item=items[o["i"]]; for(var i=0;i< change_keys.length ;i++) if(o[change_keys[i]]!=null) item[change_keys[i]]=o[change_keys[i]]; var nd=jQuery("
"); nd.appendTo(bfc); nd.css ( { "position":"absolute", "width":item["w"]+"px", "height":item["h"]+"px", "left":item["x"]+"px", "top":item["y"]+"px", "zIndex":item["z"] } ); nd.html("