Index: /trunk/FACT++/www/viewer/index.js
===================================================================
--- /trunk/FACT++/www/viewer/index.js	(revision 17795)
+++ /trunk/FACT++/www/viewer/index.js	(revision 17796)
@@ -906,5 +906,5 @@
         .css('left', oldOffset.left)
         .css('top',  oldOffset.top)
-        .css('zIndex', 400);
+        .css('zIndex', 999);
 
     temp.animate( {'top': newOffset.top, 'left':newOffset.left, 'width':w, 'height': h},
@@ -913,6 +913,7 @@
         temp = temp.appendTo(newParent);
         temp.css('position', 'relative');
-        temp.css('width', 'default');
-        temp.css('height', 'default');
+        temp.css('width', '');
+        temp.css('height', '');
+        temp.css('zIndex', '');
         temp.css('left', '0');
         temp.css('top', '0');
@@ -1265,5 +1266,5 @@
 function drawHex(ctx, x, y, col, min, max)
 {
-    if (col===undefined || col===null)
+    if (col===undefined || col===null || max<min)
         return;
 
