 						'function(){ try{' +
 							WeaveAPI.JS_var_weave +
 							'return weave.children.wmode.value != "transparent";' +
-						'} catch (e) { return true; }'
+						'} catch (e) { return true; }}'
 					);
 				}
 				_initialized = true;
 			}
 			return _customCursorsSupported;
 		}
-		
-		/**
-		 * This will register an embedded cursor.
+		
+		/**
+		 * This will register an embedded cursor.
 		 * To embed a cursor in your own class, follow this example:
 		 * <code>
 		 *    public static const MY_CURSOR:String = "myCursor";

		 * Look at the static String constants to get all the types of available cursors.
		 * @param name The name of a registered cursor.
		 * @return An id mapped to the cursor that can be passed to removeCursor() later.
		 * */
		public static function showCursor(name:String):int
		{
			if (!name)
				throw new Error("cursor name cannot be null");
			cursorStack.push(new CursorEntry(idCounter, name));
			updateCursor();
			return idCounter++; // increment for next time
		}
		
		/**
		 * Removes a cursor previously shown.

			cursorData.hotSpot = new Point(xHotSpot, yHotSpot);
			Mouse.registerCursor(cursorName, cursorData);
		}
		
        private static var idCounter:int = 0; // used to generate unique IDs for cursors
		private static const cursorStack:Array = []; // keeps track of previously shown cursors
		
