<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -65,6 +65,19 @@ $.fn.matrixMap = function (options) {
 		
 		return false;
 		
+	});// End live dblclick
+	
+	$('#map_root li a.asset_name').live('click', function(){
+			
+			// Set our color when clicked
+			var attr_stat = $(this).attr('status');
+			
+			if (attr_stat === '16') {
+				//$(this).addClass('live');
+			} else if (attr_stat === '2') {
+				//$(this).addClass('construction');
+			}
+	
 	});// End live click
 	
 };// End matrixMap
@@ -85,7 +98,7 @@ function expand(current_asset, sub_root) {
 		// This must meen that we can expand, so add a class
 		current_asset.addClass('children');
 		// Let it know that we have expanded so we don't have to load again
-		current_asset.addClass('cache');
+		current_asset.parent('li').addClass('cache');
 		
 	}// End else
 	
@@ -121,9 +134,6 @@ function get_children(host_url, xml_get, parent, current_asset, sub_root) {
 	// Set somes image vars
 	var type_2_path = '/__lib/web/images/icons/asset_map/not_visible.png';
 	var type_2_image = '&lt;img class=&quot;type_2&quot; src=&quot;' + type_2_path + '&quot; /&gt;';
-	var branch_closed = '&lt;img src=&quot;/__lib/web/images/tree/branch_closed.gif&quot; /&gt;';
-	var branch_open = '&lt;img src=&quot;/__lib/web/images/tree/branch_open.gif&quot; /&gt;';
-	var branch_stalk = '&lt;img src=&quot;/__lib/web/images/tree/stalk.gif&quot; /&gt;';
 	
 	// Create our ajax to send the XML
 	$.ajax({
@@ -166,12 +176,25 @@ function get_children(host_url, xml_get, parent, current_asset, sub_root) {
 					}
 					
 					// See if we have kids
-					if (asset_num_kids === 0) {
-						var indicate_kids = 'open';
+					if (asset_num_kids &gt; 0) {
+						var indicate_kids = 'kids_closed';
 					} else {
-						var indicate_kids = 'closed';
+						var indicate_kids = '';
 					}
-					$('&lt;li&gt;&lt;/li&gt;').html('&lt;a href=&quot;#&quot; class=&quot;icon_hold&quot;&gt;' + asset_image + '&lt;/a&gt; &lt;a id=&quot;a' + asset_id + '&quot; href=&quot;#&quot; rel=&quot;' + asset_num_kids + '&quot;&gt;' + asset_name + '&lt;/a&gt;').appendTo(target).addClass(indicate_kids);
+					$('&lt;li&gt;&lt;/li&gt;').html('&lt;a href=&quot;#&quot; class=&quot;icon_hold&quot;&gt;' + asset_image + '&lt;/a&gt;&lt;a id=&quot;a' + asset_id + '&quot; href=&quot;#&quot; &gt;' + asset_name + '&lt;/a&gt;')
+						.appendTo(target)
+						.addClass(indicate_kids)
+						.children('a:last')
+						.attr({
+							id: asset_id,
+							status: asset_status,
+							link_type: asset_link_type,
+							type_code: asset_type_code,
+							num_kids: asset_num_kids,
+							name: asset_name
+							})
+						.addClass('asset_name');
+						
 				}// End if
 			
 			});// End each</diff>
      <filename>jquery.matrixMap.js</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 /* Styles for jquery.matrix.js matrixMap plugin */
 
 /* Text Styles */
-#map_root {font: .9em/.6em Helvetica, Arial, Geneva, sans-serif; color: #000;}
+#map_root {font: .8em/.6em Helvetica, Arial, Geneva, sans-serif; color: #000;}
 
 /* Remove any offending styles */
 #map_root a, 
@@ -18,21 +18,22 @@
 
 /* Tree */
 #map_root {width: 400px; height: 400px; overflow: auto; background-color: #fff; padding: 12px;	border: 1px solid #b8b8b8; margin-left: 0; white-space: nowrap;}
-#map_root li {margin: 0; padding: 4px 0 4px 16px;}
-#map_root li a {color: #000; font-size: .9em;}
+#map_root li a {color: #000; font-size: .9em; line-height: 16px; height: 16px;}
 #map_root li a:hover {color: #000;}
 #map_root li img {margin-bottom: 0;}
+#map_root a.asset_name {display: block; float: left; margin-left: 20px;}
 
 /* Stalks */
-#map_root li {background: url(/__lib/web/images/tree/stalk.gif) no-repeat -4px 0;}
-#map_root li.closed {background: url(/__lib/web/images/tree/branch_closed.gif) no-repeat -4px 0;}
-#map_root li.open {background: url(/__lib/web/images/tree/stalk.gif) no-repeat -4px 0;}
-#map_root li.last {background: url(/__lib/web/images/tree/branch.gif) no-repeat -4px 0;}
+#map_root ul {background: url(/__lib/web/images/tree/stalk.gif) repeat-y -5px 0; padding: 0 0 0 16px;}
+#map_root li {display: block; line-height: 18px; padding: 0 0 0 14px; background: url(/__lib/web/images/tree/stalk.gif) no-repeat -5px 0; clear: both; height: 16px;}
+#map_root li.closed {background: url(/__lib/web/images/tree/branch_closed.gif) no-repeat -5px 0;}
+#map_root li.kids_closed {background: url(/__lib/web/images/tree/branch_closed.gif) no-repeat -5px -2;}
+#map_root li.last {background: url(/__lib/web/images/tree/branch.gif) no-repeat -5px -3;}
 #map_root ul.loading li {background: url(/__lib/web/images/icons/asset_map/loading_node.png) no-repeat 0 0;}
+#map_root li.cache {background: url(/__lib/web/images/tree/branch_open.gif) no-repeat -5px -2px;}
 
 /* Icons */
-#map_root a {padding-left: 16px;}
-#map_root a.icon_hold {position: relative; padding-left: 0;}
+#map_root a.icon_hold {position: relative; display: block; float: left;}
 #map_root a.icon_hold img.type_2 {position: absolute; z-index: 2; top: 0; left: 0;}
 #map_root a.icon_hold img.asset_image,
 #map_root a.icon_hold img {position: absolute; z-index: 1; top: 0; left: 0;}
@@ -41,5 +42,5 @@
 #map_root ul.loading {font-size: .9em;}
 
 /* Status */
-#map_root a.live {background-color: #0f0;}
-#map_root a.construction {background-color: #19a2fa;}
\ No newline at end of file
+#map_root a.live {background-color: #dbf18a;}
+#map_root a.construction {background-color: #aaccdd;}
\ No newline at end of file</diff>
      <filename>matrixMap.css</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>01ac87cd6ebc97d39fd56125389585f670459aa4</id>
    </parent>
  </parents>
  <author>
    <name>Nic Hubbard</name>
    <email>nic@zedsaid.com</email>
  </author>
  <url>http://github.com/nnhubbard/matrix-jquery-tools/commit/714b6e12ebcdba18f8956e580be26369a3fd8649</url>
  <id>714b6e12ebcdba18f8956e580be26369a3fd8649</id>
  <committed-date>2009-05-07T08:17:08-07:00</committed-date>
  <authored-date>2009-05-07T08:17:08-07:00</authored-date>
  <message>Fixed tree and styles.</message>
  <tree>3d0e0e7cf5355844e16c7f759523426c63d21e77</tree>
  <committer>
    <name>Nic Hubbard</name>
    <email>nic@zedsaid.com</email>
  </committer>
</commit>
